DragonFlyBSD/src 51879fcsys/kern subr_disk.c subr_disklabel32.c, sys/sys disklabel.h

kernel - Add /dev/part-by-label

* The DragonFly disklabel has a 'label' field which accepts up to
  a 63 byte ascii label.

* When this field is not empty, the kernel will now create a
  "/dev/part-by-label/<label>.<part>" alias.

  For example, if the label is FUBAR and you create a label with
  partitions 'a', 'b', and 'd', then you will get:

  # ls /dev/part-by-label
  FUBAR.a      FUBAR.b      FUBAR.d

* WARNING!  Duplicate labels will replace each other, so the
  label that shows up will be non-deterministic.

Suggested-by: Aaron LI
DeltaFile
+23-1sys/kern/subr_disk.c
+19-0sys/kern/subr_disklabel32.c
+19-0sys/kern/subr_disklabel64.c
+4-0sys/sys/disklabel.h
+65-14 files

UnifiedSplitRaw