diff options
| author | Theodore Ts'o <[email protected]> | 2014-12-27 04:58:21 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2014-12-27 04:58:21 +0000 |
| commit | 011fa99404bea3f5d897c4983f6bd51170e3b18f (patch) | |
| tree | 09233f55cd3aa55cf779f684cd1968cc36a08437 /lib/dynamic_debug.c | |
| parent | ext4: ext4_da_convert_inline_data_to_extent drop locked page after error (diff) | |
| download | kernel-011fa99404bea3f5d897c4983f6bd51170e3b18f.tar.gz kernel-011fa99404bea3f5d897c4983f6bd51170e3b18f.zip | |
ext4: prevent online resize with backup superblock
Prevent BUG or corrupted file systems after the following:
mkfs.ext4 /dev/vdc 100M
mount -t ext4 -o sb=40961 /dev/vdc /vdc
resize2fs /dev/vdc
We previously prevented online resizing using the old resize ioctl.
Move the code to ext4_resize_begin(), so the check applies for all of
the resize ioctl's.
Reported-by: Maxim Malkov <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
