OSDN Git Service

android-x86/external-e2fsprogs.git
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.

19 years agoAdd support for newer superblock fields in debugfs's set_super_value
Theodore Ts'o [Fri, 17 Dec 2004 01:15:35 +0000 (20:15 -0500)]
Add support for newer superblock fields in debugfs's set_super_value
command.

19 years agoFix e2fsck so that it will clean up filesystesm that have the
Theodore Ts'o [Fri, 17 Dec 2004 01:13:45 +0000 (20:13 -0500)]
Fix e2fsck so that it will clean up filesystesm that have the
resize_inode capability disabled, but which still have the
s_reserved_gdt_blocks field set in the superblock, or which
still have blocks in the inode #7 (the resize inode).

19 years agosparse.c (ext2fs_list_backups, ext2fs_bg_has_super),
Theodore Ts'o [Wed, 15 Dec 2004 23:06:52 +0000 (18:06 -0500)]
sparse.c (ext2fs_list_backups, ext2fs_bg_has_super),
res_gdt.c (list_backups), closefs.c (ext2fs_bg_has_super),
ext2fs.h: Move ext2fs_list_backups() to res_gdt.c, and
ext2fs_bg_has_super() back to closefs.c.  There's no
reason for the new file, since list_backups() isn't being
used by any other functions, and can be made static, and
all users of the ext2fs filesystem will have to call
ext2fs_close() anyway.

19 years agom_meta_bg, m_no_opt, m_raid_opt: Adjust tests to take into
Theodore Ts'o [Wed, 15 Dec 2004 22:53:23 +0000 (17:53 -0500)]
m_meta_bg, m_no_opt, m_raid_opt: Adjust tests to take into
account the resize inode patch.

19 years agoSupplied changelog for resize inode patch.
Theodore Ts'o [Wed, 15 Dec 2004 22:26:32 +0000 (17:26 -0500)]
Supplied changelog for resize inode patch.

19 years agoAdd support for on-line resizing ala the resize inode. This patch
Theodore Ts'o [Wed, 15 Dec 2004 19:39:16 +0000 (14:39 -0500)]
Add support for on-line resizing ala the resize inode.  This patch
is taken from Fedora Core 3's e2fsprogs 1.35-11.2.src.rpm's
e2fsprogs-resize.patch.

19 years agoFix stupid core dumping bug if the TZ environment variable isn't set.
Theodore Ts'o [Wed, 15 Dec 2004 17:21:41 +0000 (12:21 -0500)]
Fix stupid core dumping bug if the TZ environment variable isn't set.

19 years agoAdd install-strip and install-shlibs-strip targets
Theodore Ts'o [Wed, 15 Dec 2004 16:28:55 +0000 (11:28 -0500)]
Add install-strip and install-shlibs-strip targets

Use Linux-kernel-style makefile output for "make install"

Update intl/Makefile.in to version from gettext 0.14.1

19 years agoUse MKINSTALLDIRS macro so that the Makefiles can find the script
Theodore Ts'o [Wed, 15 Dec 2004 02:46:26 +0000 (21:46 -0500)]
Use MKINSTALLDIRS macro so that the Makefiles can find the script
correctly.

Update Makefile dependencies.

Update "make depend" production so that it filters out comments
inserted by newer gcc compilers.

Remove sync from e2fsck's "make all" target.

19 years agoFix minor glitches in the e2image man page.
Theodore Ts'o [Wed, 1 Dec 2004 17:42:33 +0000 (12:42 -0500)]
Fix minor glitches in the e2image man page.

19 years agoMake make distclean remove all generated files.
Theodore Ts'o [Wed, 1 Dec 2004 03:06:27 +0000 (22:06 -0500)]
Make make distclean remove all generated files.

Update the po and intl changelog files to indicate that we updated to
gettext 0.14.1

19 years agoIf the TZ environment variable is set to GMT, use gmtime()
Theodore Ts'o [Wed, 1 Dec 2004 00:57:20 +0000 (19:57 -0500)]
If the TZ environment variable is set to GMT, use gmtime()
instead of localtime() or ctime() to force the use of GMT.
This is because the dietlibc doesn't honor the TZ environment
variable.

