DEVTAB - Add support in umount, fsck, and hammer, and add sample /etc/devtab.
[dragonfly.git] / etc / devtab
CommitLineData
9c9ac2f1
MD
1# /etc/devtab
2#
3# This file contains label conversions for fstab, mount, fsck, hammer,
4# and other command which expect device paths. It is typically used
5# to translate longer serial numbers (which devs automatically installs
6# as "/dev/serno/<serialnumber>[.ext]" into short-form names to simplify
7# fstab.
8#
9# For use cases a label is represented up to the last '.' (if any),
10# looked up, and then any extension after and including the '.' is
11# tacked onto the result. So in /etc/fstab the label "serno/fubar.s1a"
12# would translate to "/dev/serno/L123456.s1a" in our example below.
13#
14# Currently the "serno" and "path" types are supported. Really any generic
15# type is supported and will translate into a subdirectory lookup in /dev.
16# The "path" type translates to an absolute path with no prepended /dev,
17# suitable for files represented by block devices.
18#
19# label type basepath
20# ----- ------ -------
21# fubar serno L123456
22# fubar path /full/path