From 8e3a57221669e26c763ec0af9411211c7afd16ee Mon Sep 17 00:00:00 2001 From: Nathan Patrizi Date: Tue, 23 Dec 2025 21:42:30 +0000 Subject: [PATCH] Kernel: Renamed volume name will be updated in DDM Renaming a volume will now also update the relevant KPartition object in the Disk Device Manager so that the new name is reflected immediately across the system (i.e it will show up in the Tracker mount menu and in DriveSetup with the new name). Fixes #2149 Change-Id: Ic6a6dc48bd87cb3850aabf8ee237feed9ae73037 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10152 Tested-by: Commit checker robot Reviewed-by: waddlesplash --- src/system/kernel/fs/vfs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index cf6d7ea6ff..bb07d54046 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -8184,9 +8184,12 @@ fs_write_info(dev_t device, const struct fs_info* info, int mask) if (status != B_OK) return status; - if (HAS_FS_MOUNT_CALL(mount, write_fs_info)) + if (HAS_FS_MOUNT_CALL(mount, write_fs_info)) { status = FS_MOUNT_CALL(mount, write_fs_info, info, mask); - else + + if ((mask & FS_WRITE_FSINFO_NAME) && status == B_OK) + mount->partition->SetContentName(info->volume_name); + } else status = B_READ_ONLY_DEVICE; put_mount(mount);