search for: btrfs_ioc_tree_search_v0

Displaying 1 result from an estimated 1 matches for "btrfs_ioc_tree_search_v0".

2010 Dec 14
0
[PATCH] BTRFS_IOC_TREE_SEARCH: store and use the last key found
...rch(struct file *file, return ret; } +static noinline int btrfs_ioctl_tree_search_old(struct file *file, + void __user *argp) +{ + struct btrfs_ioctl_search_args *args; + struct inode *inode; + int ret; + + printk(KERN_WARNING "BTRFS: Pid=%d(%s) is using the buggy " + "BTRFS_IOC_TREE_SEARCH_V0 ioctl\n", + current->pid, current->comm); + + if (!capable(CAP_SYS_ADMIN)) + return -EPERM; + + args = memdup_user(argp, sizeof(*args)); + if (IS_ERR(args)) + return PTR_ERR(args); + + inode = fdentry(file)->d_inode; + + /* for compatibility */ + args->key.start_objectid = 0;...