19 years agoAvoid using uint and uchar types when probing for ocfs2 filesystems
Theodore Ts'o [Wed, 1 Dec 2004 00:05:38 +0000 (19:05 -0500)]
Avoid using uint and uchar types when probing for ocfs2 filesystems
in the blkid library, to allow compilation using dietlibc.

19 years agoUpdate to use gettext 0.14.1 and autoconf 2.50+
Theodore Ts'o [Wed, 1 Dec 2004 00:00:19 +0000 (19:00 -0500)]
Update to use gettext 0.14.1 and autoconf 2.50+

19 years agoAdd support for passing options to the io layer using the URL syntax. For
Theodore Ts'o [Tue, 30 Nov 2004 19:07:11 +0000 (14:07 -0500)]
Add support for passing options to the io layer using the URL syntax.  For
example, /tmp/test.img?offset=1024.  Multiple options can separated using
the & character, although at the moment the only option implemented is
the offset option in the unix_io layer.

19 years agoUse Linux-kernel-style makefile output to make it easier to
Theodore Ts'o [Tue, 30 Nov 2004 15:52:27 +0000 (10:52 -0500)]
Use Linux-kernel-style makefile output to make it easier to
see errors/warnings.

19 years agoAdd definition for the extents filesystem feature and inode flag.
Theodore Ts'o [Tue, 30 Nov 2004 03:14:23 +0000 (22:14 -0500)]
Add definition for the extents filesystem feature and inode flag.

Change the maximum allowable blocksize to be 65536.  This allows e2fsck to
check filesystems with a pagesize of 65536, and mke2fs to accept -b 65536.
Of course such a filesystem will not currently work on a Linux/x86 system,
at least not as of this writing!

19 years agodebugfs.c (do_open_filesys): Fix obvious uninitialized variable
Theodore Ts'o [Mon, 29 Nov 2004 22:35:58 +0000 (17:35 -0500)]
debugfs.c (do_open_filesys): Fix obvious uninitialized variable
buglet.

20 years agoRemove support for EVMS 1.x plugin library.
Theodore Ts'o [Fri, 19 Nov 2004 22:25:27 +0000 (17:25 -0500)]
Remove support for EVMS 1.x plugin library.

20 years agoRemove the a.out DLL support, since it's been obsolete and unmaintained
Theodore Ts'o [Fri, 19 Nov 2004 22:06:47 +0000 (17:06 -0500)]
Remove the a.out DLL support, since it's been obsolete and unmaintained
for a long time now.

