feat(mount): add new match patterns for device files#167
feat(mount): add new match patterns for device files#167Integral-Tech wants to merge 2 commits intoyazi-rs:mainfrom
Conversation
|
Thanks for your PR! Have you tested if this plugin works with these devices too, or just added them there? I can't seem to test it myself since I have none of these devices. |
e4783a7 to
43e8ed6
Compare
Increase the width of FSType column to support long filesystem names.
43e8ed6 to
023b6b6
Compare
|
@sxyazi I have just pushed a new commit to adjust the match patterns for device files.
All newly added match patterns have been tested, except for those involving Xen virtual block devices ( The naming convention of Xen virtual block devices can be found in the manual:
The naming convention of tape devices can be found in the Red Hat Documentation:
|
|
Thanks for the update! If you mount/unmount or eject these devices, do they work properly? I noticed the new commit includes even more devices, but many of them I've never seen before, do they have real-world use cases e.g. are they storage devices or are some virtual devices? |
023b6b6 to
1189df7
Compare
|
@sxyazi Test screenshot of Xen virtual block device:
I have just pushed a new commit to remove the pattern for tape devices, as they cannot be emulated using QEMU. |
Yes, these devices function properly when I mount or unmount them. I have just updated the table in #167 (comment) to reflect the latest changes. VirtIO block devices and Xen virtual block devices are mainly used for virtual machines. Loop device is a pseudo-device that makes a file accessible as a block device. The introduction of network block device:
Bcache introdution from its homepage:
zram introduction from ArchWiki:
As for the device mapper:
|





New Patterns
{ "^/dev/vd[a-z]", "%d+$" }{ "^/dev/xvd[a-z]", "%d+$" }{ "^/dev/fd%d+", ".+$" }{ "^/dev/loop%d+", "p%d+$" }{ "^/dev/md%d+", "p%d+$" }{ "^/dev/nbd%d+", "p%d+$" }{ "^/dev/bcache%d+", "p%d+$" }{ "^/dev/ram%d+", ".+$" }{ "^/dev/zram%d+", ".+$" }{ "^/dev/mapper/", ".+$" }References