Whamcloud - gitweb
resize2fs: open device read-only when -P is passed
authorMichael Hudson-Doyle <michael.hudson@ubuntu.com>
Thu, 26 May 2022 01:08:28 +0000 (13:08 +1200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Aug 2022 14:39:48 +0000 (10:39 -0400)
commitca340221b9f324fd5b12be485f729bd5101d5c14
tree973fce9afd71d305d0c49333ff2181354b556bfa
parent13f1ce96046fba15d93a90733b791312284fbb62
resize2fs: open device read-only when -P is passed

We ran into this because we noticed that resize2fs -P $device was
triggering udev events.

I added a very simple test that just checks resize2fs -P on a file
lacking the w bit succeeds.

Signed-off-by: Michael Hudson-Doyle <michael.hudson@ubuntu.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c
tests/scripts/resize_test