btrfs-progs: introduce signature for a partially set up filesystem
authorDavid Sterba <dsterba@suse.com>
Fri, 19 Aug 2016 14:40:14 +0000 (16:40 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 24 Aug 2016 12:36:58 +0000 (14:36 +0200)
commit3c350dec06da272fed7ef1ea0eb5031131c77671
tree1f5aebbdf12538bd918b45dbc6f3cb1e2ec3c8c7
parent059832da5f533d5ddf6ba15b7a190efe5a09ea8c
btrfs-progs: introduce signature for a partially set up filesystem

Currently the superblock is created first, with a valid signaure, but
the rest of the filesystem is missing. When the creation process is
interrupted, the filesystem still might be considered as valid.

To prevent that, create the filesytem with an invalid signature that
would be still recognized during the mkfs process, and finalize at the
end.

Signed-off-by: David Sterba <dsterba@suse.com>
ctree.h
utils.c