Skip to content
Commit 011fa994 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatarMaxim Malkov <malkov@ispras.ru>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 50db71ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment