1 |
/* |
/* |
2 |
Copyright (C) 1994,95,96,97,98,99 Free Software Foundation, Inc. |
Copyright (C) 1994,95,96,97,98,99,2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
5 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
136 |
|
|
137 |
/* Override the standard diskfs routine so we can add our own output. */ |
/* Override the standard diskfs routine so we can add our own output. */ |
138 |
error_t |
error_t |
139 |
diskfs_append_args (char **argz, unsigned *argz_len) |
diskfs_append_args (char **argz, size_t *argz_len) |
140 |
{ |
{ |
141 |
error_t err; |
error_t err; |
142 |
|
|
166 |
&store_parsed, &bootstrap); |
&store_parsed, &bootstrap); |
167 |
|
|
168 |
if (store->block_size > DEV_BSIZE) |
if (store->block_size > DEV_BSIZE) |
169 |
error (4, 0, "%s: Bad device block size %d (should be <= %d)", |
error (4, 0, "%s: Bad device block size %zd (should be <= %d)", |
170 |
diskfs_disk_name, store->block_size, DEV_BSIZE); |
diskfs_disk_name, store->block_size, DEV_BSIZE); |
171 |
if (store->size < SBSIZE + SBOFF) |
if (store->size < SBSIZE + SBOFF) |
172 |
error (5, 0, "%s: Disk too small (%Ld bytes)", diskfs_disk_name, |
error (5, 0, "%s: Disk too small (%Ld bytes)", diskfs_disk_name, |