Whamcloud - gitweb
tools/e2fsprogs.git
19 years agoUpdate for release of e2fsprogs 1.36.
Theodore Ts'o [Sat, 5 Feb 2005 23:26:03 +0000 (18:26 -0500)]
Update for release of e2fsprogs 1.36.

19 years agoMakefile util/gen-tarball executable after creating the file.
Theodore Ts'o [Sat, 5 Feb 2005 20:53:56 +0000 (15:53 -0500)]
Makefile util/gen-tarball executable after creating the file.

19 years agoRemove *.pc files on a "make distclean"
Theodore Ts'o [Sat, 5 Feb 2005 20:48:49 +0000 (15:48 -0500)]
Remove *.pc files on a "make distclean"

Remove emacs backup files in tests/Makefile on a "make clean"

19 years agoRemove support for --enable-clear-htree; this was
Theodore Ts'o [Sat, 5 Feb 2005 15:28:15 +0000 (10:28 -0500)]
Remove support for --enable-clear-htree; this was
only needed during the early development of the htree patch.

19 years agoAdd support for maintainer mode, which enables the makefile rules
Theodore Ts'o [Fri, 4 Feb 2005 15:43:58 +0000 (10:43 -0500)]
Add support for maintainer mode, which enables the makefile rules
to rebuild the configure script from configure.in, and to reubuild the
.gmo files in po directory.

19 years agoMakefile.in (clean): Remove tst_getsize when doing a make clean
Theodore Ts'o [Fri, 4 Feb 2005 15:36:37 +0000 (10:36 -0500)]
Makefile.in (clean): Remove tst_getsize when doing a make clean

19 years agofilefrag.c (frag_report): In verbose mode, print the first and
Theodore Ts'o [Fri, 4 Feb 2005 14:50:41 +0000 (09:50 -0500)]
filefrag.c (frag_report): In verbose mode, print the first and
last block numbers; may be useful for some folks.

19 years agoUse inline instead of __inline__ in the blkid debugging code for
Theodore Ts'o [Fri, 4 Feb 2005 03:09:49 +0000 (22:09 -0500)]
Use inline instead of __inline__ in the blkid debugging code for
Solaris compatibility.

