aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-01-19 13:06:20 -0500
committerDavid Sterba <dsterba@suse.cz>2013-01-23 19:41:27 +0100
commitce814a93788c3289f50d383ea104fad1f66a16f8 (patch)
tree4a043b32bf3b9b888b97b0301293f19ff6b40cc8 /ioctl.h
parent124053b1d9f7425b8a2dac02907222d99927e779 (diff)
downloadbtrfs-progs-ce814a93788c3289f50d383ea104fad1f66a16f8.tar.gz
btrfs-progs-ce814a93788c3289f50d383ea104fad1f66a16f8.tar.xz
btrfs-progs-ce814a93788c3289f50d383ea104fad1f66a16f8.zip
Btrfs-progs: add btrfs device ready command
This command will be used by things like dracut that wish to know very simply if all of the devices have been added to the kernel cache yet for the device to be fully mounted. This keeps initrd's from constantly having to try to mount the file system until it succeeds every time a device is added to the system. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Gene Czarcinski <gene@czarc.net>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index 6fda3a1..d32e22c 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -419,6 +419,8 @@ struct btrfs_ioctl_clone_range_args {
struct btrfs_ioctl_ino_path_args)
#define BTRFS_IOC_LOGICAL_INO _IOWR(BTRFS_IOCTL_MAGIC, 36, \
struct btrfs_ioctl_ino_path_args)
+#define BTRFS_IOC_DEVICES_READY _IOR(BTRFS_IOCTL_MAGIC, 39, \
+ struct btrfs_ioctl_vol_args)
#define BTRFS_IOC_SET_RECEIVED_SUBVOL _IOWR(BTRFS_IOCTL_MAGIC, 37, \
struct btrfs_ioctl_received_subvol_args)