git: kernel: Clean the disklabel packname similar to serno

Aaron LI aly at crater.dragonflybsd.org
Wed Feb 18 05:49:13 PST 2026


commit 3d5d53359954fe80555a8ef82954cd3890d321d0
Author: Aaron LI <aly at aaronly.me>
Date:   Thu May 15 20:43:05 2025 +0800

    kernel: Clean the disklabel packname similar to serno
    
    Reuse the disk_cleanserial() function to clean the disklabel's packname,
    which is used to create the device aliases under /dev/by-label/ and
    /dev/part-by-label/.
    
    Meanwhile, rename disk_cleanserial() to disk_cleanname() to make it more
    intuitive.

Summary of changes:
 sys/kern/subr_disk.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3d5d53359954fe80555a8ef82954cd3890d321d0


-- 
DragonFly BSD source repository


More information about the Commits mailing list