19 years agoDrop the sparc assembly bitwise operations; it's less efficient
Theodore Ts'o [Fri, 4 Feb 2005 02:56:44 +0000 (21:56 -0500)]
Drop the sparc assembly bitwise operations; it's less efficient
than the GCC 3.4 compile code and triggers compiler warnings on
sparc64.  Thanks to Matthias Andree for his analysis and suggestions.
(Addresses Debian Bug #232326)

Remove support for the --enable-old-bitops configure option which
was only for very old sparc systems.

19 years agoDefine _XOPEN_SOURCE to be 500 to fix compilation problems on Solaris.
Theodore Ts'o [Fri, 4 Feb 2005 01:38:52 +0000 (20:38 -0500)]
Define _XOPEN_SOURCE to be 500 to fix compilation problems on Solaris.

19 years agoUpdate release notes and version.h for e2fsprogs 1.36-rc5 release.
Theodore Ts'o [Fri, 28 Jan 2005 17:33:01 +0000 (12:33 -0500)]
Update release notes and version.h for e2fsprogs 1.36-rc5 release.

19 years agopass2.c (e2fsck_process_bad_inode): Fix a corner case involving
Theodore Ts'o [Fri, 28 Jan 2005 17:27:35 +0000 (12:27 -0500)]
pass2.c (e2fsck_process_bad_inode): Fix a corner case involving
big-endian systems, long symlinks and i_file_acl set when
it shouldn't be.  Without this bugfix, f_clear_xattr will
fail on big-endian machines.

19 years agof_bad_inode, f_recnect_bad: Adjust test cases to take into
Theodore Ts'o [Fri, 28 Jan 2005 16:46:05 +0000 (11:46 -0500)]
f_bad_inode, f_recnect_bad: Adjust test cases to take into
account the change which clears the i_file_acl field earlier.

19 years agoFix two bugs found by the regression test suites. The bug was created when
Theodore Ts'o [Fri, 28 Jan 2005 16:45:28 +0000 (11:45 -0500)]
Fix two bugs found by the regression test suites.  The bug was created when
we changed ext2fs_create_resize_inode to always create the resize inode,
even when s_reserved_gdt_blocks is zero.  Mke2fs and e2fsck was calling
ext2fs_create_resize_inode() unconditionally, and depending on
s_reserved_gdt_blocks to be zero, instead of explicitly checking the
resize_inode feature.

19 years agoFixed missing not_fixed branch in e2fsck so that if the frag size field in
Theodore Ts'o [Fri, 28 Jan 2005 02:40:53 +0000 (21:40 -0500)]
Fixed missing not_fixed branch in e2fsck so that if the frag size field in
the inode is not fixed, the inode_bad_map bitmap won't be cleared.  Thanks to
Stephen Tweedie for pointing this out.

19 years agoblkid.c (main, compare_search_type): Make blkid -t work more
Theodore Ts'o [Fri, 28 Jan 2005 00:51:47 +0000 (19:51 -0500)]
blkid.c (main, compare_search_type): Make blkid -t work more
consistently when the blkid cache file is explicitly set
to /dev/null.  (Addresses Debian Bug #292425)

Also expose blkid_verify() as a public function to the blkid library.

19 years agomke2fs.c (PRS): Don't use a blocksize greater than 4k, even on
Theodore Ts'o [Fri, 28 Jan 2005 00:12:05 +0000 (19:12 -0500)]
mke2fs.c (PRS): Don't use a blocksize greater than 4k, even on
2.6 kernels, unless explicitly requested by the user; not
all 2.6 kernels (includeing stock 2.6 kernels as of this
writing) don't support blocksizes > 4k.

19 years agomke2fs.c (PRS): If the device size is too big to be expressed
Theodore Ts'o [Fri, 28 Jan 2005 00:07:26 +0000 (19:07 -0500)]
mke2fs.c (PRS): If the device size is too big to be expressed
using a 1k blocksize, retry with a 4k blocksize.
(Addresses Sourceforge bug #1106631)

19 years agoCreate the resize inode is created even if the s_reserved_gdt_blocks is
Theodore Ts'o [Thu, 27 Jan 2005 23:47:51 +0000 (18:47 -0500)]
Create the resize inode is created even if the s_reserved_gdt_blocks is
zero; e2fsck will now complain and recreate the resize inode if i_links_count
is zero or if it is not a regular file.

19 years agoCset exclude: tytso@think.thunk.org|ChangeSet|20050123214956|52665
Theodore Ts'o [Thu, 27 Jan 2005 23:13:33 +0000 (18:13 -0500)]
Cset exclude: tytso@think.thunk.org|ChangeSet|20050123214956|52665

19 years agoFix e2fsck to not delete symlinks that contain an extended attribute after
Theodore Ts'o [Thu, 27 Jan 2005 19:28:41 +0000 (14:28 -0500)]
Fix e2fsck to not delete symlinks that contain an extended attribute after
the ext_attr feature flag has been cleared.  (Addresses Red Hat Bugzilla
#146284)

19 years agoFix Solaris portability bug in the resize tests.
Theodore Ts'o [Wed, 26 Jan 2005 18:34:57 +0000 (13:34 -0500)]
Fix Solaris portability bug in the resize tests.

19 years agoUpdate version.h and release notes for the e2fsprogs 1.36-rc4 release.
Theodore Ts'o [Wed, 26 Jan 2005 18:20:12 +0000 (13:20 -0500)]
Update version.h and release notes for the e2fsprogs 1.36-rc4 release.

19 years agoAdd functions which allow an application program to do a run-time query
Theodore Ts'o [Wed, 26 Jan 2005 18:16:06 +0000 (13:16 -0500)]
Add functions which allow an application program to do a run-time query
of the version of the blkid library.

19 years agoFix "make uninstall" to make sure it removes everything that is installed.
Theodore Ts'o [Wed, 26 Jan 2005 18:03:55 +0000 (13:03 -0500)]
Fix "make uninstall" to make sure it removes everything that is installed.

19 years agoAdd pkg-config files to e2fsprogs's libraries.
Theodore Ts'o [Wed, 26 Jan 2005 17:59:25 +0000 (12:59 -0500)]
Add pkg-config files to e2fsprogs's libraries.

19 years agoe2image.c (scramble_dir_block): Make sure the unused space
Theodore Ts'o [Wed, 26 Jan 2005 16:37:46 +0000 (11:37 -0500)]
e2image.c (scramble_dir_block): Make sure the unused space
in the '.' and '..' directory entries are cleared when
e2image -rs is specified.

19 years agoresize2fs.c: Fix bug where we don't release the blocks belonging
Theodore Ts'o [Wed, 26 Jan 2005 15:03:56 +0000 (10:03 -0500)]
resize2fs.c: Fix bug where we don't release the blocks belonging
to the old inode table blocks when we move the inode
table.  (Addresses Debian Bug: #290894)

19 years agoAdd library support for large (EA in inode) inodes. Make sure that garbage
Theodore Ts'o [Wed, 26 Jan 2005 04:42:56 +0000 (23:42 -0500)]
Add library support for large (EA in inode) inodes.  Make sure that garbage
doesn't get written into the reserved portion when writing into filesystems
that have large inodes defined.

19 years agoprobe.c: Windows can perform a "quick format" that doesn't clear
Theodore Ts'o [Tue, 25 Jan 2005 08:26:10 +0000 (03:26 -0500)]
probe.c: Windows can perform a "quick format" that doesn't clear
enough of the partition that the blkid probes can get
confused.  Do the NTFS test first to deal with this
Windows misfeature.  (Addresses Debian Bug #291990)

19 years agoE2fsck will now check the individual block group inode and block free counts,
Theodore Ts'o [Tue, 25 Jan 2005 08:09:24 +0000 (03:09 -0500)]
E2fsck will now check the individual block group inode and block free counts,
as well as the filesystem-wide inode and block free counts.  If any of the
free counts is too large, force a full filesystem check.  (Addresses
Debian Bug #291571)

19 years agoClarified the tune2fs man page about how the -c option works.
Theodore Ts'o [Tue, 25 Jan 2005 04:45:56 +0000 (23:45 -0500)]
Clarified the tune2fs man page about how the -c option works.

19 years agoFix e2fsck so that it does not complain if the resize_inode feature is
Theodore Ts'o [Sun, 23 Jan 2005 21:49:56 +0000 (16:49 -0500)]
Fix e2fsck so that it does not complain if the resize_inode feature is
enabled, but s_reserved_gdt_blocks is zero and there is no double indirect
block in the resize inode.  If there are no blocks reserved for on-line
expansion, there is no need for the DIND block to be allocated in the resize
inode.

19 years agoSkip the r_resize_inode test if resize2fs is not compiled (due to
Theodore Ts'o [Sat, 22 Jan 2005 00:52:03 +0000 (19:52 -0500)]
Skip the r_resize_inode test if resize2fs is not compiled (due to
configure's --disable-resizer option)

19 years agoMake blkid -t display all devices that match the specified criteria,
Theodore Ts'o [Sat, 22 Jan 2005 00:11:05 +0000 (19:11 -0500)]
Make blkid -t display all devices that match the specified criteria,
not just the first one.  (Addresses Debian Bug #290530)

Update the blkid man page's description of the -t option.

19 years agoAdd support to the blkid library to recognize Oracle ASM volumes.
Theodore Ts'o [Fri, 21 Jan 2005 22:57:56 +0000 (17:57 -0500)]
Add support to the blkid library to recognize Oracle ASM volumes.

19 years agoAdd new utility program, copy_sparse.c, which is very useful
Theodore Ts'o [Fri, 21 Jan 2005 06:20:44 +0000 (01:20 -0500)]
Add new utility program, copy_sparse.c, which is very useful
for dealing with large sparse files (such as e2image files).

19 years agoset_fields.c: Add support for the jnl_blocks[] for set_super_value
Theodore Ts'o [Fri, 21 Jan 2005 02:45:27 +0000 (21:45 -0500)]
set_fields.c: Add support for the jnl_blocks[] for set_super_value

19 years agofilefrag.c (frag_report): Fix filefrag so that it works
Theodore Ts'o [Thu, 20 Jan 2005 22:37:01 +0000 (17:37 -0500)]
filefrag.c (frag_report): Fix filefrag so that it works
correctly with sparse files; unallocated blocks should not
be treated as a discontinuity.

19 years agoMCONFIG.in:
Matthias Andree [Thu, 20 Jan 2005 02:17:31 +0000 (03:17 +0100)]
MCONFIG.in:
  Rearrange -I options to give local includes precedence over
  /usr/local/include, to unbreak the build when an older
  e2fsprogs version (with includes) is installed under
  /usr/local (for instance, on FreeBSD).

19 years agoFix stupid typo in the CreateOS FreeBSD/Solaris changeset. Also included
Theodore Ts'o [Thu, 20 Jan 2005 00:30:01 +0000 (19:30 -0500)]
Fix stupid typo in the CreateOS FreeBSD/Solaris changeset.  Also included
changelogs which I forgot to include in the changeset.

19 years agoAdd interpretation of OS Creator values for FreeBSD and Lites in mke2fs
Theodore Ts'o [Wed, 19 Jan 2005 23:18:44 +0000 (18:18 -0500)]
Add interpretation of OS Creator values for FreeBSD and Lites in mke2fs
and dumpe2fs.

Eventually, we should fold this into a single function for converting
numbers to creator os codes, and vice versa (in TODO file)

19 years agor_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,
Theodore Ts'o [Wed, 19 Jan 2005 23:06:45 +0000 (18:06 -0500)]
r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,
m_read_opt, m_std, run_mke2fs, filter_dumpe2fs: Make tests
portable so they pass correctly on a FreeBSD system.

19 years agoMiscellaneous gcc -Wall cleanups. Use fixed rather than floating point
Theodore Ts'o [Wed, 19 Jan 2005 18:57:40 +0000 (13:57 -0500)]
Miscellaneous gcc -Wall cleanups.  Use fixed rather than floating point
math to avoid rounding issues.

19 years agoCleanup C code in debugfs's setfield. Added missing return statement (turned
Theodore Ts'o [Wed, 19 Jan 2005 18:26:38 +0000 (13:26 -0500)]
Cleanup C code in debugfs's setfield.  Added missing return statement (turned
out it didn't cause a functional bug) and added #define _XOPEN_SOURCE on
non-Solaris systems to pick up strptime()'s definition.

19 years agoconfigure.in: Clean up checks for dirent.d_reclen, ssize_t,
Theodore Ts'o [Wed, 19 Jan 2005 17:59:48 +0000 (12:59 -0500)]
configure.in: Clean up checks for dirent.d_reclen, ssize_t,
llseek, lseek64, sockaddr.sa_len and make the lseek checks
immune to compiler warnings, so that they can be compiled
with Intel C++ 8.1.

Patch from: Matthias Andree <matthias.andree@gmx.de>

19 years agoRemove debugging printf from e2image -s's code.
Theodore Ts'o [Wed, 19 Jan 2005 07:27:09 +0000 (02:27 -0500)]
Remove debugging printf from e2image -s's code.

19 years agoUpdate release notes, changelog, for the 1.36-rc3 release.
Theodore Ts'o [Wed, 19 Jan 2005 07:20:04 +0000 (02:20 -0500)]
Update release notes, changelog, for the 1.36-rc3 release.

19 years agoRemove libgnuintl.h file, since it is a generated file.
Theodore Ts'o [Wed, 19 Jan 2005 06:45:33 +0000 (01:45 -0500)]
Remove libgnuintl.h file, since it is a generated file.

19 years agoUpdate Italian translation file.
Theodore Ts'o [Wed, 19 Jan 2005 05:31:46 +0000 (00:31 -0500)]
Update Italian translation file.

19 years agoe2image.c, e2image.8.in: Add support for the -s option which
Theodore Ts'o [Wed, 19 Jan 2005 05:26:43 +0000 (00:26 -0500)]
e2image.c, e2image.8.in: Add support for the -s option which
scrambles directory entries for raw image files.

19 years agoMakefile.in: Fix the kernel compile-time echo commands to be
Theodore Ts'o [Wed, 19 Jan 2005 05:25:25 +0000 (00:25 -0500)]
Makefile.in: Fix the kernel compile-time echo commands to be
consistent and portable

19 years agoMake configure.in script check for prerequisite headers when checking for
Theodore Ts'o [Wed, 19 Jan 2005 04:29:01 +0000 (23:29 -0500)]
Make configure.in script check for prerequisite headers when checking for
the presence of sys/disk.h, sys/mount.h, and net/if.h, to improve
the configure script on Solaris and *BSD systems.

19 years agoUpdate French, Italian, and Turkish translations.
Theodore Ts'o [Tue, 18 Jan 2005 03:18:44 +0000 (22:18 -0500)]
Update French, Italian, and Turkish translations.

19 years agoVarious portability fixes for Solaris systems.
Theodore Ts'o [Tue, 18 Jan 2005 00:13:39 +0000 (19:13 -0500)]
Various portability fixes for Solaris systems.

19 years agoApplied patch from Francois Petillon (fantec at proxad.net) to
Theodore Ts'o [Mon, 17 Jan 2005 19:32:20 +0000 (14:32 -0500)]
Applied patch from Francois Petillon (fantec at proxad.net) to
avoid a file descriptor leak in the filefrag program.

19 years agoClean up Matthais's "fix crash when /proc/acpi/ac_acapter is not present"
Theodore Ts'o [Mon, 17 Jan 2005 18:59:18 +0000 (13:59 -0500)]
Clean up Matthais's "fix crash when /proc/acpi/ac_acapter is not present"
patch.

19 years agoUpdated French translation file.
Theodore Ts'o [Thu, 13 Jan 2005 19:54:44 +0000 (14:54 -0500)]
Updated French translation file.

19 years agof_dup_de, r_resize_inode: change ">& /dev/null" to ">/dev/null 2>&1"
Matthias Andree [Thu, 13 Jan 2005 03:23:24 +0000 (04:23 +0100)]
f_dup_de, r_resize_inode: change ">& /dev/null" to ">/dev/null 2>&1"
for compatibility with FreeBSD. In $DEBUGFS commands, move the
-R arg argument first so that systems with non-GNU getopt()
can see the request argument (they would otherwise stop
parsing at the first non-option argument).

19 years agolib/blkid/getsize.c: Move #include "blkidP.h" before <sys/queues.h>
Matthias Andree [Thu, 13 Jan 2005 03:15:45 +0000 (04:15 +0100)]
lib/blkid/getsize.c: Move #include "blkidP.h" before <sys/queues.h>
to avoid a clash with the LIST_HEAD in the latter file that results
in compilation failure.

19 years agofsck.c:
Matthias Andree [Thu, 13 Jan 2005 02:44:50 +0000 (03:44 +0100)]
fsck.c:
  Include <signal.h> to avoid compiler trouble.

19 years agoFix crash when /proc/acpi/ac_adapter/ is not present, for instance,
Matthias Andree [Thu, 13 Jan 2005 02:35:29 +0000 (03:35 +0100)]
Fix crash when /proc/acpi/ac_adapter/ is not present, for instance,
on pre-ACPI and non-Linux systems.

19 years agowe're reading unsigned long long, use %llu rather than %lld.
Matthias Andree [Wed, 12 Jan 2005 21:58:33 +0000 (22:58 +0100)]
we're reading unsigned long long, use %llu rather than %lld.

19 years agoUpdate for e2fsprogs 1.36-rc2 release.
Theodore Ts'o [Tue, 11 Jan 2005 19:39:55 +0000 (14:39 -0500)]
Update for e2fsprogs 1.36-rc2 release.

19 years agoUpdate e2fsprogs.pot file for 1.36 release.
Theodore Ts'o [Tue, 11 Jan 2005 19:05:18 +0000 (14:05 -0500)]
Update e2fsprogs.pot file for 1.36 release.

19 years agoUpdate Italian translation file.
Theodore Ts'o [Tue, 11 Jan 2005 19:05:00 +0000 (14:05 -0500)]
Update Italian translation file.

19 years agoApply Janos Farkas's patch to support extracting the uuid and label
Theodore Ts'o [Tue, 11 Jan 2005 04:58:11 +0000 (23:58 -0500)]
Apply Janos Farkas's patch to support extracting the uuid and label
information from swap partitions.

Also make sure that if a partition has a label removed, that the label is
removed form the blkid cache as well.

Add support for detecting 32k and 64k pagesize swap files.

19 years agoUpdate Debian changelog.
Theodore Ts'o [Tue, 11 Jan 2005 04:49:04 +0000 (23:49 -0500)]
Update Debian changelog.

19 years agoUpdate release notes in preparation for 1.36 release.
Theodore Ts'o [Sun, 9 Jan 2005 20:53:09 +0000 (15:53 -0500)]
Update release notes in preparation for 1.36 release.

19 years agoChange the description field in the Debian package meta information to avoid
Theodore Ts'o [Sun, 9 Jan 2005 20:48:09 +0000 (15:48 -0500)]
Change the description field in the Debian package meta information to avoid
starting with an upper case character or starting with a definite or
indefinite article, to avoid Lintian warnings.

19 years agoFix configure.in to use AC_CHECK_TYPES instead of the "broken by design"
Theodore Ts'o [Sun, 9 Jan 2005 05:57:45 +0000 (00:57 -0500)]
Fix configure.in to use AC_CHECK_TYPES instead of the "broken by design"
autoconf 2.13 version of AC_CHECK_TYPE.  Otherwise, on some platforms
intptr_t might get erroneously #define'd to be long.   (Addresses
Debian Bug #289133)

19 years agoFix minor typo's in the libblkid.txt documentation file --- thanks to Mike
Theodore Ts'o [Sat, 8 Jan 2005 03:47:20 +0000 (22:47 -0500)]
Fix minor typo's in the libblkid.txt documentation file --- thanks to Mike
Castle (dalgoda at ix.netcom.com) for pointing them out --- and clarify
the text describing blkid_put_cache().

19 years agoFix f_resize_inode test to deal with the renaming of the debugfs command
Theodore Ts'o [Sat, 8 Jan 2005 03:46:21 +0000 (22:46 -0500)]
Fix f_resize_inode test to deal with the renaming of the debugfs command
set_inode to set_inode_field.

19 years agoEx2fs_unlink() will return an error if both the name and inode number are
Theodore Ts'o [Sat, 8 Jan 2005 03:09:49 +0000 (22:09 -0500)]
Ex2fs_unlink() will return an error if both the name and inode number are
unspecified, to avoid doing something surprising (such as unconditionally
deleting the first directory entry).   Directory entries are now deleted
by coalescing them with the previous directory entry if possible, to
avoid directory fragmentation.  This is not an issue with the e2fsprogs suite,
but may be a problem for some of the users of libext2fs, such as e2tools.

19 years agoMake the official name of the new debugfs set_inode command be
Theodore Ts'o [Sat, 8 Jan 2005 02:14:12 +0000 (21:14 -0500)]
Make the official name of the new debugfs set_inode command be
set_inode_field, since it is more intuitive.

19 years agoWhen generating tarballs for Debian builds, remove the hyphen in version
Theodore Ts'o [Sat, 8 Jan 2005 02:04:46 +0000 (21:04 -0500)]
When generating tarballs for Debian builds, remove the hyphen in version
numbers such as "1.36-rc1", since Debian can't deal with version numbers
with '-' characters in them.

19 years agoUpdate version to 1.36-rc1, and change parsing algorithm for version strings
Theodore Ts'o [Fri, 7 Jan 2005 04:52:45 +0000 (23:52 -0500)]
Update version to 1.36-rc1, and change parsing algorithm for version strings
so that it deals with -rc version numbers correctly.

19 years agobadblocks.c (alarm_intr): Increase the number of spaces reserved
Theodore Ts'o [Thu, 6 Jan 2005 19:48:59 +0000 (14:48 -0500)]
badblocks.c (alarm_intr): Increase the number of spaces reserved
for printing block numbers, so we can correctly display
block numbers numbers greater than 999,999,999.
(Addresses SourceForge bug #1016163)

19 years agoMake tune2fs and e2fsck consistent about allowing at most 50% of the blocks
Theodore Ts'o [Thu, 6 Jan 2005 19:05:17 +0000 (14:05 -0500)]
Make tune2fs and e2fsck consistent about allowing at most 50% of the blocks
in a filesystem to be reserved for allocation by the root user.

19 years agoAdd imap_err.et to the lib/et regression test suite.
Theodore Ts'o [Thu, 6 Jan 2005 05:16:03 +0000 (00:16 -0500)]
Add imap_err.et to the lib/et regression test suite.

19 years agoFix resize inode handling on big endian systems, by adding new routines
Theodore Ts'o [Thu, 6 Jan 2005 05:04:24 +0000 (00:04 -0500)]
Fix resize inode handling on big endian systems, by adding new routines
that read/write indirect blocks, byte swapping them if necessary.

19 years agoAdjust blkid library so that it returns vfat in preference to msdos so
Theodore Ts'o [Wed, 5 Jan 2005 22:45:32 +0000 (17:45 -0500)]
Adjust blkid library so that it returns vfat in preference to msdos so
that mount will try to use the vfat filesystem.  (Addresses Debian bug #287455)

Similarly, the blkid library will now return an ext3 type for ext 2/3
filesystems that have the journal capability set.

We allow files to be probed by the blkid library, to make it easier to
test the library.  However, we also added safety checks to avoid saving
relative pathnames to blkid.tab, and probe_one() will only check block device
files.

19 years agofsck.c (PRS): Apply Fedora's e2fsprogs-1.35-progress.patch from
Theodore Ts'o [Wed, 5 Jan 2005 18:43:29 +0000 (13:43 -0500)]
fsck.c (PRS): Apply Fedora's e2fsprogs-1.35-progress.patch from
e2fsprogs-1.35-11.2.  Fixed multiple command-line parsing
bugs so that backwards compatibility is maintained, and so
that certain command-line options wouldn't be ignored.

19 years agomke2fs.c (parse_extended_opts): Rename the -R option to -E. Fix
Theodore Ts'o [Wed, 5 Jan 2005 16:12:20 +0000 (11:12 -0500)]
mke2fs.c (parse_extended_opts): Rename the -R option to -E.  Fix
the resize= raid/extended option so it actually works.
(The patch from Fedora e2fsprogs-1.35-11.2 claimed it
worked, but it was a placebo, despite the claim that it
worked in the usage message.)

19 years agodupfs.c (ext2fs_dup_handle): Make sure the new filesystem handle
Theodore Ts'o [Wed, 5 Jan 2005 08:16:09 +0000 (03:16 -0500)]
dupfs.c (ext2fs_dup_handle): Make sure the new filesystem handle
has its own copy of the orig_super data structure.  (This
is a better way of fixing a double-free problem in
resize2fs which Fedora attempted to fix in
e2fsprogs-1.35-double_free.patch.   Addresses Red Hat
Bugzilla #132707.)

19 years agoFix gcc -Wall nits.
Theodore Ts'o [Wed, 5 Jan 2005 08:02:54 +0000 (03:02 -0500)]
Fix gcc -Wall nits.

19 years agoAdd new function in e2p for parsing the number of blocks on the command line
Theodore Ts'o [Wed, 5 Jan 2005 08:01:06 +0000 (03:01 -0500)]
Add new function in e2p for parsing the number of blocks on the command line
for mke2fs and resize2fs, and use this function so that filesystem size
inputs to e2fsprogs command line programs are parsed consistently.

19 years agoAdd two new tests, f_resize_inode, and r_resize_inode, to the regression
Theodore Ts'o [Fri, 24 Dec 2004 06:47:50 +0000 (01:47 -0500)]
Add two new tests, f_resize_inode, and r_resize_inode, to the regression
test suite, which tests e2fsck and reszizefs2, respecitvely.

19 years agoAdd support to detect corrupted resize_inode's to e2fsck.
Theodore Ts'o [Fri, 24 Dec 2004 06:42:22 +0000 (01:42 -0500)]
Add support to detect corrupted resize_inode's to e2fsck.

19 years agoFix resize2fs so that it properly handles filesystems with the resize_inode
Theodore Ts'o [Fri, 24 Dec 2004 06:34:29 +0000 (01:34 -0500)]
Fix resize2fs so that it properly handles filesystems with the resize_inode
feature enabled.

19 years agoAvoid some potential inode cache coherency problem caused by using the
Theodore Ts'o [Fri, 24 Dec 2004 02:49:05 +0000 (21:49 -0500)]
Avoid some potential inode cache coherency problem caused by using the
byte-swapping options to e2fsck.  This was the cause of some hard to
reproduce problems that had been reported in the past, and which the
resize_inode changes tickled in a much more repeatable fashion.

19 years agoAdd support in debugfs's set_field command to specify array specifiers for
Theodore Ts'o [Thu, 23 Dec 2004 19:11:34 +0000 (14:11 -0500)]
Add support in debugfs's set_field command to specify array specifiers for
fields to be set.  For example, to set i_block[2] for the resize inode to
be 42, simply issue the debugfs command:

set_inode <7> block[2] 42

Also added is the virtual field "bmap", which also takes an array index.
So to set the physical block mapping for logical block 1282 in the file
/test/inode to be 57, use the debugfs command:

set_inode /test/inode bmap[1282] 57

19 years agoext2fs.h (BMAP_SET), bmap.c (ext2fs_bmap): Add support for new
Theodore Ts'o [Thu, 23 Dec 2004 18:55:34 +0000 (13:55 -0500)]
ext2fs.h (BMAP_SET), bmap.c (ext2fs_bmap): Add support for new
flag, BMAP_SET, which allows the caller to set a
particular logical->physical block mapping.

19 years agoEnhance dumpe2fs so that it will print the location of the reserved
Theodore Ts'o [Thu, 23 Dec 2004 18:54:28 +0000 (13:54 -0500)]
Enhance dumpe2fs so that it will print the location of the reserved
GDT blocks if they are present.

19 years agoDumpe2fs will print the s_reserved_gdt_blocks field if it is non-zero.
Theodore Ts'o [Thu, 23 Dec 2004 12:47:12 +0000 (07:47 -0500)]
Dumpe2fs will print the s_reserved_gdt_blocks field if it is non-zero.
(Change to libe2p's list_super2() function.)

19 years agoClean up resize inode routines in ext2fs library. We no longer print
Theodore Ts'o [Thu, 23 Dec 2004 12:45:04 +0000 (07:45 -0500)]
Clean up resize inode routines in ext2fs library.  We no longer print
any debugging statements from within library code (always a bad idea), and
ext2fs_create_resize_inode() will return a proper error code if the
resize inode is corrupt, instead of returning -1.

19 years agoswapfs.c (ext2fs_swap_super): Byteswap the reserved_gdt_blocks
Theodore Ts'o [Thu, 23 Dec 2004 01:55:48 +0000 (20:55 -0500)]
swapfs.c (ext2fs_swap_super): Byteswap the reserved_gdt_blocks
superblocks field.

19 years agoIn fsck, check return from malloc of fsck_path, and print an error message
Theodore Ts'o [Wed, 22 Dec 2004 05:49:06 +0000 (00:49 -0500)]
In fsck, check return from malloc of fsck_path, and print an error message
if it fails.

19 years agotune2fs.c (parse_time): Fix minor buglet; the parse_time routine
Theodore Ts'o [Wed, 22 Dec 2004 01:40:08 +0000 (20:40 -0500)]
tune2fs.c (parse_time): Fix minor buglet; the parse_time routine
should use the passed-in argument, not optarg, even though
the two are the same in the case of the current caller of
said function.  (i.e., no user-visible problems were caused
by this, even though the code was wrong).

19 years agoEnhance debugfs so that set_super_value can now set the wtime, mtime,
Theodore Ts'o [Wed, 22 Dec 2004 01:37:36 +0000 (20:37 -0500)]
Enhance debugfs so that set_super_value can now set the wtime, mtime,
lastcheck, and mkfs_time fields with date/time values.

Add the set_inode command to debugfs so that individual inode fields can
be more easily modified.  We should probably make the modify_inode
command go away at some point.