diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-11-18 10:40:06 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-18 10:40:06 -0500 |
commit | 4d1d3a59d6debe80ce1e2da60e82233ab8f1f886 (patch) | |
tree | 896a25411082e009b2699ef63a7dc9ae5d286bc3 /volumes.h | |
parent | 95470dfaf12dc8aa59bcb6829c4a7f759d2c5ff6 (diff) |
update btrfs-progs for seed device support
This patch does the following:
1) Update device management code to match the kernel code.
2) Allocator fixes.
3) Add a program called btrfstune to set/clear the SEEDING
super block flags.
Diffstat (limited to 'volumes.h')
-rw-r--r-- | volumes.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -21,11 +21,14 @@ struct btrfs_device { struct list_head dev_list; struct btrfs_root *dev_root; + struct btrfs_fs_devices *fs_devices; u64 total_ios; int fd; + int writeable; + char *name; /* these are read off the super block, only in the progs */ @@ -69,6 +72,9 @@ struct btrfs_fs_devices { int lowest_bdev; struct list_head devices; struct list_head list; + + int seeding; + struct btrfs_fs_devices *seed; }; struct btrfs_bio_stripe { @@ -120,4 +126,5 @@ struct list_head *btrfs_scanned_uuids(void); int btrfs_add_system_chunk(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_chunk *chunk, int item_size); +int btrfs_chunk_readonly(struct btrfs_root *root, u64 chunk_offset); #endif |