summaryrefslogtreecommitdiff
path: root/devio
diff options
context:
space:
mode:
Diffstat (limited to 'devio')
-rw-r--r--devio/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/devio/io.c b/devio/io.c
index 1c7a3298..07ae8586 100644
--- a/devio/io.c
+++ b/devio/io.c
@@ -362,16 +362,20 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred,
(*ints)[3] = 2; /* num_runs */
(*ints)[4] = strlen (dev->name) + 1; /* name_len */
(*ints)[5] = 0; /* misc_len */
+ *num_ints = 6;
(*offsets)[0] = 0;
(*offsets)[1] = dev->size / dev->dev_block_size;
+ *num_offsets = 1;
strcpy (*data, dev->name);
+ *data_len = strlen (dev->name) + 1;
if (cred->isroot)
(*ports)[0] = dev->port;
else
(*ports)[0] = MACH_PORT_NULL;
+ *num_ports = 1;
*ports_type = MACH_MSG_TYPE_COPY_SEND;
}
else