Whamcloud - gitweb
tools/e2fsprogs.git
20 years agoDon't close the file descriptor when determining the size.
Theodore Ts'o [Mon, 22 Mar 2004 01:16:19 +0000 (20:16 -0500)]
Don't close the file descriptor when determining the size.
This bug was introduced in the previous getsize changes,
and was screwing up the blkid library probe functions.
(Addresses Debian Bug #239191)

20 years agodebugfs.c (make_link): Set the filetype information when creating
Theodore Ts'o [Sat, 20 Mar 2004 21:54:15 +0000 (16:54 -0500)]
debugfs.c (make_link): Set the filetype information when creating
a link.

20 years agoUpdate Polish, Sweedish, and Turkish translations.
Theodore Ts'o [Sat, 20 Mar 2004 21:34:22 +0000 (16:34 -0500)]
Update Polish, Sweedish, and Turkish translations.

20 years agoblkid.c (main, print_tags): Add new option -o which allows the
Theodore Ts'o [Sat, 20 Mar 2004 21:30:10 +0000 (16:30 -0500)]
blkid.c (main, print_tags): Add new option -o which allows the
user to control the output format of blkid.

20 years agomke2fs.8.in: Fix spelling typos (Addresses Debian Bug #238741)
Theodore Ts'o [Sat, 20 Mar 2004 21:14:46 +0000 (16:14 -0500)]
mke2fs.8.in: Fix spelling typos (Addresses Debian Bug #238741)

20 years agoChange the license on the UUID library to be 3-clause BSD-style
Theodore Ts'o [Sat, 20 Mar 2004 19:02:24 +0000 (14:02 -0500)]
Change the license on the UUID library to be 3-clause BSD-style

20 years agoAdd UUID type #define's, and add an CPP macro to define
Theodore Ts'o [Sat, 20 Mar 2004 02:54:13 +0000 (21:54 -0500)]
Add UUID type #define's, and add an CPP macro to define
UUID constants.

20 years agoUse 14 bits for the clock sequence, instead of just 13 bits when
Theodore Ts'o [Sat, 20 Mar 2004 00:56:55 +0000 (19:56 -0500)]
Use 14 bits for the clock sequence, instead of just 13 bits when
generating UUID's.

20 years agoFix Darwin/Mac OS X support to fetch the ethernet address in the uuid library.
Theodore Ts'o [Sat, 20 Mar 2004 00:29:17 +0000 (19:29 -0500)]
Fix Darwin/Mac OS X support to fetch the ethernet address in the uuid library.

20 years agoUpdate and cleaned up blkid man page significantly.
Theodore Ts'o [Sat, 13 Mar 2004 18:17:55 +0000 (13:17 -0500)]
Update and cleaned up blkid man page significantly.

20 years agoUpdate for 1.35-3 debian release.
Theodore Ts'o [Mon, 8 Mar 2004 21:40:48 +0000 (16:40 -0500)]
Update for 1.35-3 debian release.

20 years agoe2image.8.in: Update manpage to detail that writing to stdout is
Theodore Ts'o [Mon, 8 Mar 2004 19:18:56 +0000 (14:18 -0500)]
e2image.8.in: Update manpage to detail that writing to stdout is
currently only supported when writing a raw image dump.
(Addresses Debian bug #236383)

20 years agoOnly use the BLKGETSIZE64 ioctl on Linux 2.6 since it is
Theodore Ts'o [Mon, 8 Mar 2004 19:12:09 +0000 (14:12 -0500)]
Only use the BLKGETSIZE64 ioctl on Linux 2.6 since it is
unreliable in Linux 2.4.  (Addresses Debian Bug #236528).

Fix typo in the ioctl used for Mac OS X.

20 years agoe2fsprogs.spec.in: Mostly synchronize spec file with the one
Theodore Ts'o [Fri, 5 Mar 2004 02:05:14 +0000 (21:05 -0500)]
e2fsprogs.spec.in: Mostly synchronize spec file with the one
found in Fedora core 2.

20 years agologsave.c (main): Use setsid() to avoid getting killed by init
Theodore Ts'o [Fri, 5 Mar 2004 01:30:16 +0000 (20:30 -0500)]
logsave.c (main): Use setsid() to avoid getting killed by init
(run_program): Add a newline after reporting the exit code
or signal when the program exits.

20 years agoprobe.c (probe_ocfs), probe.h: Add support for the Oracle
Theodore Ts'o [Fri, 5 Mar 2004 00:59:58 +0000 (19:59 -0500)]
probe.c (probe_ocfs), probe.h: Add support for the Oracle
Cluster Filesystem (ocfs).  Patches courtesy of Rusty
Lynch (rusty@linux.co.intel.com).

20 years agoUpdate TODO file
Theodore Ts'o [Tue, 2 Mar 2004 16:18:21 +0000 (11:18 -0500)]
Update TODO file

20 years agoAdd tune2fs to the e2fsprogs udeb package
Theodore Ts'o [Tue, 2 Mar 2004 16:18:05 +0000 (11:18 -0500)]
Add tune2fs to the e2fsprogs udeb package
(Addresses Debian Bug #235639)

20 years agoUpdate getsize functions to use the Apple Darwin and Linux 64-bit
Theodore Ts'o [Tue, 2 Mar 2004 15:11:11 +0000 (10:11 -0500)]
Update getsize functions to use the Apple Darwin and Linux 64-bit
ioctl's.

20 years agoPatch from Brian Bergstrand to use the correct -fPIC flag for
Theodore Ts'o [Mon, 1 Mar 2004 03:46:49 +0000 (22:46 -0500)]
Patch from Brian Bergstrand to use the correct -fPIC flag for
Darwin in order to get rid of the compiler warning.

20 years agoADD TAG: E2FSPROGS-1_35 E2FSPROGS-1_35
Theodore Ts'o [Sat, 28 Feb 2004 16:06:03 +0000 (11:06 -0500)]
ADD TAG: E2FSPROGS-1_35

20 years agoUpdate version number for e2fsprogs 1.35 release.
Theodore Ts'o [Sat, 28 Feb 2004 15:52:35 +0000 (10:52 -0500)]
Update version number for e2fsprogs 1.35 release.

20 years agoChange debian control file so that the ss-dev and comerr-dev packages
Theodore Ts'o [Sat, 28 Feb 2004 15:49:47 +0000 (10:49 -0500)]
Change debian control file so that the ss-dev and comerr-dev packages
have versioned dependencies on libss2 and comerr2, respectively.

20 years agobadblocks.c (main): Change the default number of blocks tested
Theodore Ts'o [Sat, 28 Feb 2004 13:20:41 +0000 (08:20 -0500)]
badblocks.c (main): Change the default number of blocks tested
at once from 16 to 64.  (Addresses Debian bug #232240)

20 years agoAdd missing break statement so e2fsck -k actually works.
Theodore Ts'o [Fri, 27 Feb 2004 15:39:27 +0000 (10:39 -0500)]
Add missing break statement so e2fsck -k actually works.
(Addresses Debian Bug #234993)

20 years agofilefrag.c: Fix gcc -Wall nits.
Theodore Ts'o [Fri, 27 Feb 2004 02:08:06 +0000 (21:08 -0500)]
filefrag.c: Fix gcc -Wall nits.

20 years agobadblocks.c (pattern_fill): Fix bug accidentally added when
Theodore Ts'o [Fri, 27 Feb 2004 02:06:58 +0000 (21:06 -0500)]
badblocks.c (pattern_fill): Fix bug accidentally added when
fixing up gcc -Wall nits.  badblocks -t random was not
getting handled properly because ~0 needed to be cast to
an unsigned long instead of an unsigned char.  (Addresses
Debian bug #234828)

20 years agoUpdate Debian changelog for release.
Theodore Ts'o [Tue, 24 Feb 2004 13:51:02 +0000 (08:51 -0500)]
Update Debian changelog for release.

20 years agounix.c (main, PRS), e2fsck.8.in: Add a new -k option which keeps
Theodore Ts'o [Tue, 24 Feb 2004 05:16:09 +0000 (00:16 -0500)]
unix.c (main, PRS), e2fsck.8.in: Add a new -k option which keeps
the existing badblocks list when using the -c option.
(Addresses Debian bug #229103)

20 years agoUpdate configure file using autoconf 2.13.
Theodore Ts'o [Tue, 24 Feb 2004 04:10:41 +0000 (23:10 -0500)]
Update configure file using autoconf 2.13.

20 years agodebugfs.c (internal_dump_inode): Display the major/minor device
Theodore Ts'o [Tue, 24 Feb 2004 03:30:54 +0000 (22:30 -0500)]
debugfs.c (internal_dump_inode): Display the major/minor device
numbers for block/character devices.
(do_mknod): Add support for new-style device numbers (where
the major or minor number is greater than 255 and less
than 65535).  (Addresses Sourceforge bug #865289)

20 years agoMakefile.in (PROFILED_LIBS, PROFILED_DEPLIBS): Fix reference to
Theodore Ts'o [Tue, 24 Feb 2004 02:26:23 +0000 (21:26 -0500)]
Makefile.in (PROFILED_LIBS, PROFILED_DEPLIBS): Fix reference to
libblkid so that the build will work with --enable-profile
(Addresses Sourceforge bug #811408)

20 years agoDo not package autom4te.cache directory into tarball.
Matthias Andree [Mon, 23 Feb 2004 20:34:11 +0000 (21:34 +0100)]
Do not package autom4te.cache directory into tarball.

20 years agoAdd -mieee to CFLAGS if we're using GCC and the CPU is an Alpha.
Matthias Andree [Mon, 23 Feb 2004 20:30:11 +0000 (21:30 +0100)]
Add -mieee to CFLAGS if we're using GCC and the CPU is an Alpha.
Fixes a test case failure in FreeBSD/alpha. Reported and fix
suggested by Greg Lewis.

20 years agoFix up preen mode messages during pass 1B/C/D.
Theodore Ts'o [Sun, 22 Feb 2004 20:41:11 +0000 (15:41 -0500)]
Fix up preen mode messages during pass 1B/C/D.

20 years agodebugfs.8.in: Fix the debugfs man page to reference the
Theodore Ts'o [Sun, 22 Feb 2004 03:20:01 +0000 (22:20 -0500)]
debugfs.8.in: Fix the debugfs man page to reference the
init_filesys command, instead of "initialize".  (Addresses
Debian Bug #232406)

20 years agoext2fs.h (ext2fs_resize_mem): Fix C++ problem. (Addresses Red
Theodore Ts'o [Sun, 22 Feb 2004 02:04:30 +0000 (21:04 -0500)]
ext2fs.h (ext2fs_resize_mem): Fix C++ problem.  (Addresses Red
Hat Bugzilla #112448; thanks Thomas Woerner from Red Hat.)

20 years agofsck.c (execute): Use '&&' instead of '&'. (It didn't cause a
Theodore Ts'o [Sun, 22 Feb 2004 02:02:15 +0000 (21:02 -0500)]
fsck.c (execute): Use '&&' instead of '&'.  (It didn't cause a
problem because we got lucky, but let's do things right.
Fix from Thomas Woerner at Red Hat.)

20 years agoFix libext2fs and debugfs to correctly deal with symlinks that have
Theodore Ts'o [Sun, 22 Feb 2004 01:54:31 +0000 (20:54 -0500)]
Fix libext2fs and debugfs to correctly deal with symlinks that have
extended attribute information.  (Addresses Debian Bug #232328)

20 years agoe2fsck.c (e2fsck_run): Clear the SETJMP_OK flag when returning
Theodore Ts'o [Sun, 22 Feb 2004 01:53:03 +0000 (20:53 -0500)]
e2fsck.c (e2fsck_run): Clear the SETJMP_OK flag when returning
so we don't double longjump into an invalid stack frame.
(Thanks to Matthias Andree for providing this fix.)

20 years agofilefrag.c: Use #ifdef __linux__ instead of __LINUX__ so that it
Theodore Ts'o [Wed, 4 Feb 2004 00:18:03 +0000 (19:18 -0500)]
filefrag.c: Use #ifdef __linux__ instead of __LINUX__ so that it
actually compiles on Linux.  (Addresses Debian bug
#230992)

20 years agoADD TAG: E2FSPROGS-1_35-WIP-0131 E2FSPROGS-1_35-WIP-0131
Theodore Ts'o [Sun, 1 Feb 2004 03:33:16 +0000 (22:33 -0500)]
ADD TAG: E2FSPROGS-1_35-WIP-0131

20 years agoUpdate for WIP release 1.35-WIP release dated 31-Jan-2004.
Theodore Ts'o [Sun, 1 Feb 2004 03:33:16 +0000 (22:33 -0500)]
Update for WIP release 1.35-WIP release dated 31-Jan-2004.

20 years agoproblem.c (fix_problem): Don't call print_e2fsck_message if the
Theodore Ts'o [Sun, 1 Feb 2004 02:24:51 +0000 (21:24 -0500)]
problem.c (fix_problem): Don't call print_e2fsck_message if the
message is empty; otherwise, the NLS substitution will
print the .po header, which is Just Wrong.

20 years agofgetflags.c, fgetversion.c, fsetflags.c, fsetversion.c: Apply
Theodore Ts'o [Sun, 1 Feb 2004 02:16:35 +0000 (21:16 -0500)]
fgetflags.c, fgetversion.c, fsetflags.c, fsetversion.c: Apply
patch from Brian Bergstrand to support ext2_ioctl() in
Darwin.  This is implemented via the fsctl system call.

20 years agochattr.1.in: Clarify man page.
Theodore Ts'o [Sun, 1 Feb 2004 01:27:36 +0000 (20:27 -0500)]
chattr.1.in: Clarify man page.

chattr.1.in, dumpe2fs.8.in, lsattr.1.in, mklost+found.8.in,
tune2fs.8.in: List Theodore Ts'o <tytso@alum.mit.edu> as
the current maintainer.

20 years agoCheck in modified configure script from FreeBSD port changeset.
Theodore Ts'o [Fri, 30 Jan 2004 21:03:31 +0000 (16:03 -0500)]
Check in modified configure script from FreeBSD port changeset.

20 years agogen_uuid.c (uuid_generate_time): Fix bug pointed out by Ralf
Theodore Ts'o [Fri, 30 Jan 2004 07:07:13 +0000 (02:07 -0500)]
gen_uuid.c (uuid_generate_time): Fix bug pointed out by Ralf
S. Engelshall; when generating a random ethernet address
because one is not available, set the least significant
bit of the first byte of the MAC address, since it is the
first bit to be transmitted, and is therefore the
multicast bit.

20 years agoAdd f_selinux test case.
Theodore Ts'o [Fri, 30 Jan 2004 06:59:42 +0000 (01:59 -0500)]
Add f_selinux test case.

20 years agoFix a byte swap bugs, including one which caused e2fsck to
Theodore Ts'o [Fri, 30 Jan 2004 06:48:06 +0000 (01:48 -0500)]
Fix a byte swap bugs, including one which caused e2fsck to
incorrectly treat as valid symlinks created with SE Linux
(Debian bug #228723) as well as failing the f_journal test case on
big endian systems due to the backup journal blocks not being swapped.

20 years agoAdd provides of libuuid1. Addresses Debian Bug #229633.
Theodore Ts'o [Tue, 27 Jan 2004 20:55:21 +0000 (15:55 -0500)]
Add provides of libuuid1.  Addresses Debian Bug #229633.

20 years agoFor debugfs, use the "more" pager in preference to "less",
Theodore Ts'o [Sat, 24 Jan 2004 23:54:41 +0000 (18:54 -0500)]
For debugfs, use the "more" pager in preference to "less",
since "less" doesn't work terribly well for debugfs's purpose.

Document the DEBUGFS_PAGER and PAGER environment variables.

20 years agochattr.c (main): Add support for '--' to stop options
Theodore Ts'o [Tue, 20 Jan 2004 18:39:01 +0000 (13:39 -0500)]
chattr.c (main): Add support for '--' to stop options
processing.  (Addresses Debian bug #225188).

20 years agoRe-add FreeBSD support.
Matthias Andree [Sun, 28 Dec 2003 17:21:26 +0000 (18:21 +0100)]
Re-add FreeBSD support.
Tested on FreeBSD 5.2-CURRENT as of 2003-12-28.
Tested on FreeBSD 4.9-STABLE  as of 2003-12-27.

20 years agoFix more compiler warnings.
Matthias Andree [Sun, 28 Dec 2003 12:04:35 +0000 (13:04 +0100)]
Fix more compiler warnings.

20 years agoUpdate release notes as of December 26, 2003.
Theodore Ts'o [Fri, 26 Dec 2003 19:04:33 +0000 (14:04 -0500)]
Update release notes as of December 26, 2003.

20 years agoUpdate e2fsprogs POT file.
Theodore Ts'o [Fri, 26 Dec 2003 19:03:39 +0000 (14:03 -0500)]
Update e2fsprogs POT file.

20 years agochattr.1.in: Update text indicating the 'c', 's', and 'u'
Theodore Ts'o [Fri, 26 Dec 2003 19:03:20 +0000 (14:03 -0500)]
chattr.1.in: Update text indicating the 'c', 's', and 'u'
attributes are not currently supported to remove any
mention of a specific kernel version.  (Addresses Debian
bug #214920)

20 years agofsck.8.in: Update text describing "standard" options supported
Theodore Ts'o [Fri, 26 Dec 2003 18:56:14 +0000 (13:56 -0500)]
fsck.8.in: Update text describing "standard" options supported
by filesystem-specific checkers.  (Addresses Debian bug
#222606)

20 years agoAdd filefrag program to the list of programs installed in /usr/sbin.
Theodore Ts'o [Thu, 25 Dec 2003 19:31:08 +0000 (14:31 -0500)]
Add filefrag program to the list of programs installed in /usr/sbin.

20 years agoTry to use the DEBUGFS_PAGER environment
Theodore Ts'o [Thu, 25 Dec 2003 19:28:55 +0000 (14:28 -0500)]
Try to use the DEBUGFS_PAGER environment
variable first, and then fall back to the PAGER
environment variable.  Finally, search for an appropriate
pager executable.

20 years agoUpdate changelog for debian release.
Theodore Ts'o [Thu, 25 Dec 2003 07:08:07 +0000 (02:08 -0500)]
Update changelog for debian release.

20 years agoAdd Spanish translation and update PO files.
Theodore Ts'o [Wed, 24 Dec 2003 19:24:02 +0000 (14:24 -0500)]
Add Spanish translation and update PO files.

20 years agoTrivial warning fixes.
Matthias Andree [Sat, 20 Dec 2003 23:52:48 +0000 (00:52 +0100)]
Trivial warning fixes.

20 years agoInitial checkin of the filefrag program, which reports on how
Theodore Ts'o [Wed, 17 Dec 2003 15:13:41 +0000 (10:13 -0500)]
Initial checkin of the filefrag program, which reports on how
badly fragmented a file might be.

20 years agoFix bug in e2fsck: When reconnecting a directory, we may
Theodore Ts'o [Fri, 12 Dec 2003 08:00:56 +0000 (03:00 -0500)]
Fix bug in e2fsck:  When reconnecting a directory, we may
need to create a lost+found directory.  This may
invalidate our pointer to the directory information, so we
must look it up again after calling
e2fsck_reconnect_file().  (Addresses Debian bug #219640).

20 years agodebugfs.c (do_write, do_mkdir): If the directory is full,
Theodore Ts'o [Thu, 11 Dec 2003 16:54:48 +0000 (11:54 -0500)]
debugfs.c (do_write, do_mkdir): If the directory is full,
automatically call ext2fs_expand_dir() and then retry to
add the link to the directory as a convenience to the
user.  (Addresses Debian Bug: #217892)
(do_mknod): Clean up expand_dir error handling.

20 years agotune2fs.8.in: Fix some whitespace errors in the command synopsis.
Theodore Ts'o [Thu, 11 Dec 2003 16:31:48 +0000 (11:31 -0500)]
tune2fs.8.in: Fix some whitespace errors in the command synopsis.

20 years agocom_err.3: Fix C syntax error pointed out by ESR.
Theodore Ts'o [Thu, 11 Dec 2003 16:24:44 +0000 (11:24 -0500)]
com_err.3: Fix C syntax error pointed out by ESR.

20 years agoe2fsck.h (E2F_FLAG_RESTARTED): Assign a unique flag bitfield to
Theodore Ts'o [Thu, 11 Dec 2003 06:00:21 +0000 (01:00 -0500)]
e2fsck.h (E2F_FLAG_RESTARTED): Assign a unique flag bitfield to
E2F_FLAG_RESTARTED.  This fixes a bug where if the user
specifies an alternate superblock, and the journal needs
to be replayed, e2fsck would erroneously assume that
journal had been run already without clearing the
NEEDS_RECOVERY flag, and bomb out with an error.

20 years agodebugfs.c (do_write): Mask off the file type bits, and OR in the
Theodore Ts'o [Sun, 7 Dec 2003 21:31:45 +0000 (16:31 -0500)]
debugfs.c (do_write): Mask off the file type bits, and OR in the
regular file information.  (Addresses Debian Bug: #217456)

20 years agocs.po: Fix mangled encoding in Czech locale file. (Addresses
Theodore Ts'o [Sun, 7 Dec 2003 19:21:21 +0000 (14:21 -0500)]
cs.po: Fix mangled encoding in Czech locale file.  (Addresses
Debian bug #214633)

20 years agoutil.c (open_pager): Search for the pager to use, starting with
Theodore Ts'o [Sun, 7 Dec 2003 18:16:25 +0000 (13:16 -0500)]
util.c (open_pager): Search for the pager to use, starting with
'pager', and then falling back to 'less' and then 'more'.
(Addresses Debian Bug: #221977)

20 years agoFix test for /etc/mkinitrd/scripts/e2fsprogs to make sure it gets
Theodore Ts'o [Sun, 7 Dec 2003 17:45:49 +0000 (12:45 -0500)]
Fix test for /etc/mkinitrd/scripts/e2fsprogs to make sure it gets
   removed.  (Addresses Debian Bug #213275)

20 years agoADD TAG: E2FSPROGS-1_35-WIP-1207 E2FSPROGS-1_35-WIP-1207
Theodore Ts'o [Sun, 7 Dec 2003 17:17:27 +0000 (12:17 -0500)]
ADD TAG: E2FSPROGS-1_35-WIP-1207

20 years agoRemove warning message about using NLS.
Theodore Ts'o [Sun, 7 Dec 2003 17:17:27 +0000 (12:17 -0500)]
Remove warning message about using NLS.

20 years agomke2fs.c (PRS): Fix mke2fs -V so that it prints the version banner.
Theodore Ts'o [Sun, 7 Dec 2003 07:28:24 +0000 (02:28 -0500)]
mke2fs.c (PRS): Fix mke2fs -V so that it prints the version banner.

20 years agoUpdate for WIP release December 7, 2003.
Theodore Ts'o [Sun, 7 Dec 2003 07:16:43 +0000 (02:16 -0500)]
Update for WIP release December 7, 2003.

20 years agoAdd libuuid1-udeb (Closes: #221777)
Theodore Ts'o [Sun, 7 Dec 2003 06:57:04 +0000 (01:57 -0500)]
Add libuuid1-udeb (Closes: #221777)

20 years agoFix gcc -Wall nitpicks
Theodore Ts'o [Sun, 7 Dec 2003 06:28:50 +0000 (01:28 -0500)]
Fix gcc -Wall nitpicks

20 years agorecovery.c, jfs_user.h: Sync recovery.c with latest 2.5 kernel
Theodore Ts'o [Sun, 7 Dec 2003 06:00:02 +0000 (01:00 -0500)]
recovery.c, jfs_user.h: Sync recovery.c with latest 2.5 kernel
version.

20 years agoWhen testing a disk using e2fsck -c, use the list
Theodore Ts'o [Tue, 2 Dec 2003 12:56:42 +0000 (07:56 -0500)]
When testing a disk using e2fsck -c, use the list
of new bad blocks to replace the current list of bad
blocks.  This way "e2fsck -c" can be used to recover from
a corrupted bad block inode.

20 years agoet_c.awk: Add declaration of the Heimdal initialization routine
Theodore Ts'o [Fri, 28 Nov 2003 14:38:13 +0000 (09:38 -0500)]
et_c.awk: Add declaration of the Heimdal initialization routine
      to avoid gcc -Wall complaints

(Incomplete checkin --- see previous changeset as well)

20 years agoet_c.awk: Add declaration of the Heimdal initialization routine
Theodore Ts'o [Fri, 28 Nov 2003 14:36:37 +0000 (09:36 -0500)]
et_c.awk: Add declaration of the Heimdal initialization routine
to avoid gcc -Wall complaints

Rename test cases to spell Heimdal correctly (only one 'l').

20 years agocom_err.h, com_err.c: Use GCC attributes to mark com_err and
Theodore Ts'o [Thu, 27 Nov 2003 04:19:28 +0000 (23:19 -0500)]
com_err.h, com_err.c: Use GCC attributes to mark com_err and
default_com_err_proc as taking printf-style format
strings.

20 years agoMCONFIG.in: Make the gcc-wall print more warnings to catch
Theodore Ts'o [Thu, 27 Nov 2003 04:18:56 +0000 (23:18 -0500)]
MCONFIG.in: Make the gcc-wall print more warnings to catch
signed vs. unsigned problems.

20 years agocom_err.h: Retore the type of n_msgs in the error_table
Theodore Ts'o [Sat, 22 Nov 2003 18:54:38 +0000 (13:54 -0500)]
com_err.h: Retore the type of n_msgs in the error_table
structure to "int" from "unsigned int" fix a core dumping
bug in the com_right() function.  (Addresses Debian bug
#213450)

20 years agopl.po: Added new Polish translation.
Theodore Ts'o [Fri, 21 Nov 2003 17:56:32 +0000 (12:56 -0500)]
pl.po: Added new Polish translation.

sv.po: Updated Sweedish translation.

20 years agode.po: Fixed and updated German translations from Marc Langer.
Theodore Ts'o [Fri, 21 Nov 2003 17:46:04 +0000 (12:46 -0500)]
de.po: Fixed and updated German translations from Marc Langer.
(Addresses Debian bug #200086)

20 years agoIn e2fsck, given an extra grace period before actually forcing
Theodore Ts'o [Fri, 21 Nov 2003 16:02:22 +0000 (11:02 -0500)]
In e2fsck, given an extra grace period before actually forcing
a filesystem check if a laptop system reports it is running on
battery.  This way the laptop will be biased to waiting until
it is on AC power before doing a filesystem check.  (Addresses
Debian bug #205177)

20 years agoIn e2fsck, if the number of mounts until the next forced filesystem
Theodore Ts'o [Fri, 21 Nov 2003 15:54:54 +0000 (10:54 -0500)]
In e2fsck, if the number of mounts until the next forced filesystem
check is 5 or less, mention this to the user.  (Addresses
Debian bug #157194)

20 years agopass1.c (e2fsck_pass1), problem.h (PR_1_BB_FS_BLOCK),
Theodore Ts'o [Fri, 21 Nov 2003 15:41:58 +0000 (10:41 -0500)]
pass1.c (e2fsck_pass1), problem.h (PR_1_BB_FS_BLOCK),
  problem.c (PR_1_BB_FS_BLOCK, PR_1_BBINODE_BAD_METABLOCK_PROMPT):
Fix up the handling of corrupted indirect blocks in the
bad block.  We now correctly handle the case where there
is an overlap between a block group descriptor or
a superblock and a bad block indirect block.  In the case
where the indirect block is corrupted, we now suggest
"e2fsck -c".

20 years agoCheck the returned name from blkid_get_devname in tune2fs and
Theodore Ts'o [Fri, 21 Nov 2003 14:10:29 +0000 (09:10 -0500)]
Check the returned name from blkid_get_devname in tune2fs and
e2fsck, and print an error if the requested LABEL/UUID does
not exist (previously, we core dumped!)

20 years agoCenteralize calculation of which blocks are reserved/used for
Theodore Ts'o [Fri, 21 Nov 2003 14:02:21 +0000 (09:02 -0500)]
Centeralize calculation of which blocks are reserved/used for
the superblock and block group descriptors into two functions:
ext2fs_reserve_super_and_bgd, found in lib/ext2fs/alloc_sb.c, and
ext2fs_super_and_bgd_lock, found in lib/ext2fs/close.c.

Change e2fsck/pass1.c (mark_table_blocks), lib/ext2fs/closefs.c
(ext2fs_flush), lib/ext2fs/initialize.c (ext2fs_initialize),
and misc/dumpe2fs.c (list_desc) to use these functions.

e2fsck/ChangeLog
    pass1.c (mark_table_blocks): Use the new function
     ext2fs_reserve_super_and_bgd to calculate the blocks to be
     reserved.

lib/ext2fs/ChangeLog
    closefs.c (ext2fs_super_and_bgd_loc): New function which
     centralizes the calculation of the superblock and block
     group descriptors.
     (ext2fs_flush): Use ext2fs_super_and_bgd_lock to figure
     out where to write the superblock and block group
     descriptors.

    alloc_sb.c (ext2fs_reserve_super_and_bgd): New function which
     reserves space in the block bitmap using
     ext2fs_super_and_bgd_loc.

    initialize.c (ext2fs_initialize): Use
     ext2fs_reserve_super_and_bgd to initialize the block bitmap.

misc/ChangeLog
    dumpe2fs.c (list_desc): Use ext2fs_super_and_bgd_loc to
     determine the locations of the superblock and block group
      descriptors.

20 years agoutil.c (check_plausibility): Support 2.6 kernel header files,
Theodore Ts'o [Thu, 20 Nov 2003 23:34:20 +0000 (18:34 -0500)]
util.c (check_plausibility): Support 2.6 kernel header files,
instead of having the build to crash.  (Addresses Debian
bug #221778)

20 years agom_meta_bg: New test case to test the meta block group feature.
Theodore Ts'o [Wed, 3 Sep 2003 13:51:52 +0000 (09:51 -0400)]
m_meta_bg: New test case to test the meta block group feature.

m_raid_opt: New test case to test raid striping

m_large_file: Fix description

run_e2fsck, run_mke2fs, filter_dumpe2fs: Add dumpe2fs output to
the test output for comparison.  Add support for
compressed expect scripts.

20 years agoAdd regression tests for mke2fs.
Theodore Ts'o [Mon, 1 Sep 2003 13:28:18 +0000 (09:28 -0400)]
Add regression tests for mke2fs.

Mke2fs has been modified to honor the MKE2FS_SKIP_PROGRESS,
MKE2FS_DEVICE_SECTSIZE, and MKE2FS_SKIP_CHECK_MSG in order
facilitate the regression testing.

20 years agoUpdate debian changelog
Theodore Ts'o [Mon, 1 Sep 2003 03:07:16 +0000 (23:07 -0400)]
Update debian changelog

Force e2fsprogs to use the most current version of e2fslibs.  (Closes
Debian bug #208103.

20 years agomke2fs.c (set_fs_defaults): Fix bug which caused -T largefile or
Theodore Ts'o [Mon, 1 Sep 2003 00:56:57 +0000 (20:56 -0400)]
mke2fs.c (set_fs_defaults): Fix bug which caused -T largefile or
-T largefile4 to core dump due to a division by zero
error.  (Addressed Debian bug #207082)

20 years agoutil.c (get_backup_sb): Check to make sure the context is passed
Theodore Ts'o [Mon, 25 Aug 2003 01:36:38 +0000 (21:36 -0400)]
util.c (get_backup_sb): Check to make sure the context is passed
in non-NULL before trying to dereference it.  Otherwise we
might core dump when called to expand %S in a problem
description.