Re: [PATCH] btrfs: add error messages to all unrecognized mount options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 6.06.22 г. 14:08 ч., David Sterba wrote:
Almost none of the errors stemming from a valid mount option but wrong
value prints a descriptive message which would help to identify why
mount failed. Like in the linked report:

   $ uname -r
   v4.19
   $ mount -o compress=zstd /dev/sdb /mnt
   mount: /mnt: wrong fs type, bad option, bad superblock on
   /dev/sdb, missing codepage or helper program, or other error.
   $ dmesg
   ...
   BTRFS error (device sdb): open_ctree failed

Errors caused by memory allocation failures are left out as it's not a
user error so reporting that would be confusing.

Link: https://lore.kernel.org/linux-btrfs/9c3fec36-fc61-3a33-4977-a7e207c3fa4e@xxxxxx/
CC: stable@xxxxxxxxxxxxxxx # 4.9+
Signed-off-by: David Sterba <dsterba@xxxxxxxx>

Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx>



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux