diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-12-20 10:06:58 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-12-20 10:06:58 -0500 |
commit | 562f264243f4d4385910b6f06872730214977736 (patch) | |
tree | d673913265ee31f690474f5c1f8929657c4096af /resize | |
parent | 25623feab4789b86880da8ded5605ff17ebf3908 (diff) | |
parent | 9098c986b64bb65a2b7fcd2724a400ba1f451f6b (diff) | |
download | e2fsprogs-562f264243f4d4385910b6f06872730214977736.tar.gz |
Merge branch 'maint' into next
Conflicts:
lib/ext2fs/block.c
lib/ext2fs/csum.c
resize/main.c
Diffstat (limited to 'resize')
-rw-r--r-- | resize/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/resize/main.c b/resize/main.c index 7d8b287c..28a49ba2 100644 --- a/resize/main.c +++ b/resize/main.c @@ -392,6 +392,14 @@ int main (int argc, char ** argv) exit(1); } } else { + /* Take down devices exactly 16T to 2^32-1 blocks */ + if (max_size == (1ULL << 32)) + max_size--; + else if (max_size > (1ULL << 32)) { + com_err(program_name, 0, _("New size too large to be " + "expressed in 32 bits\n")); + exit(1); + } new_size = max_size; /* Round down to an even multiple of a pagesize */ if (sys_page_size > fs->blocksize) |