Whamcloud - gitweb
mke2fs: adjust the default file system size by the offset
authorTheodore Ts'o <tytso@mit.edu>
Sun, 1 May 2016 04:57:19 +0000 (00:57 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 1 May 2016 04:57:19 +0000 (00:57 -0400)
commit87d9b2fb9eec9f99d1af26bee2e133697247db2c
tree23fd426c88101124b5aab8b674ca79f3999fcdd4
parentb3b7dafe91bc3e44eeada5cea91a0fd26587e609
mke2fs: adjust the default file system size by the offset

If the user specifies an offset using -E offset without specifying an
explicit size, the system will use the block device (or file) size as
the default file system size.  If we are using the default file system
size, subtract out the offset so the resulting file system will stay
within the block device.  Also print a warning that this might not be
what the user wants.

Addresses-Debian-Bug: #803629

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c