Theodore Ts'o
4cae04529e
Add SIGINT and SIGTERM handling to fsck and e2fsck. For e2fsck,
...
make sure we gracefully clean up and only exit at safe points.
For fsck, we pass the SIGINT/SIGTERM signal to the child processes,
so they can do their own cleanup.
2002-07-21 14:14:03 -04:00
Theodore Ts'o
7098810daf
mke2fs.c (zap_sector): Clear the buffer *after* testing for the
...
BSD sector label. Otherwise the first 512 bytes don't get
zapped. (Addresses Debian bug #147256.)
2002-07-14 08:00:00 -04:00
Theodore Ts'o
f0865ce4d6
mke2fs.8.in: Cleaned up man page, and made it a bit more
...
OS-agnostic. Addresses Debian bug #144621 . Hope this
makes the Hurd whiners happy. :-)
2002-07-02 10:08:27 -04:00
Theodore Ts'o
5cfd7404ba
chattr.1.in: Fix man page typo. (Addresses Debian bug #141938 )
2002-06-28 10:47:24 -04:00
Theodore Ts'o
88372d5c4b
Applied Andrew Morton's patch to support the dirsync option.
2002-06-15 18:58:39 -04:00
Andreas Dilger
b21bf26778
Do sanity checking of the number of blocks and inodes in a group for
...
8192-byte and 16384-byte blocksize filesystems.
Change the default bytes-per-inode ratio of a new filesystem to be at most
one inode per block for large blocksizes.
2002-06-10 11:05:56 -06:00
Andreas Dilger
aab6fe735d
misc/mke2fs.c: Minor fix for new page size checking code.
2002-05-18 13:27:33 -06:00
Theodore Ts'o
31e29a12d1
Fix up Andreas's 8k blocksize changes to fix a number of bugs,
...
and to make the page size determined at run-time instead of
compile time.
2002-05-17 10:53:07 -04:00
Andreas Dilger
932a489cdf
Add support for creating and checking 8192-byte blocksize filesystems.
...
We complain if you try to create such a filesystem on a system with 4096
byte PAGE_SIZE.
Add checks for valid inode size for undocumented -I option.
2002-05-16 03:20:07 -06:00
Theodore Ts'o
7de6577cd9
Fix typo in man page.
2002-04-30 20:22:32 -04:00
Theodore Ts'o
a8e772498c
Update for 1.27 release.
2002-03-08 03:12:14 -05:00
Theodore Ts'o
7ef3bb838d
mke2fs.c: Check for the BSD disklabel on all architectures, and
...
also check the byte-swapped magic number as well.
2002-03-08 03:01:53 -05:00
Theodore Ts'o
6693837e59
mke2fs.c: Output warnings to stderr
...
(From Philipp Thomas <pthomas@suse.de>)
2002-03-08 00:14:46 -05:00
Theodore Ts'o
546a1ff18c
Fix various gcc -Wall complaints.
2002-03-07 23:52:56 -05:00
Theodore Ts'o
756df353e8
mke2fs.c (zap_sector): Don't erase BSD disklabels on Alpha.
...
(From Thorsten Kukuk <kukuk@suse.de>)
2002-03-07 20:52:12 -05:00
Theodore Ts'o
14308a5398
Newer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES.
2002-03-05 03:26:52 -05:00
Theodore Ts'o
57173d0feb
Update Changelog messages to use tytso@mit.edu for all addresses
...
after September 7, 2001. (Forgot to update my emacs file to get
rid of the tytso@valinux.com address. Oops.)
2002-02-26 14:59:39 -05:00
Andreas Dilger
0072f8de52
Add check for mkfs.ext3 and create a journal in this case.
2002-02-25 23:11:26 -07:00
Theodore Ts'o
b9f409255e
Update makefiles to install mkfs.ext3, and to install man pages for
...
mkfs.ext2/3 and fsck.ext2/3. Also remove any compressed man pages
before installing the man pages.
2002-02-24 03:08:57 -05:00
Theodore Ts'o
541d173d91
Update with the Debian package e2fsprogs-1.26-1.
...
Clarify and clean up the badblocks man page and the com_err info file.
2002-02-23 21:23:26 -05:00
Theodore Ts'o
7d4343d0d0
Lots of small random portability fixes to make e2fsprogs build
...
under AIX --- even without the 5L compatibility toolkit, and even
using the uber-crippled AIX native C compiler.
2002-02-12 02:34:44 -05:00
Theodore Ts'o
a5f3f5c191
Update files for 1.26 release.
2002-02-03 01:00:22 -05:00
Theodore Ts'o
5599c2fa87
Changed fsck to support filesystems types in /etc/fstab of the form
...
"ext3,ext2", etc.
Added support for only searching for a specified list of filesystems.
Also add support for identifying reiserfs filesystems.
2002-02-03 00:08:52 -05:00
Theodore Ts'o
a1069118d4
fsck.c: Allow the number of outstanding processes fs-specific
...
fsck programs to be capped via the FSCK_MAX_INST
envrionment variable.
fsck.8.in: Document all of the environment variables used by fsck.
2002-01-29 12:49:14 -05:00
Theodore Ts'o
177ab2bebe
Document the -f flag to tune2fs.
2002-01-27 18:23:49 -05:00
Andreas Dilger
c713f6066c
Always free vdirname.
2002-01-06 21:52:44 -07:00
Andreas Dilger
c007bc06d9
Return a non-zero exit code on error.
2001-12-25 23:10:40 -07:00
Theodore Ts'o
5493a27dc1
badblocks.c (main): Open the device as O_RDWR if possible, since
...
fsync() isn't guaranteed to work if the filesystem is
opened read-only.
2002-01-02 14:15:35 -05:00
Theodore Ts'o
d4de4aa938
tune2fs.8.in, tune2fs.c (parse_tune2fs_options, main): Add
...
support for new option, -T, which allows the user to set
the last checked time on the filesystem.
2001-12-26 08:58:01 -05:00
Theodore Ts'o
3ed57c27df
In mke2fs and e2fsck, specifying the -c option twice will now do
...
a read/write test on the disk. Update the man pages to encourage
using the -c option, and to discouraging running badblocks separately,
since users tend to forget to set the blocksize when running
badblocks.
2001-12-24 15:01:59 -05:00
Theodore Ts'o
5f0fabe6db
Fix broken Makefile dependencies.
2001-12-24 12:42:45 -05:00
Theodore Ts'o
6a525069a9
Mke2fs now creates the lost+found directory with 0700 permissions,
...
since files which get dropped into that directory may have come
from a protected directory, and the system administrator may not
deal with immediately. (Addresses Debian bug #118443 )
2001-12-24 09:40:00 -05:00
Theodore Ts'o
19007e51a5
Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
...
system header file version of hbd.h when using diet glibc
(since it forcibly adds /usr/include to the beginning of include
search path.)
2001-12-23 19:33:51 -05:00
Theodore Ts'o
eaf4dc5c98
Add support to read out information from the LVM proc hierarchy,
...
so that the UUID cache can search the LVM logical volumes for
UUID's, labels, etc.
2001-12-22 00:04:22 -05:00
Theodore Ts'o
0655b104e6
Change dumpe2fs to not die if the listing of the bad blocks
...
can't be found. Slimmed down dumpe2fs by eliminating duplicate
code paths.
2001-12-21 23:59:46 -05:00
Theodore Ts'o
4ea7bd0439
Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus
...
error message could be printed on an malloc() failure, and e2image
was optimized to avoid needless system calls by using the stashed
inode functions.
2001-12-16 23:23:37 -05:00
Theodore Ts'o
8cf93332d1
Fix e2fsck's handling of external journals,and update journal
...
recovery files from 2.4.17-pre8.
2001-12-16 02:23:36 -05:00
Theodore Ts'o
a5f0bb9d1b
Pull up dumpe2fs cleanup patch from the experimental branch.
2001-12-02 19:29:35 +01:00
Theodore Ts'o
571fc5a89c
Fixes necessary for e2fsprogs to work using the diet libc.
...
- Renamed linux/list.h to be linux/linked_list.h to work around a
problem caused by diet libc insistence to search the kernel
header files ahead of all other files in the include path,
including the user specified include files.
- Worked around a bug in diet libc which core dumps when using
putc with stderr by using fputs instead. As a bonus, this
also shaved a few bytes off of com_err.o.
- Fixed a real bug in debugfs which was detected because diet libc
was more sensitive than glibc when incorrectly using fclose()
where pclose() is required.
2001-12-02 17:23:27 +01:00
Theodore Ts'o
a36cf92009
e2image.8.in: Fix cut-and-paste typo (Addresses Debian bug #119624 )
2001-11-24 16:13:49 -05:00
Theodore Ts'o
6ef3920a82
util.c (check_plausibility): Use stat64 if available so that
...
check_plausibility() works with files > 2GB.
2001-11-13 18:49:09 -05:00
Theodore Ts'o
b3f5b4c229
Define a new ext2 file attribute, EXT2_NOTAIL_FL,
...
which signals that a particular inode should not have the
last bits of data (the "tail") be merged with another
file. This is necessary to keep programs like LILO happy.
2001-11-05 19:22:02 -05:00
Theodore Ts'o
6430bd67ce
fsck.c (interpret_type): If the "auto" type is specified, make
...
sure interpet_device() is called so that device
specifications which use LABEL= or UUID= are translated
into a real device name.
2001-11-05 18:58:46 -05:00
Theodore Ts'o
e3ef3502f7
e2image.c (output_meta_data_blocks): Optimize away excess
...
lseek() calls when creating a sparse file. Fewer system
calls are a good thing. <g>
2001-11-05 18:57:43 -05:00
Andreas Dilger
568101f774
mke2fs.c(main): Always exit with non-zero code in case of error.
...
mke2fs.c(zap_sector): Check that buffer allocation succeeded.
2001-10-13 01:22:25 -06:00
Andreas Dilger
d6903eccf9
Update findsuper to support > 2GB device sizes.
...
Add extra validity checks over just ext2 magic detection.
Add progress meter.
2001-10-01 15:38:14 -06:00
Theodore Ts'o
fbf9111216
Update changelogs for 1.25 release.
2001-09-20 10:47:47 -04:00
Theodore Ts'o
f6a6afcef4
Remove dead code that wasn't in use from tune2fs.
2001-09-19 18:27:39 -04:00
Theodore Ts'o
39567c4493
tune2fs.8.in: Update man page to reflect the fact that adding or
...
removing a journal doesn't require running e2fsck.
2001-09-19 15:28:21 -04:00
Theodore Ts'o
3f85f65c98
mke2fs.c (zap_sector): Allocate sufficient space for zero-filled
...
buffer.
2001-09-17 10:38:06 -04:00