]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - resize/resize2fs.c
main.c (main): If we are resizing a plain file which is smaller
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Apr 2002 06:28:30 +0000 (01:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Apr 2002 06:28:30 +0000 (01:28 -0500)
commit116db1b513f6901415d1f5f8c01fc297d7cc64a4
treef0428f7b13b194888646e6633ec4b4cda6e96457
parent1acb01b4e28067a37c4f41e0a76df9f429fb417e
main.c (main): If we are resizing a plain file which is smaller
than the requested size, then we will attempt to
transparently extend the filesize in a sparse fashion by
writing a block at the end of the requested part of the
filesystem.

main.c (main), resize2fs.c (resize_fs), resize2fs.h: Change the
function prototype of resize_fs() so that it can modify
the new_size parameter with the actual new size of the
filesystem after the resize operation.  (This can
sometimes be less than the requested new size if there
isn't enough space to create the necessary block group
metadata for that last bit of disk space.)  Resize2fs now
prints the actual new size of the filesystem when it finishes.
resize/ChangeLog
resize/main.c
resize/resize2fs.c
resize/resize2fs.h