• Brian Foster's avatar
    bcachefs: preserve device path as device name · 63807d95
    Brian Foster authored
    Various userspace scripts/tools may expect mount entries in
    /proc/mounts to reflect the device path names used to mount the
    associated filesystem. bcachefs seems to normalize the device path
    to the underlying device name based on the block device. This
    confuses tools like fstests when the test devices might be lvm or
    device-mapper based.
    
    The default behavior for show_vfsmnt() appers to be to use the
    string passed to alloc_vfsmnt(), so tweak bcachefs to copy the path
    at device superblock read time and to display it via
    ->show_devname().
    Signed-off-by: default avatarBrian Foster <bfoster@redhat.com>
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    63807d95
super-io.c 31.5 KB