summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-19 19:57:24 +0000
committerMiles Bader <miles@gnu.org>1996-07-19 19:57:24 +0000
commit7de54e01d5c8d87b7a482d55b0dc2cb9c5323636 (patch)
treec82064fda8ae210a30230fbbf5df28471ec0521c
parent8be9a248d9f0b613c100abc1904bf99f0452e385 (diff)
(trivfs_S_file_get_storage_info):
Return correct values for NUM_RUNS and NUM_OFFSETS.
-rw-r--r--devio/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/devio/io.c b/devio/io.c
index 07ae8586..61f655d2 100644
--- a/devio/io.c
+++ b/devio/io.c
@@ -359,14 +359,14 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred,
(*ints)[0] = STORAGE_DEVICE; /* type */
(*ints)[1] = 0; /* flags */
(*ints)[2] = dev->dev_block_size; /* block_size */
- (*ints)[3] = 2; /* num_runs */
+ (*ints)[3] = 1; /* 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;
+ *num_offsets = 2;
strcpy (*data, dev->name);
*data_len = strlen (dev->name) + 1;