[LTP] [PATCH] tst_supported_fs: Implement checking paths against skiplist

Petr Vorel pvorel@suse.cz
Thu Sep 22 13:20:15 CEST 2022


> On 22. 09. 22 12:55, Cyril Hrubis wrote:
> > The real problem is that the line between ext2, ext3 and ext4 is really
> > blurry to an extend where it's hard to say which filesystem are you
> > working with. For example while ext2 kernel driver still exists and is
> > in use on embedded hardware modern distributions use single ext driver
> > to handle all three filesystems. Also I think that it was possible to
> > mount ext3 with ext2 driver at some point which disabled the journaling.

Should I understand this that you don't trust /proc/self/mountinfo output?
(show_mountinfo() in fs/proc_namespace.c in kernel git)?

Petr

> Still, I'd argue that blindly assuming any FS with ext2/3/4 magic number is
> always mounted as ext4 is a better solution than returning a string that
> never matches skiplists.



More information about the ltp mailing list