diff options
author | Miles Bader <miles@gnu.org> | 1995-04-16 20:14:55 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-16 20:14:55 +0000 |
commit | 031439396033f9517886b22db3055953126ae099 (patch) | |
tree | bff2b2b681886a10f4a20d67e7e62feeeb87532d /ext2fs | |
parent | 741678cbdd38f39af0c07a2b15953cec62b53662 (diff) |
Formerly ext2fs.c.~6~
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/ext2fs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 35bb94e9..f67e2f02 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -231,8 +231,8 @@ main (int argc, char **argv) error(1, 0, "Bad device record size %d (should be %d)\n", sizes[DEV_GET_SIZE_RECORD_SIZE], DEV_BSIZE); - disk_pagersize = sizes[DEV_GET_SIZE_DEVICE_SIZE]; - assert (disk_pagersize >= SBLOCK_OFFS + SBLOCK_SIZE); + disk_pager_size = sizes[DEV_GET_SIZE_DEVICE_SIZE]; + assert (disk_pager_size >= SBLOCK_OFFS + SBLOCK_SIZE); /* Map the entire disk. */ create_disk_pager (); @@ -243,7 +243,7 @@ main (int argc, char **argv) diskfs_spawn_first_thread (); err = vm_map (mach_task_self (), (vm_address_t *)&disk_image, - disk_pagersize, 0, 1, disk_pagerport, 0, 0, + disk_pager_size, 0, 1, disk_pagerport, 0, 0, VM_PROT_READ | (diskfs_readonly ? 0 : VM_PROT_WRITE), VM_PROT_READ | (diskfs_readonly ? 0 : VM_PROT_WRITE), VM_INHERIT_NONE); @@ -251,7 +251,7 @@ main (int argc, char **argv) get_hypermetadata(); - if (disk_pagersize < sblock->s_blocks_count * block_size) + if (disk_pager_size < sblock->s_blocks_count * block_size) ext2_panic("main", "Disk size (%d) too small (superblock says we need %ld)", sizes[DEV_GET_SIZE_DEVICE_SIZE], |