summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-07-07Add build.static to util/subset.exclude as well.Theodore Ts'o1-0/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07debian: Update debian policy compliance to 3.8.0.0Theodore Ts'o1-1/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07libext2fs: Fix FLEX_BG offset used by ext2fs_allocate_group_tableTheodore Ts'o1-1/+4
The offset for both inode bitmaps and inode tables is overshot by one block causing a hole between the group of bitmaps and inode tables when initializing a filesystem using mke2fs. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07debian: Create debian release tarball to obey new WIP naming conventionTheodore Ts'o3-6/+13
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07Add ZFS test image to blkid test suiteRicardo M. Correia2-0/+1
Signed-off-by: Ricardo M. Correia <Ricardo.M.Correia@Sun.COM> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07e2fsck: Fix i_size checking for large extent-based filesEric Sandeen1-4/+12
This: Truncating bigfile to 14680064000000 Pass 1: Checking inodes, blocks, and sizes Inode 49154, i_size is 14680064000000, should be 0. Fix<y>? is a bit unexpected. It's because the size is being checked against the max sizes for bitmap files, not extent-based files. Nick saw this with his 14TB file. Patch below applies different size limits to the different file formats. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07debian: Add dbg packages which contain the stripped out debuging symbolsTheodore Ts'o2-5/+155
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07Treat build.static as an ingored file in the source directoryTheodore Ts'o2-0/+2
Don't include it in distribution tarballs, and add it to the .gitignore file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-06mke2fs: Print a better error msg when ext2fs_get_device_size() returns EFBIGTheodore Ts'o1-0/+8
Print a message when mke2fs uses a default blocksize from an external journal device, and print a more self-explanatory message so that if that blocksize is used and ext2fs_get_device_size() returns EFBIG, the user has a better chance of understanding why mke2fs issued that error message. Addresses-Debian-Bug: #488663 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-06mke2fs: Use a fs_type of 'journal' when creating an external journalTheodore Ts'o1-19/+10
If creating a an external journal via "mke2fs -O journal_dev", override the fs_type list (i.e., "ext2", "small"), and replace it with an fs_type list of "journal". This will prevent external journals smaller than 512MB from being created with a block size of 1k, which is not very useful and leads to much confusion. Addresses-Debian-Bug: #488663 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-06badblocks: Fix crash when lots of -t patterns givenTheodore Ts'o1-1/+2
With more than 8 -t patterns given, badblocks will overwrite the t_patts array boundary due to realloc not taking into account the size of an int. Oops. Addresses-Debian-Bug: 487298 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-06Clean up some trivial build warningsEric Sandeen5-10/+11
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-28blkid: Eliminate stale entries that duplicate a verified deviceTheodore Ts'o1-2/+36
Addresses-Debian-Bug: #487758, #487783 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-28blkid: Make sure a device returned by blkid_find_dev_with_tag existsTheodore Ts'o1-2/+4
There could be stale entries in blkid file, so if the device does not exist, skip it. Addresses-Debian-Bug: #487758, #487783 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-28blkid: use list_for_each_safe in garbage collectionEric Sandeen2-3/+4
We need to use list_for_each_safe in case a device gets removed from the list during garbage collection. Also make the manpage slightly more informative about what the -g garbage collection option does. Addresses-Debian-Bug: #487758, #487783 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-23po: update nl.po (from translationproject.org)Benno Schulenberg2-964/+1248
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-23po: update cs.po (from translationproject.org)Petr Pisar2-925/+1236
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-23libext2fs: Don't include ss/ss.h except when debuggingTheodore Ts'o1-1/+2
extent.c should only try to include ss/ssh.h when it is compiled with -DDEBUG. Otherwise it's not necessary and it breaks the Debian MIPS build (and the Debian MIPS build only) because it tries to build libext2fs without building libss as part of a MIPS-specific build rule. Addresses-Debian-Bug: #487675 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-23debian: parse /etc/adduser.conf file manuallyTheodore Ts'o1-6/+19
The syntax for /etc/adduser.conf allows spaces around the equals sign, i.e.: GROUPHOMES = no We were previously asking /bin/sh to source the file, which doesn't support the above syntax. So pull out the necessary fields via sed/grep. Thanks to Juan A. Diaz for reporting the bug and suggesting the fix. Addresses-Debian-Bug: #487443 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-21badblocks: fix a bug in the read throttlingIustin Pop1-2/+3
The previous patch was missing an #include and thus the compiler didn't catch the (now obvious) error. Signed-off-by: Iustin Pop <iustin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-21po: update vi.po (from translationproject.org)Clytie Siddall2-857/+1126
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-21po: update pl.po (from translationproject.org)Jakub Bogusz2-861/+1197
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-21po: update fr.po (from translationproject.org)Samuel Thibault2-957/+1237
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-21po: update es.po (from translationproject.org)Benno Schulenberg2-953/+1458
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-21po: update de.po (from translationproject.org)Philipp Thomas2-805/+1230
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-21po: update ca.po (from translationproject.org)David Planella Molas2-812/+1225
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-21blkid: Fix cc portability problem in probe_lvm2()Theodore Ts'o1-1/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-19blkid: fix swap tests (again)Eric Sandeen1-1/+4
Some architectures (ppc ...) need a bigger swapfile than is shipped, in the test image so the current re-make of swap was failing. We could either ship a bigger image or just dd a bigger file... There is one more minor problem with the tests; older mkswap does not support the -U uuid specification. I'm not sure offhand what to do about that problem, or if it really needs fixing. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-19Fix "make check" in e2fsck subdirectory to use the in-tree com_err libraryTheodore Ts'o1-2/+2
Thanks to Jose Santos for pointing this out Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-18Add e2undo files to the RPM specfile templateEric Sandeen1-0/+2
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-18Add a reference to e2fsck.conf(5) to the e2fsck man pageTheodore Ts'o1-0/+1
Addresses-Debian-Bug: #393313 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-18Update e2fsprogs.pot and POTFILES.inTheodore Ts'o2-740/+1020
This is to allow the translation project to get started on translating messages for e2fsprogs 1.41. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-18Update release notes for debian experimental packageTheodore Ts'o2-0/+147
2008-06-17Merge branch 'maint'Theodore Ts'o15-621/+773
Conflicts: README resize/online.c version.h
2008-06-17Update release notes, changelog, and other files for v1.40.11 releaseTheodore Ts'o7-198/+255
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-17Clarify the debugfs man page regarding the default superblockTheodore Ts'o1-3/+4
Addresses-Debian-Bug: #486463 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-17mke2fs, tune2fs, resize2fs: Use floating point to calculate percentagesTheodore Ts'o6-18/+20
When calculating the number reserved blocks, use floating point for better accuracy, since for big filesystems it really makes a difference. In addition, mke2fs and tune2fs accepts a floating point number from the user, so they should provide that level of accuracy. Addresses-Debian-Bug: #452639 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-17libblkid: Fix marginal C code in probe_lvm2()Theodore Ts'o1-3/+2
Modern gcc accepted what was there previously, but it's clearly not correct C code, and this may have been the explanation for why a user trying to compile a recent version of e2fsprogs failed to do so on Red Hat 7.3. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-17Update version.h for 1.41-WIP-0617 snapshot releaseTheodore Ts'o2-2/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-17badblocks: implement read throttlingIustin Pop2-2/+43
Currently, badblocks will read as fast as it can from the drive. While this is what one wants usually, if badblocks is run in read-only mode on a drive that is in use, it will greatly degrade the other users of this disk. This patch adds a throttling mode for reads where each read will be delayed by a percentage of the time the previous read took; i.e., an invocation of '-d 100' will cause the sleep to be the same as the read took, a value of 200 will cause the sleep to be twice as high, and a value of 50 will cause it to be half. This will not be done if the previous read had errors, since then the hardware will possibly have timeouts and that would decrease the speed too much. This algorithm helps when the disk is used by other processes as then, due to the increased load, the time spent doing the reads will be higher, and correspondingly badblocks will sleep even more and thus it will use less of the drive's bandwidth. This is different from using ionice, as it is a voluntary (and partial) throttling. Signed-off-by: Iustin Pop <iustin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-17badblocks: fix a possible bug in parse_uintIustin Pop1-0/+1
Currently, the parse_uint() function checks errno after the strtoul() call. But, according to the man page of strtoul(): Since strtoul() can legitimately return 0 or LONG_MAX (LLONG_MAX for strtoull()) on both success and failure, the calling program should set errno to 0 before the call, and then determine if an error occurred by checking whether errno has a nonzero value after the call. When using locales, it can happen that looking for the locale files is not successful, and therefore errno will have a nonzero value from this. And since the argument parsing is one of the first things done after startup, parse_uint() will wrongly report errors. The fix is to simply reset errno to zero before calling strtoul(). Signed-off-by: Iustin Pop <iustin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-17badblocks: add a max bad blocks count optionIustin Pop2-2/+46
Currently, badblocks will continue scanning the device until it reaches last_block, even though it might be that the drive is not responding at all anymore. This patch introduces a new parameter ('-e') that allows one to specify the maximum bad block count; if badblocks sees more than this number, it will abort the test. While this is not useful for testing a device that will need to be used as a filesystem (because we don't get an exhaustive list of bad blocks), it is useful for testing if a device has bad blocks at all: for example, with a count of 1, it will finish after the first error thus not needing to test the whole device if the only purpose of the test is to check for any bad blocks. Signed-off-by: Iustin Pop <iustin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-17resize2fs: Prohibit the combination of flex_bg and !resize_inodeTheodore Ts'o1-1/+20
This is a potentially a difficult case for resize2fs to handle, so prohibit it for now. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-17ext2fs_zero_blocks: Avoid clearing more blocks than requestedTheodore Ts'o1-2/+4
This could cause certain mke2fs feature combinations to result in the initial blocks of the inode table getting wiped out when the journal is created. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-17resize2fs: Fix support for the uninit_bg featureTheodore Ts'o2-24/+65
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-08po: update ca.po (from translationproject.org)David Planella Molas2-402/+495
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-07Update tests to reflect undoe2fs -> e2undo renameTheodore Ts'o3-11/+11
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-07Fix LIBSS dependency problem for tests/test_icount and lib/ss/test_ssTheodore Ts'o2-2/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-07e2undo: Enable missing pieces to enable I18N for this applicationTheodore Ts'o2-1/+8
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-07Add "#include <limits.h>" to get PATH_MAX for mke2fs and tune2fsTheodore Ts'o2-0/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>