aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.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/ctree.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/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 6c2c2c4e4d2a..a9377fb16c37 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -657,6 +657,7 @@ struct btrfs_root {
657#define BTRFS_MOUNT_NODATACOW (1 << 1) 657#define BTRFS_MOUNT_NODATACOW (1 << 1)
658#define BTRFS_MOUNT_NOBARRIER (1 << 2) 658#define BTRFS_MOUNT_NOBARRIER (1 << 2)
659#define BTRFS_MOUNT_SSD (1 << 3) 659#define BTRFS_MOUNT_SSD (1 << 3)
660#define BTRFS_MOUNT_DEGRADED (1 << 4)
660 661
661#define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) 662#define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt)
662#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) 663#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt)
@@ -1606,4 +1607,6 @@ int btrfs_delete_xattrs(struct btrfs_trans_handle *trans,
1606 struct btrfs_root *root, struct inode *inode); 1607 struct btrfs_root *root, struct inode *inode);
1607/* super.c */ 1608/* super.c */
1608u64 btrfs_parse_size(char *str); 1609u64 btrfs_parse_size(char *str);
1610int btrfs_parse_options(char *options, struct btrfs_root *root,
1611 char **subvol_name);
1609#endif 1612#endif