]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: factor out device preparation
authorDave Chinner <dchinner@redhat.com>
Wed, 6 Dec 2017 23:14:27 +0000 (17:14 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 6 Dec 2017 23:14:27 +0000 (17:14 -0600)
commite99bf83d96b805e142010ea91dfee83cdf8b4248
tree73e05305bea58a9deea3e72dfcba59cc9dd78a85
parentafda75a52911fa2bd4e7a06e00ddb78ec8e0efa7
mkfs: factor out device preparation

Prior to formating the device(s), we have to take several steps to
prepare them and check that they are appropriate for the formatting
that is about to take place. Pull all this into a single function
that is run before mounting the libxfs infrastructure.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c