diff options
author | Brian Foster <bfoster@redhat.com> | 2023-11-16 12:13:43 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 02:42:07 -0500 |
commit | 63807d951803e422cea8bfb4fdd36f57de191ada (patch) | |
tree | 5f217511ed5a079ae5a6728e48aca33b478cf934 /fs/bcachefs/super_types.h | |
parent | 0a11adfb7aceb65831ff1c4d129d611e54fc3f57 (diff) | |
download | linux-63807d951803e422cea8bfb4fdd36f57de191ada.tar.gz linux-63807d951803e422cea8bfb4fdd36f57de191ada.tar.bz2 linux-63807d951803e422cea8bfb4fdd36f57de191ada.zip |
bcachefs: preserve device path as device name
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: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super_types.h')
-rw-r--r-- | fs/bcachefs/super_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/super_types.h b/fs/bcachefs/super_types.h index 7dda4985b99f..9c1fd4ca2b10 100644 --- a/fs/bcachefs/super_types.h +++ b/fs/bcachefs/super_types.h @@ -5,6 +5,7 @@ struct bch_sb_handle { struct bch_sb *sb; struct block_device *bdev; + char *sb_name; struct bio *bio; void *holder; size_t buffer_size; |