fat: Do not prevent multiple simultaneous mounts.

This was preventing open() from getting the volume icon
once a FAT volume was mounted. This is now handled in the VFS.

Fixes #19303.

Change-Id: I5837bcdd4496b5eda13610e9ded661f1529364ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10023
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
John Scipione
2025-11-27 04:05:55 +00:00
committed by waddlesplash
parent 9cbbc82087
commit a8deca6c41
@@ -3322,15 +3322,6 @@ bsd_device_init(mount* bsdVolume, const dev_t devID, const char* deviceFile, cde
RETURN_ERROR(B_FROM_POSIX_ERROR(errno)); RETURN_ERROR(B_FROM_POSIX_ERROR(errno));
} }
// Prevent multiple simultaneous mounts.
#ifndef FS_SHELL
status_t status = _kern_lock_node(device->si_fd);
if (status != B_OK) {
close(device->si_fd);
RETURN_ERROR(status);
}
#endif
deviceDeleter.Detach(); deviceDeleter.Detach();
geomDeleter.Detach(); geomDeleter.Detach();