diff options
author | Josef Bacik <jbacik@fusionio.com> | 2012-06-21 20:03:58 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-07-23 20:27:42 (GMT) |
commit | 02db0844beffc1c4e99d750be58ffb3ed95d6d62 (patch) | |
tree | ee82fa926f2900e24a1ca76eab6a85a32f453898 /fs/btrfs/volumes.h | |
parent | 96c3f4331a8c1cd0a58307e4ac7e73e09d7dab23 (diff) | |
download | linux-fsl-qoriq-02db0844beffc1c4e99d750be58ffb3ed95d6d62.tar.xz |
Btrfs: add DEVICE_READY ioctl
This will be used in conjunction with btrfs device ready <dev>. This is
needed for initrd's to have a nice and lightweight way to tell if all of the
devices needed for a file system are in the cache currently. This keeps
them from having to do mount+sleep loops waiting for devices to show up.
Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index e404414..5479325 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -126,6 +126,7 @@ struct btrfs_fs_devices { u64 missing_devices; u64 total_rw_bytes; u64 num_can_discard; + u64 total_devices; struct block_device *latest_bdev; /* all of the devices in the FS, protected by a mutex |