]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: show more binary mount options in procfs
authorTyson Nottingham <tgnottingham@gmail.com>
Fri, 30 Mar 2018 04:51:10 +0000 (00:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Mar 2018 04:51:10 +0000 (00:51 -0400)
commitaa4bdf4f7023d5e87ba081ad4dd5c7976badfb3f
tree6330661573157eb84d78334e3dcfd116364a4c75
parent4dee960c049a05a43fcf84627c4f0bc36b7c909a
ext4: show more binary mount options in procfs

Previously, /proc/fs/ext4/<dev>/options would only show binary options
if they were set (1 in the options bit mask). E.g. it would show "grpid"
if it was set, but it would not show "nogrpid" if grpid was not set.

This seems sensible, but when an option is absent from the file, it can
be hard for the unfamiliar to know what is being used. E.g. if there
isn't a (no)grpid entry, nogrpid is in effect. But if there isn't a
(no)auto_da_alloc entry, auto_da_alloc is in effect. If there isn't a
(minixdf|bsddf) entry, it turns out bsddf is in effect. It all depends
on how the option is implemented.

It's clearer to be explicit, so print the corresponding option
regardless of whether it means a 1 or a 0 in the bit mask.

Note that options which do not have an explicit disable option aren't
indicated as being disabled even with this change (e.g. dax).

Signed-off-by: Tyson Nottingham <tgnottingham@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c