diff options
author | Eric Sandeen <sandeen@redhat.com> | 2014-05-14 12:39:07 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-22 14:39:32 +0200 |
commit | 85691ebeac9432b4ebb1a268514279a0b2c7c61d (patch) | |
tree | 463b954a6cede5d8bb0d8c6a825afbd030aec4a0 /utils.h | |
parent | e2a157f380aa33a264eab8e21280ea8bbc10d67e (diff) | |
download | btrfs-progs-85691ebeac9432b4ebb1a268514279a0b2c7c61d.tar.gz |
btrfs-progs: mkfs: allow UUID specification at mkfs time
Allow the specification of the filesystem UUID at mkfs time.
Non-unique unique IDs are rejected. This includes attempting
to re-mkfs with the same UUID; if you really want to do that,
you can mkfs with a new UUID, then re-mkfs with the one you
wanted.
(Implemented only for mkfs.btrfs, not btrfs-convert).
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
[converted help to asciidoc]
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,7 +40,7 @@ #define BTRFS_UUID_UNPARSED_SIZE 37 int make_btrfs(int fd, const char *device, const char *label, - u64 blocks[6], u64 num_bytes, u32 nodesize, + char *fs_uuid, u64 blocks[6], u64 num_bytes, u32 nodesize, u32 leafsize, u32 sectorsize, u32 stripesize, u64 features); int btrfs_make_root_dir(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid); @@ -101,5 +101,6 @@ int get_btrfs_mount(const char *dev, char *mp, size_t mp_size); int find_mount_root(const char *path, char **mount_root); int get_device_info(int fd, u64 devid, struct btrfs_ioctl_dev_info_args *di_args); +int test_uuid_unique(char *fs_uuid); #endif |