5 |
* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
6 |
* 2003, 2004, 2005 by Theodore Ts'o. |
* 2003, 2004, 2005 by Theodore Ts'o. |
7 |
* |
* |
8 |
* This file may be redistributed under the terms of the GNU Public |
* Licensed under GPLv2, see file LICENSE in this tarball for details. |
|
* License. |
|
9 |
*/ |
*/ |
10 |
|
|
11 |
/* Usage: mke2fs [options] device |
/* Usage: mke2fs [options] device |
245 |
mke2fs_verbose("Running command: %s\n", buf); |
mke2fs_verbose("Running command: %s\n", buf); |
246 |
f = popen(buf, "r"); |
f = popen(buf, "r"); |
247 |
if (!f) { |
if (!f) { |
248 |
bb_perror_msg_and_die("cannot run '%s'", buf); |
bb_perror_msg_and_die("can't run '%s'", buf); |
249 |
} |
} |
250 |
retval = ext2fs_read_bb_FILE(fs, f, bb_list, invalid_block); |
retval = ext2fs_read_bb_FILE(fs, f, bb_list, invalid_block); |
251 |
pclose(f); |
pclose(f); |
1305 |
retval = zero_blocks(fs, start, blocks - start, |
retval = zero_blocks(fs, start, blocks - start, |
1306 |
NULL, &ret_blk, NULL); |
NULL, &ret_blk, NULL); |
1307 |
|
|
1308 |
mke2fs_warning_msg(retval, "cannot zero block %u at end of filesystem", ret_blk); |
mke2fs_warning_msg(retval, "can't zero block %u at end of filesystem", ret_blk); |
1309 |
write_inode_tables(fs); |
write_inode_tables(fs); |
1310 |
create_root_dir(fs); |
create_root_dir(fs); |
1311 |
create_lost_and_found(fs); |
create_lost_and_found(fs); |