koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
120 stars 89 forks source link

mount: canonicalize device path for single device node #251

Closed tasleson closed 5 months ago

tasleson commented 5 months ago

If we pass a symlink for a single device node we fail to locate the device node. Canonicalize the device node before we try to read up the superblock.

This allows the following to work. # bcachefs mount /dev/mapper/vg-thinvolume /mnt/lv_thin