20 years agodebugfs.c (kill_file_by_inode): Only iterate over the inode to
Theodore Ts'o [Fri, 19 Nov 2004 19:39:14 +0000 (14:39 -0500)]
debugfs.c (kill_file_by_inode): Only iterate over the inode to
release blocks if the inode has them; otherwise attempting
to rm devices and fast symlinks will lead to errors.
(Addresses Sourceforge Bug #954741 and #957244)

20 years agomke2fs.8.in: Removed the word "destructive" when describing the
Theodore Ts'o [Fri, 19 Nov 2004 19:29:48 +0000 (14:29 -0500)]
mke2fs.8.in: Removed the word "destructive" when describing the
read-write test, since it can confuse people.

20 years agoprobe.c (probe_ocfs): Fix bug where the wrong size for "ocfs1"
Theodore Ts'o [Fri, 19 Nov 2004 19:28:01 +0000 (14:28 -0500)]
probe.c (probe_ocfs): Fix bug where the wrong size for "ocfs1"
was being passed to blkid_set_tag().  Thanks to Andrea
Dilger for pointing this out.

20 years agoUpdated Italian translation
Theodore Ts'o [Tue, 9 Nov 2004 17:02:53 +0000 (12:02 -0500)]
Updated Italian translation

20 years agogetsize.c (ext2fs_get_device_size): Add support for Windows
Theodore Ts'o [Fri, 8 Oct 2004 16:45:24 +0000 (12:45 -0400)]
getsize.c (ext2fs_get_device_size): Add support for Windows
9x/NT under Cygwin.  Thanks to Sam Robb
(samrobb@users.sourceforge.net) for pointing this and the
suggested code patch.

20 years agomke2fs.8.in: Add an explanation about why reserved blocks in a
Theodore Ts'o [Fri, 8 Oct 2004 14:47:30 +0000 (10:47 -0400)]
mke2fs.8.in: Add an explanation about why reserved blocks in a
filesystem is a good thing.

20 years agoAttempt recovery if the journal contains illegal blocks
Richard Mortimer [Mon, 4 Oct 2004 16:56:24 +0000 (17:56 +0100)]
Attempt recovery if the journal contains illegal blocks

20 years agoDocument the default blocksize used by badblocks(8).
Theodore Ts'o [Tue, 28 Sep 2004 14:30:27 +0000 (10:30 -0400)]
Document the default blocksize used by badblocks(8).
(Addresses Debian Bug #273679)

20 years agoUpdate changelog to include all debian bugs closed by fixes.
Theodore Ts'o [Sat, 25 Sep 2004 11:46:31 +0000 (07:46 -0400)]
Update changelog to include all debian bugs closed by fixes.

20 years agoOnly use blocksizes > 4k on Linux 2.6 and newer systems.
Theodore Ts'o [Sat, 25 Sep 2004 11:40:12 +0000 (07:40 -0400)]
Only use blocksizes > 4k on Linux 2.6 and newer systems.
(Addresses Debian Bug #271064)

20 years agoRemove double "//" when listing attributes in the root directory or
Theodore Ts'o [Fri, 24 Sep 2004 16:16:17 +0000 (12:16 -0400)]
Remove double "//" when listing attributes in the root directory or
when there is a trailing '/' in the directory name.  (Addresses Debian
Bug #272943)

20 years agoMake sure /usr/lib is creaeted when installing e2initrd_helper.
Theodore Ts'o [Fri, 24 Sep 2004 16:15:14 +0000 (12:15 -0400)]
Make sure /usr/lib is creaeted when installing e2initrd_helper.
(Addresses Debian Bug #272698)

20 years agoMake sure the configure files are newer than configure.in the
Theodore Ts'o [Fri, 24 Sep 2004 14:07:05 +0000 (10:07 -0400)]
Make sure the configure files are newer than configure.in the
debian/rules file so that a dpkg-source created patch won't
trigger an attempt rebuild of the configure script.  (Addresses
Debian Bug #272558)

20 years agoUpdated French translation file.
Theodore Ts'o [Mon, 20 Sep 2004 18:38:46 +0000 (14:38 -0400)]
Updated French translation file.

20 years agoUpdate Release notes.
Theodore Ts'o [Sun, 19 Sep 2004 12:23:41 +0000 (08:23 -0400)]
Update Release notes.

20 years agoUpdated French translation to reflect a suggested change.
Theodore Ts'o [Sun, 19 Sep 2004 12:18:26 +0000 (08:18 -0400)]
Updated French translation to reflect a suggested change.
(Addresses Debian Bug #262836)

20 years agobadblocks.c: Use _() around done_string, so that it gets
Theodore Ts'o [Sun, 19 Sep 2004 12:04:44 +0000 (08:04 -0400)]
badblocks.c: Use _() around done_string, so that it gets
correctly translated.  (Addresses Debian Bug #252836)

20 years agoAlways build the fsck wrapper on Debian systems (Addresses
Theodore Ts'o [Sun, 19 Sep 2004 11:52:05 +0000 (07:52 -0400)]
Always build the fsck wrapper on Debian systems (Addresses
Debian Bug #248050)

20 years agotune2fs.8.in: Add a description of the .journal file, why it
Theodore Ts'o [Sun, 19 Sep 2004 11:34:35 +0000 (07:34 -0400)]
tune2fs.8.in: Add a description of the .journal file, why it
is created, and how e2fsck converts it to an invisible
journal.  (Addresses Debian Bug #256760)

20 years agoFilter out linux-gate.so, which is a pseudo entry for the 32->64bit
Theodore Ts'o [Sun, 19 Sep 2004 11:15:30 +0000 (07:15 -0400)]
Filter out linux-gate.so, which is a pseudo entry for the 32->64bit
translation for amd64 systems, in the initrd creation script.
(Addresses Debian bug #253595)

20 years agoRevamp the initrd scripts to use a new helper program,
Theodore Ts'o [Sat, 18 Sep 2004 18:53:14 +0000 (14:53 -0400)]
Revamp the initrd scripts to use a new helper program,
e2initrd_helper, which obviates the need for using /bin/awk
and mounting/unmounting the root filesystem during the initrd
process.  (Addresses Debian Bug #247775)

20 years agoAdd support for ocfs2 detection to the blkid library,
Theodore Ts'o [Sat, 18 Sep 2004 01:37:49 +0000 (21:37 -0400)]
Add support for ocfs2 detection to the blkid library,
courtesy of manish.singh@oracle.com

20 years agogen_uuid.c (get_node_id): glibc always defines AF_LINK, so only
Theodore Ts'o [Sat, 18 Sep 2004 00:38:27 +0000 (20:38 -0400)]
gen_uuid.c (get_node_id): glibc always defines AF_LINK, so only
try to use struct sockaddr_dl if HAVE_NET_IF_DL_H is
defined.  (Addresses Debian Bug #256669)

20 years agoRemove XSI:isms for greater portability. (Addresses
Theodore Ts'o [Fri, 17 Sep 2004 23:54:22 +0000 (19:54 -0400)]
Remove XSI:isms for greater portability.  (Addresses
Debian Bug #255589)

20 years agoClean up the header file #include's for lib/blkid/getsize.c
Theodore Ts'o [Fri, 17 Sep 2004 23:07:03 +0000 (19:07 -0400)]
Clean up the header file #include's for lib/blkid/getsize.c
and lib/ext2fs/getsize.c

In lib/blkid/getsize.c, include <sys/disk.h> if present since
this is where the DIOCGMEDIASIZE ioctl is defined on FreeBSD.
(Addresses Debian Bug #264630)

20 years agoUpdate config.guess and config.sub from the FSF.
Theodore Ts'o [Fri, 17 Sep 2004 22:15:58 +0000 (18:15 -0400)]
Update config.guess and config.sub from the FSF.

20 years agoOn non-linux systems, use lseek64() if it is present in
Theodore Ts'o [Fri, 17 Sep 2004 21:47:12 +0000 (17:47 -0400)]
On non-linux systems, use lseek64() if it is present in
ext2fs_llseek() and blkid_llseek().  (Addresses Debian bug #269044)

20 years agotune2fs.8.in: Mention that e2fsck -D might be useful after
Theodore Ts'o [Fri, 17 Sep 2004 21:31:16 +0000 (17:31 -0400)]
tune2fs.8.in: Mention that e2fsck -D might be useful after
setting the dir_index filesystem feature.  (Addresses
Debian Bug #268148)

20 years agoresize2fs.c (check_and_change_inodes): Fix debugging printf to
Theodore Ts'o [Fri, 17 Sep 2004 21:10:17 +0000 (17:10 -0400)]
resize2fs.c (check_and_change_inodes): Fix debugging printf to
mask off the high 256 bits of dirent->name_len (which is
where the file type information is stored).  (Addresses
Debian Bug #271605)

20 years agoAdd ability for debugfs to use a separate source of data blocks when
Theodore Ts'o [Thu, 29 Jul 2004 01:11:48 +0000 (21:11 -0400)]
Add ability for debugfs to use a separate source of data blocks when
reading from an e2image file.  (New -d option)

Add new functions ext2fs_get_data_io, ext2fs_set_data_io,
ext2fs_rewrite_to_io to libext2fs library.

20 years agoe2image.c, e2image.8.in: Add new option -I which allows the
Theodore Ts'o [Thu, 29 Jul 2004 01:07:53 +0000 (21:07 -0400)]
e2image.c, e2image.8.in: Add new option -I which allows the
administrator to install an metadata stored in an e2image
file to a filesystem.  Obviously, this can be very
dangerous!

20 years agopass1.c (process_block): Change the limit of directory size from
Theodore Ts'o [Tue, 27 Jul 2004 00:11:49 +0000 (20:11 -0400)]
pass1.c (process_block): Change the limit of directory size from
32 MB to 2GB.

20 years agoMakefile.in (mke2fs.static): Add the blkid library to so
Theodore Ts'o [Fri, 25 Jun 2004 04:55:12 +0000 (00:55 -0400)]
Makefile.in (mke2fs.static): Add the blkid library to so
mke2fs.static builds correctly.

20 years agosetflags.c, fsetflags.c: On linux systems, undefine HAVE_CHFLAGS
Theodore Ts'o [Fri, 25 Jun 2004 04:52:08 +0000 (00:52 -0400)]
setflags.c, fsetflags.c: On linux systems, undefine HAVE_CHFLAGS
to deal with lame glibc's that define this function
without actually implementing it.  Can you say "attractive
nuisance", boys and girls?   I knew you could!  (Thanks to
Pavel Troller for reporting this braindamage.)

20 years agouuid.h (UUID_DEFINE): Make the UUID defined as a static
Theodore Ts'o [Fri, 28 May 2004 00:24:52 +0000 (20:24 -0400)]
uuid.h (UUID_DEFINE): Make the UUID defined as a static
variable, with __attribute__ ((unused)) if we are using GCC.

20 years agoclosefs.c (ext2fs_flush): Make sure the master superblock is
Theodore Ts'o [Thu, 27 May 2004 01:29:14 +0000 (21:29 -0400)]
closefs.c (ext2fs_flush): Make sure the master superblock is
written last, and only after other I/O has been flushed to
disk.  Thanks to Junfeng Yang from the Stanford
Metacompilation group for pointing a potential ordering
constraint problem if we don't write things out in the
right order.

20 years agoImplement the ability for the test_io mechanism to abort after n reads
Theodore Ts'o [Thu, 27 May 2004 01:04:07 +0000 (21:04 -0400)]
Implement the ability for the test_io mechanism to abort after n reads
or writes to a particular block.  The block is specified by
TEST_IO_BLOCK environment variable, and the read/write count
by the TEST_IO_READ_ABORT and TEST_IO_WRITE_ABORT environment
variables.  The block data is now only dumped if the 0x10 bit
is set in TEST_IO_FLAGS.

20 years agoFixed potential ordering constraint problem in e2fsck's journal
Theodore Ts'o [Thu, 27 May 2004 00:58:45 +0000 (20:58 -0400)]
Fixed potential ordering constraint problem in e2fsck's journal
recovery code by implementing the sync_blockdev function.  Thanks to
Junfeng Yang from the Stanford Metacompilation group for pointing this
out.

20 years agoread.c (blkid_read_cache): Add missing fclose() which was
Theodore Ts'o [Sat, 15 May 2004 21:27:43 +0000 (17:27 -0400)]
read.c (blkid_read_cache): Add missing fclose() which was
causing a memory and file descriptor leak.  Thanks to
magnus.fromreide at teligent.se.

20 years agoRemove .cvsignore files; they were out of date, and causes lintian
Theodore Ts'o [Wed, 5 May 2004 13:02:36 +0000 (09:02 -0400)]
Remove .cvsignore files; they were out of date, and causes lintian
to flame about their presence in the source tarball.

20 years agoCset exclude: tytso@think.thunk.org|ChangeSet|20040504235846|06000
Theodore Ts'o [Wed, 5 May 2004 12:58:41 +0000 (08:58 -0400)]
Cset exclude: tytso@think.thunk.org|ChangeSet|20040504235846|06000

Revert change to add dependency on awk; it isn't needed since awk is
a virtual package which is "de facto essential" by virtual of the fact
that essential packages such as base-files depends on it.

20 years agoUpdate debian/changelog for 1.35-6 release.
Theodore Ts'o [Wed, 5 May 2004 05:00:41 +0000 (01:00 -0400)]
Update debian/changelog for 1.35-6 release.

20 years agoUse rpmbuild if it is installed instead of rpm
Theodore Ts'o [Wed, 5 May 2004 02:19:07 +0000 (22:19 -0400)]
Use rpmbuild if it is installed instead of rpm