]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: improve explanation of a mount failure caused by a misconfigured kernel
authorTheodore Ts'o <tytso@mit.edu>
Fri, 14 Feb 2020 23:11:19 +0000 (18:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 15 Feb 2020 14:53:45 +0000 (09:53 -0500)
commit0909c4e5c73a584afa49f55e192c878bb2df0fbd
treed9bd02f28e5a2281788b7c96232694a0f5b5cd18
parentd43a2419e505136e2fc186ebee8c4ce78d5541ee
ext4: improve explanation of a mount failure caused by a misconfigured kernel

If CONFIG_QFMT_V2 is not enabled, but CONFIG_QUOTA is enabled, when a
user tries to mount a file system with the quota or project quota
enabled, the kernel will emit a very confusing messsage:

    EXT4-fs warning (device vdc): ext4_enable_quotas:5914: Failed to enable quota tracking (type=0, err=-3). Please run e2fsck to fix.
    EXT4-fs (vdc): mount failed

We will now report an explanatory message indicating which kernel
configuration options have to be enabled, to avoid customer/sysadmin
confusion.

Link: https://lore.kernel.org/r/20200215012738.565735-1-tytso@mit.edu
Google-Bug-Id: 149093531
Fixes: 54549ed2b25ae099 ("ext4: make quota as first class supported feature")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/super.c