diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-05-13 13:46:40 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | dfe25020689bb2d318782d2c9c7141203583fc70 (patch) | |
tree | e106059546d7755af0d3b86bf47c113ca8927d7d /fs/btrfs/ctree.h | |
parent | 1259ab75c62462b8ffad90067b5e1f6312786a18 (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.h | 3 |
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 */ |
1608 | u64 btrfs_parse_size(char *str); | 1609 | u64 btrfs_parse_size(char *str); |
1610 | int btrfs_parse_options(char *options, struct btrfs_root *root, | ||
1611 | char **subvol_name); | ||
1609 | #endif | 1612 | #endif |