aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-13 13:46:40 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commitdfe25020689bb2d318782d2c9c7141203583fc70 (patch)
treee106059546d7755af0d3b86bf47c113ca8927d7d /fs/btrfs/volumes.h
parent1259ab75c62462b8ffad90067b5e1f6312786a18 (diff)
Btrfs: Add mount -o degraded to allow mounts to continue with missing devices
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 0f94a69e6eb6..454fe8103329 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -27,8 +27,10 @@ struct btrfs_device {
27 struct list_head dev_alloc_list; 27 struct list_head dev_alloc_list;
28 struct btrfs_root *dev_root; 28 struct btrfs_root *dev_root;
29 struct buffer_head *pending_io; 29 struct buffer_head *pending_io;
30 u64 generation;
30 31
31 int barriers; 32 int barriers;
33 int in_fs_metadata;
32 34
33 spinlock_t io_lock; 35 spinlock_t io_lock;
34 36
@@ -122,6 +124,7 @@ int btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
122int btrfs_scan_one_device(const char *path, int flags, void *holder, 124int btrfs_scan_one_device(const char *path, int flags, void *holder,
123 struct btrfs_fs_devices **fs_devices_ret); 125 struct btrfs_fs_devices **fs_devices_ret);
124int btrfs_close_devices(struct btrfs_fs_devices *fs_devices); 126int btrfs_close_devices(struct btrfs_fs_devices *fs_devices);
127int btrfs_close_extra_devices(struct btrfs_fs_devices *fs_devices);
125int btrfs_add_device(struct btrfs_trans_handle *trans, 128int btrfs_add_device(struct btrfs_trans_handle *trans,
126 struct btrfs_root *root, 129 struct btrfs_root *root,
127 struct btrfs_device *device); 130 struct btrfs_device *device);