xref: /dragonfly/etc/devtab (revision e5a92d33)
1# /etc/devtab
2#
3# This file contains label conversions for fstab, mount, fsck, hammer,
4# and other commands which expect device paths.  It is typically used
5# to translate longer serial numbers (which devfs automatically installs
6# as "/dev/serno/<serialnumber>[.suffix]" 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 suffix after and including the leading '.' is
11# tacked onto the result.  So in /etc/fstab the label "fubar.s1a"
12# would translate to "/dev/serno/L123456.s1a" in our first 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
23