]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: ioctl stub
authorSage Weil <sage@newdream.net>
Tue, 20 May 2008 21:41:38 +0000 (14:41 -0700)
committerSage Weil <sage@newdream.net>
Tue, 20 May 2008 21:41:38 +0000 (14:41 -0700)
src/kernel/file.c
src/kernel/super.h

index 081ebee30577ee8711caab98a3fc75ae150810fc..d932ff8f6620007d4a061b74e49971cc76de42f2 100644 (file)
@@ -353,6 +353,11 @@ static int ceph_fsync(struct file *file, struct dentry *dentry, int datasync)
        return 0;
 }
 
+static int ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
+{
+       return -EINVAL;
+}
+
 const struct file_operations ceph_file_fops = {
        .open = ceph_open,
        .release = ceph_release,
@@ -365,4 +370,5 @@ const struct file_operations ceph_file_fops = {
        .fsync = ceph_fsync,
        .splice_read = generic_file_splice_read,
        .splice_write = generic_file_splice_write,
+       .unlocked_ioctl = ceph_ioctl,
 };
index 4b9153667ecbe89dc5f7cbe0ed96a7807fc75f18..d5b2115d29166ee6559441abedc2cc7e39c361b2 100644 (file)
@@ -59,6 +59,7 @@ extern int ceph_debug_inode;
                (unsigned int)(((n).sin_addr.s_addr)>>24) & 0xFF,       \
                (unsigned int)(ntohs((n).sin_port))
 
+
 /*
  * subtract jiffies
  */