summaryrefslogtreecommitdiff
path: root/devio
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-11 17:52:20 +0000
committerMiles Bader <miles@gnu.org>1995-10-11 17:52:20 +0000
commit7be9379273079b6f784172dd46d75503f7f189a3 (patch)
treeb5f27c337fe6ab7dc96c95e52e9a91b25496a9b0 /devio
parent8ac6366521dd827f15adf8c2d34d3f3e7b9a0090 (diff)
(trivfs_S_file_get_storage_info):
Change type of ADDRESSES to off_t **, and add BLOCK_SIZE parameter.
Diffstat (limited to 'devio')
-rw-r--r--devio/io.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/devio/io.c b/devio/io.c
index cedb3479..d244524b 100644
--- a/devio/io.c
+++ b/devio/io.c
@@ -313,11 +313,10 @@ trivfs_S_file_syncfs (struct trivfs_protid *cred, int wait, int dochildren)
/* ---------------------------------------------------------------- */
-typedef int run_elem_t;
-
error_t
trivfs_S_file_get_storage_info (struct trivfs_protid *cred, int *class,
- run_elem_t **runs, unsigned *runs_len,
+ off_t **runs, unsigned *runs_len,
+ size_t *block_size,
char *dev_name, mach_port_t *dev_port,
mach_msg_type_name_t *dev_port_type,
char **misc, unsigned *misc_len)
@@ -330,7 +329,7 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred, int *class,
struct dev *dev = ((struct open *)cred->po->hook)->dev;
err = vm_allocate (mach_task_self (),
- (vm_address_t *)runs, 2 * sizeof (run_elem_t), 1);
+ (vm_address_t *)runs, 2 * sizeof (off_t), 1);
if (!err)
{
*class = STORAGE_DEVICE;
@@ -339,6 +338,8 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred, int *class,
(*runs)[1] = dev->size / dev->dev_block_size;
*runs_len = 2;
+ *block_size = dev->dev_block_size;
+
strcpy (dev_name, dev->name);
if (cred->isroot)