summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-13 23:17:16 +0000
committerMiles Bader <miles@gnu.org>1995-10-13 23:17:16 +0000
commitcc4acfe8bf9838773321e369b4c995ea5a655032 (patch)
tree4bfc215bd8084b2af1fef1c8fbcdebe19a359c0a
parent88832f95a8473f326890eb2cf1c700c8f8e0e044 (diff)
(diskfs_S_file_get_storage_info): Use DISKFS_DEVICE instead of UFS_DEVICE,
and DISKFS_DEVICE_NAME instead of UFS_DEVICE_NAME.
-rw-r--r--ufs/inode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index db1ef96d..b15c9848 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -680,10 +680,11 @@ diskfs_S_file_get_storage_info (struct protid *cred,
*class = STORAGE_DEVICE;
*block_size = DEV_BSIZE;
- strcpy (storage_name, ufs_device_name);
+ if (diskfs_device_name)
+ strcpy (storage_name, diskfs_device_name);
if (diskfs_isuid (0, cred))
- *storage_port = ufs_device;
+ *storage_port = diskfs_device;
else
*storage_port = MACH_PORT_NULL;
*storage_port_type = MACH_MSG_TYPE_COPY_SEND;