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 <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Nathan Patrizi
2026-05-11 16:39:10 +00:00
committed by Adrien Destugues
parent d9065a7503
commit 8e3a572216
+5 -2
View File
@@ -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);