search for: btrfs_ioc_ut_op_pwrit

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

Did you mean: btrfs_ioc_ut_op_pwrite
2009 Nov 10
12
[RFC] big fat transaction ioctl
...opy_from_user(&op, &ops[i], sizeof(op))) + goto out; + + /* lookup fd args? */ + err = -EINVAL; + switch (op.op) { + case BTRFS_IOC_UT_OP_CLONERANGE: + if (op.args[1] < 0 || op.args[1] >= ut->num_fds) + goto out; + fd2 = fds[1]; + + case BTRFS_IOC_UT_OP_CLOSE: + case BTRFS_IOC_UT_OP_PWRITE: + if (op.args[0] < 0 || op.args[0] >= ut->num_fds) + goto out; + fd1 = fds[0]; + } + + /* do op */ + switch (op.op) { + case BTRFS_IOC_UT_OP_OPEN: + ret = -EINVAL; + if (op.args[3] < 0 || op.args[3] >= ut->num_fds) + goto out; + ret = sys_open((const char __u...