Changeset View
Changeset View
Standalone View
Standalone View
sbin/geom/class/label/glabel.8
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
.El | .El | ||||
.Pp | .Pp | ||||
Generic disk ID strings are exported as labels in the format | Generic disk ID strings are exported as labels in the format | ||||
.Pa /dev/diskid/GEOM_CLASS-ident | .Pa /dev/diskid/GEOM_CLASS-ident | ||||
e.g. | e.g. | ||||
.Pa /dev/diskid/DISK-6QG3Z026 . | .Pa /dev/diskid/DISK-6QG3Z026 . | ||||
.Pp | .Pp | ||||
Generic labels created and managed solely by | Generic labels created and managed solely by | ||||
.Xr glabel 8 | .Nm | ||||
are created in the | are created in the | ||||
.Pa /dev/label/ | .Pa /dev/label/ | ||||
directory. | directory. | ||||
.Pp | .Pp | ||||
Note that for all label types, nested GEOM classes will cause additional | Note that for all label types, nested GEOM classes will cause additional | ||||
device nodes to be created, with context-specific data appended to their | device nodes to be created, with context-specific data appended to their | ||||
names. E.g. for every node like | names. | ||||
E.g. for every node like | |||||
.Pa /dev/label/bigdisk | .Pa /dev/label/bigdisk | ||||
there will be additional entries for any partitions which the device | there will be additional entries for any partitions which the device | ||||
contains, like | contains, like | ||||
.Pa /dev/label/bigdiskp1 | .Pa /dev/label/bigdiskp1 | ||||
and | and | ||||
.Pa /dev/label/bigdiskp1a . | .Pa /dev/label/bigdiskp1a . | ||||
.Pp | .Pp | ||||
The first argument to | The first argument to | ||||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
maximum amount of debug information is printed. | maximum amount of debug information is printed. | ||||
.El | .El | ||||
.Bl -tag -width indent | .Bl -tag -width indent | ||||
.It Va kern.geom.label.*.enable : No 1 | .It Va kern.geom.label.*.enable : No 1 | ||||
Most | Most | ||||
.Nm LABEL | .Nm LABEL | ||||
providers implement a | providers implement a | ||||
.Xr sysctl 8 | .Xr sysctl 8 | ||||
flag and a tunable variable named in the above format. This flag | flag and a tunable variable named in the above format. | ||||
controls if the label provider will be active, tasting devices | This flag controls if the label provider will be active, tasting devices | ||||
and creating label nodes in the | and creating label nodes in the | ||||
.Xr devfs 5 | .Xr devfs 5 | ||||
tree. It is sometimes desirable to disable certain label types if | tree. | ||||
It is sometimes desirable to disable certain label types if | |||||
they conflict with other classes in complex GEOM topologies. | they conflict with other classes in complex GEOM topologies. | ||||
.El | .El | ||||
.Sh EXIT STATUS | .Sh EXIT STATUS | ||||
Exit status is 0 on success, and 1 if the command fails. | Exit status is 0 on success, and 1 if the command fails. | ||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
The following example shows how to set up a label for disk | The following example shows how to set up a label for disk | ||||
.Dq Li da2 , | .Dq Li da2 , | ||||
create a file system on it, and mount it: | create a file system on it, and mount it: | ||||
Show All 31 Lines |