1N/A Copyright (C) 1998-2001, 2007, 2009-2010 Free Software Foundation, 1N/A This program is free software; you can redistribute it and/or modify 1N/A it under the terms of the GNU General Public License as published by 1N/A the Free Software Foundation; either version 3 of the License, or 1N/A (at your option) any later version. 1N/A This program is distributed in the hope that it will be useful, 1N/A but WITHOUT ANY WARRANTY; without even the implied warranty of 1N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1N/A GNU General Public License for more details. 1N/A You should have received a copy of the GNU General Public License 1N/A/* ext2 stuff ****************************************************************/ 1N/Aunsigned char _bitmap[
8] = {
0x01,
0x02,
0x04,
0x08,
0x10,
0x20,
0x40,
0x80};
1N/A _(
"Inconsistent group descriptors!"));
1N/A _(
"File system full!"));
1N/A _(
"Inconsistent group descriptors!"));
1N/A _(
"File system full!"));
1N/A /* i_blocks is in 512 byte blocks */ 1N/A /* Direct blocks for first 12 blocks */ 1N/A /* Indirect blocks for next 256/512/1024 blocks (for 1k/2k/4k blocks) */ 1N/A /* Double indirect blocks for next 2^16/2^18/2^20 1k/2k/4k blocks */ 1N/A /* FIXME: we should check for triple-indirect blocks here, but it 1N/A * would be nice to have a better routine to traverse blocks, and 1N/A * file systems that need triple-indirect blocks for the resize 1N/A * inode are too big to worry about yet. 1N/A/* check whether y is root of x 1N/A * (formula grabbed from linux ext2 kernel source) */ 1N/A/* check whether group contains a superblock copy on file systems 1N/A * where not all groups have one (sparse superblock feature) */ 1N/A /* See if there is even anything to write... */ 1N/A /* Clear the flags of the components we just finished writing. */ 1N/A _(
"Invalid superblock. Are you sure this is an ext2 " 1N/A _(
"File system has errors! You should run e2fsck."))
1N/A _(
"File system was not cleanly unmounted! " 1N/A "You should run e2fsck. Modifying an unclean " 1N/A "file system could cause severe corruption."))
1N/A _(
"File system has an incompatible feature enabled. " 1N/A "Compatible features are has_journal, dir_index, " 1N/A "filetype, sparse_super and large_file. " 1N/A "Use tune2fs or debugfs to remove features."));
1N/A _(
"Error allocating buffer cache."));
1N/A#
endif /* !DISCOVER_ONLY */