Whamcloud - gitweb
libe2p: use stat to prevent calling EXT2_IOC_[GS]ETFLAGS on devices
authorTheodore Ts'o <tytso@mit.edu>
Sat, 17 Jul 2021 02:31:26 +0000 (22:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 17 Jul 2021 02:31:26 +0000 (22:31 -0400)
commita3f844da91f0c01209a5d778a5af57fabe245332
treee0dd9707db4b9dee09dc7e4ccd48291c7d5471b6
parent29a61d8940b8a6a967a56c927d4703597f1d82e5
libe2p: use stat to prevent calling EXT2_IOC_[GS]ETFLAGS on devices

Some devices can react badly to the EXT2_IOC_[GS]ETFLAGS ioctls, since
ioctl codes are not guaranteed to be unique across different device
drivers and file systems.

Addresses-Debian-Bug: #986332
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/e2p/fgetflags.c
lib/e2p/fsetflags.c