version 1.16.2.2, 2017/04/26 02:53:35 |
version 1.17, 2017/02/16 18:50:04 |
Line 134 msdos_parse_opts(const char *option, fsi |
|
Line 134 msdos_parse_opts(const char *option, fsi |
|
else if (strcmp(msdos_options[rv].name, "hidden_sectors") == 0) |
else if (strcmp(msdos_options[rv].name, "hidden_sectors") == 0) |
msdos_opt->hidden_sectors_set = 1; |
msdos_opt->hidden_sectors_set = 1; |
|
|
if (stampst.st_ino) { |
msdos_opt->timestamp = stampst.st_ino ? stampst.st_mtime : 0; |
msdos_opt->timestamp_set = 1; |
|
msdos_opt->timestamp = stampst.st_mtime; |
|
} |
|
|
|
return 1; |
return 1; |
} |
} |
Line 157 msdos_makefs(const char *image, const ch |
|
Line 154 msdos_makefs(const char *image, const ch |
|
assert(root != NULL); |
assert(root != NULL); |
assert(fsopts != NULL); |
assert(fsopts != NULL); |
|
|
fsopts->size = fsopts->maxsize; |
/* |
|
* XXX: pick up other options from the msdos specific ones? |
|
* Is minsize right here? |
|
*/ |
msdos_opt->options.create_size = MAX(msdos_opt->options.create_size, |
msdos_opt->options.create_size = MAX(msdos_opt->options.create_size, |
fsopts->offset + fsopts->size); |
fsopts->minsize); |
msdos_opt->options.offset = fsopts->offset; |
msdos_opt->options.offset = fsopts->offset; |
if (msdos_opt->options.bytes_per_sector == 0) { |
if (msdos_opt->options.bytes_per_sector == 0) { |
if (fsopts->sectorsize == -1) |
if (fsopts->sectorsize == -1) |