Commit Graph

237 Commits (2df733facd99261a4c462f76f72e143e803487d0)

Author SHA1 Message Date
Theodore Ts'o c13ab4fa7a badblocks: If nanosleep() does not exist, try using usleep() instead
For portability on systems that don't have nanosleep().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-13 16:38:56 -04:00
Theodore Ts'o 3d05802f92 blkid: Add new option -L which pretty-prints the device list
Also accessed via -o list, this new output format is much more
user-friendly and lists whether or not a particular device is mounted.

Addresses-Debian-Bug #490527

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-13 16:06:47 -04:00
Theodore Ts'o eafba6c310 Don't use thread local storage if using diet libc
...because the diet libc doesn't support TLS.

Addresses-Sourceforge-Bug: #2000654

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-10 10:21:42 -04:00
Theodore Ts'o ab06396f70 debian: Create debian release tarball to obey new WIP naming convention
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07 16:12:28 -04:00
Theodore Ts'o dc9345a0bd Merge branch 'maint'
Conflicts:

	configure
2008-06-07 10:08:48 -04:00
Theodore Ts'o 488c75a6a6 Fix ext2fs_swap{16,32,64} for external applications on big-endian machines
The public header files depend on the the autoconf defines
WORDS_BIGENDIAN and HAVE_SYS_TYPES_H, so we add them to ext2_types.h
so that external programs which try to use ext2fs_swap*() will work
correctly on big-endian systems.  Fortunately, few if any programs
need to use this libext2's byte-swap functions directly.

Addresses-Debian-Bug: #484879

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-07 08:55:21 -04:00
Theodore Ts'o c0af709e52 Merge branch 'maint'
Conflicts:

	README
	version.h
2008-05-21 16:56:42 -04:00
Maciej W. Rozycki b8251a546d Remove default sizeof sizes in configure script when cross-compiling
Since version 2.50 autoconf fully supports checking sizes of types
(with AC_CHECK_SIZEOF) when cross-compiling.  Therefore there is no
need to preset the respective cache variables anymore.  The following
patch removes the special case.  There is no need to adjust AC_PREREQ
as it's set to 2.50 already.

Tested successfully cross-building for the mips64el-linux-gnu host on
an i386-linux-gnu build system, removing the following warning
(because of a mismatch for the "long" type):

Sizeof(__U64__TYPEDEF) is 4 should be 8
Problem detected with asm_types.h

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-05-21 13:24:37 -04:00
Theodore Ts'o 4476105bf3 Merge branch 'maint'
Conflicts:

	configure
2008-04-21 21:35:44 -04:00
Manish Katiyar 7321d94eb0 Fix "make docs" rule in Makefile for doc folder.
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-21 20:30:48 -04:00
Theodore Ts'o ae389208e9 Merge branch 'maint' into next 2008-04-06 17:10:49 -04:00
Theodore Ts'o 27f991b04e Remove bashism from configure script
Thanks to Mike Frysinger for pointing this out.

Addresses-Sourceforge-Bug: 1921969

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-01 20:32:55 -04:00
Theodore Ts'o bbf54adb03 Merge branch 'maint' into next 2008-02-17 17:36:45 -05:00
Christophe GRENIER e7cc6f7d0b Add portability checks to support DJGPP
DJGPP lacks sys/select.h and sys/un.h; add header checks to be more
portable.

Signed-off-by: Christophe Grenier <grenier@cgsecurity.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-02-17 17:33:57 -05:00
Theodore Ts'o d69e7e28ca configure.in: Don't use the dc command unless it is required
Some systems don't have the 'dc' command installed, and this causes
configure to print a warning message unnecessarily for a standard
(non-WIP and non-pre) release of e2fsprogs.

It's easy enough to avoid this problem, so let's do it.

Addresses-Sourceforge-Bug: #1893024

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-17 17:33:57 -05:00
Theodore Ts'o 428f6b32a9 Merge branch 'maint' into next
Conflicts:

	configure
	lib/ext2fs/ext2_fs.h
	misc/e2image.c
2008-01-27 20:09:05 -05:00
Theodore Ts'o 7e8fe327b5 Don't build e2fsck statically by default anymore
Also removed the --enable-dynamic-static configure option.

Unfortunately the usefulness of building e2fsck statically is gone on
all modern distributions, since everything else on the system is built
dynamically these days.  In fact on some distributions it is almost
impossible to build programs statically any more.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27 18:22:18 -05:00
Theodore Ts'o 261cd3964f Explicitly check for ftruncate64() in configure.in
Apparently Mac OS 10.5 defines fstat64(), but not ftruncate64(),
causing resize2fs to fail to build.  So check explicitly for
ftruncate64(), and fall back to ftruncate() if necessary.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-21 13:45:00 -05:00
Theodore Ts'o c4ef11c507 If --sbindir, et. al are specified to configure set $root_sbindir, et al.
If the user specifies as arguments to configure --bindir, --sbindir,
--libdir, or --sysconfdir, then set corresponding $root_FOO variable,
so that the request from the user to set a specific --sbindir is
honored.

Addresses-Sourceforge-Bug: 498381

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-04 16:55:37 -05:00
Theodore Ts'o a4ece35911 Use pkg-config to determine where to find the devmapper library
Fedora and Red Hat puts the devmapper library in different locations
compared to Debian, so we use pkg-config.  Unfortunately Debian's
devmapper.pc file is buggy (See Debian Bug #390243), so we have to
work around it.

Historically, e2fsprogs has tried not to depend on pkg-config, since
its answers are so often **wrong** (the Debian bug has been ignored
for over a year), so I'm hoping I'm not going to regret this.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-03 12:36:59 -05:00
Theodore Ts'o fef2b38d8e Merge branch 'maint' into next
Conflicts:

	configure
	debian/rules
	e2fsck/swapfs.c
	lib/ext2fs/ext2_fs.h
2008-01-01 12:41:35 -05:00
Theodore Ts'o 29dd9d1e90 Test for sys/syscall.h in configure to fix dietlibc build problem
When compiling with dietlibc, sys/syscall.h isn't supported; as of
dietlibc 0.30, it exists but it references a non-existent asm/unistd.h
header file.  So we have to test for its existence and avoid using it
in lib/uuid/gen_uuid.c if it is not supported.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31 22:34:25 -05:00
Theodore Ts'o 5610f9924b Add --disable-uuidd configure option
Add a configure option which causes the uuidd helper daemon not to be
built or used by the uuid library.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31 22:34:19 -05:00
Theodore Ts'o 3249394d43 Add --disable-tls configure option
Add option to forcibly disable the use of thread local storage

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31 22:34:19 -05:00
Theodore Ts'o b689b8dd14 Merge branch 'maint' into next
Conflicts:

	lib/ext2fs/closefs.c
2007-12-17 10:28:01 -05:00
Theodore Ts'o 740837def7 Add uuidd daemon to prevent duplicate time-based UUID's
Also store the clock sequence information in a state file in
/var/lib/misc/uuid-clock so that if the time goes backwards the clock
sequence counter can get bumped.  This allows us to completely
correctly generate time-based (version 1) UUID's according to the
algorithm specified RFC 4122.

Addresses-Sourceforge-Bug: #1529672
Addresses-Red-Hat-Bugzilla: #233471

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-16 17:28:46 -05:00
Theodore Ts'o a5dda05422 Remove configure --enable-swapfs and associated support #defines
This removes the last vestiges of support for the legacy PowerPC
big-endian filesystem format.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-08-11 03:22:00 -04:00
Theodore Ts'o 29a5deed21 Improve the config/parse_types.sh helper script
Fix a potential security problem if e2fsprogs is built as root (as
Gentoo does!).  In addition fix the script and how it is called from
the configure script so that it does the right thing when
cross-compiling.

Fixes-Gentoo-bug: #146903

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-04 19:55:03 -04:00
Theodore Ts'o 106ad96dae Add tdb from Samba into libext2fs library.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-04-04 21:26:37 -04:00
Andreas Dilger 927566a3ab Fixes for building RPM's via "make rpm"
Fixed version number generation so that the same common
algorithm is used for Debian and RPM version numbering schemes.
This allows the RPM spec file to do the right thing for WIP releases.

Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-11-12 19:41:25 -05:00
Theodore Ts'o ae2868acf0 Add failsafe against duplicate UUID's generated by threaded programs
Add in randomness based on Linux's thread id (gettid) to avoid race
conditions when two threads try to generate uuid's at the same time.
This shouldn't be an issue if /dev/urandom has proper locking and is
present, so this is just a failsafe.

Addresses SourceForge Bug: #1529672

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-10-22 00:18:49 -04:00
Theodore Ts'o e10521444d Fix amd64 build due to -lpthread ordering problem
Addresses Debian Bug: #393680

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-10-21 21:46:47 -04:00
Theodore Ts'o cce2f497e0 Fix Debian FTBFS problem caused by devmapper library using pthreads
Addresses Debian bug: #388718

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-10-01 22:18:08 -04:00
Theodore Ts'o e54635de96 If diff -u is supported, use it to report test failures.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-08-06 14:33:13 -04:00
Theodore Ts'o 4ea7ea007b Fix asm_types.h type conflicts
This caused FTBFS bugs on AMD64 platforms, since it uses a different
64-bit type when compared with IA64, so we need to make our
autoconfiguration system more intelligent.

Addresses Debian Bugs: #360661, #360317

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-04-09 08:41:55 -04:00
Karel Zak 4db2f59a71 Add device-mapper support to the blkid library
On systems where is multi-path storage device is problem with duplicated
filesystems. The solution is select "the best" device. This is possible
by device-mapper library.

Short quotation from RH bugzilla:

With my patch, all dm devices remains in libblkid cache.

Only the top level dm devices are given high priority
and more appropriate node names (i.e. /dev/mapper/*) are used.

For example, if we have linear mapped dm device "ov1" over
dm device "disk1p3" which is multipath mapped to /dev/sdd3 and /dev/sdh3:
  # dmsetup.static ls --tree
  ov1 (253:5) <-- /dev/mapper/ov1 or /dev/dm-5
   `-disk1p3 (253:4) <-- /dev/mapper/disk1p3 or /dev/dm-4
      `-disk1 (253:0)
         |- (8:112) <-- /dev/sdh
         `- (8:48) <-- /dev/sdd

Original version of blkid will show:
  # ./orig/blkid -t LABEL=mpdisk1p3 -l
  /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3"

With my patch, blkid will show:
  # ./deptree/blkid -t LABEL=mpdisk1p3 -l
  /dev/mapper/ov1: LABEL="mpdisk1p3" ... TYPE="ext3"

In blkid cache, all devices are listed:

  # ./orig/blkid -t LABEL=mpdisk1p3
  /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/sdh3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/dm-4: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/dm-5: LABEL="mpdisk1p3" ... TYPE="ext3"

  # ./deptree/blkid -t LABEL=mpdisk1p3
  /dev/mapper/ov1: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/sdh3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/dm-4: LABEL="mpdisk1p3" ... TYPE="ext3"

For more details see discussion on:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=156324

Addresses Red Hat Bug: #156324

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-03-08 14:17:28 -05:00
Theodore Ts'o dd947da232 Fix cross-compilation problems when CFLAGS contain target-specific options
Use BUILD_CCFLAGS and BUILD_LDFLAGS instead of CCFLAGS and LDFLAGS in
the build system when building files in the util directory which are
needed during the build process.  This avoids potential problems when
cross-compiling some of the options are not recognized as valid by the
host compiler.  (Addresses Sourceforge Bug #1261547)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-11-09 18:37:07 -04:00
Andreas Dilger 9b7d811dda This patch adds a check to use fstat or fstat64 in getsize.c if the
target is a regular file, instead of doing binary searching.  It also
fixes a couple of cases where a file descriptor is leaked in the
ext2fs_getsize() routine on error.

Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
2005-07-09 22:06:59 -05:00
Theodore Ts'o 762c7c6510 Add paranoia checks into the blkid, ext2fs, and ss libraries to ignore
environment variables if the libraries are called from setuid or setguid 
programs, or if kernel believes that the process is not eligible to create
a core dump.  In addition, if the libc has __secure_getenv(), use it so that
the libc can also do any additional limitations regarding when libraries can
trust environment variables (i.e., to integrate with systems like SELinux 
and Posix capabilities).
2005-04-06 14:44:16 -04:00
Theodore Ts'o ee683a13f6 Makefile util/gen-tarball executable after creating the file. 2005-02-05 15:53:56 -05:00
Theodore Ts'o 33db8f80f2 Remove support for --enable-clear-htree; this was
only needed during the early development of the htree patch.
2005-02-05 10:28:15 -05:00
Theodore Ts'o 98919bdb2e 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.
2005-02-04 10:43:58 -05:00
Theodore Ts'o 7004b4af6e 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.
2005-02-03 21:56:44 -05:00
Theodore Ts'o e644186542 Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
Theodore Ts'o 6c65d251da 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>
2005-01-19 12:59:48 -05:00
Theodore Ts'o da76d6b726 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.
2005-01-18 23:29:01 -05:00
Theodore Ts'o 32237014a1 Various portability fixes for Solaris systems. 2005-01-17 19:13:39 -05:00
Theodore Ts'o d2ee56d86e 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)
2005-01-09 00:57:45 -05:00
Theodore Ts'o b0cacab066 Update to use gettext 0.14.1 and autoconf 2.50+ 2004-11-30 19:00:19 -05:00
Theodore Ts'o 921f4ad536 Remove support for EVMS 1.x plugin library. 2004-11-19 17:25:27 -05:00
Theodore Ts'o 2b5901d9c7 Remove the a.out DLL support, since it's been obsolete and unmaintained
for a long time now.
2004-11-19 17:06:47 -05:00
Theodore Ts'o 5d40773ba8 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)
2004-09-18 14:53:14 -04:00
Theodore Ts'o 9845cf5dbd 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)
2004-09-17 19:07:03 -04:00
Theodore Ts'o e363240dc2 configure.in, configure: Enable the fsck wrapper for the Debian
FreeBSD kernel / GNU userspace port.  (Addresses Debian
	Bug #246738)
2004-05-04 19:39:54 -04:00
Theodore Ts'o 2625803ecf Use C99 stdint.h types instead of custom types in the uuid library. 2004-04-03 10:20:26 -05:00
Theodore Ts'o 84ea6e70b7 Fix Darwin/Mac OS X support to fetch the ethernet address in the uuid library. 2004-03-19 19:29:17 -05:00
Matthias Andree b1c92f9121 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.
2004-02-23 21:30:11 +01:00
Matthias Andree b34cbddbd6 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.
2003-12-28 18:21:26 +01:00
Theodore Ts'o 0c193f8204 Include inttypes.h if present. New macros INT_TO_VOIDPTR and
VOIDPTR_TO_INT.  Use them throughout for int<->void *
	casts to fix 64-bit warnings.
2003-08-01 14:26:23 -04:00
Theodore Ts'o 1c29b0979a badblocks.c (do_read, do_write, test_rw): Change the read/write
test to honor the -c option (number of blocks at a time).
	do_read and do_write will try to turn on the O_DIRECT flag
	if it appears that it is possible to use it.  (Addresses
	Debian bug #198006)
2003-07-12 16:01:45 -04:00
Theodore Ts'o 93636bdea9 Update to use the new freebsd config triple (Addresses Debian
bug #195274)
2003-07-12 02:45:05 -04:00
Theodore Ts'o 07a0db15b0 configure.in:
Add workaround for Darwin and Libintl
2003-07-05 14:50:24 -04:00
Theodore Ts'o d3c9fb8fba Adjust defaults for FreeBSD to no longer build the
fsck wrapper, and to not install into /usr/local by
	default.  (Addresses Debian bug #195274)
2003-06-08 20:26:15 -04:00
Theodore Ts'o 5c70a50b28 Fix bug which caused --disable-evms not to work. 2003-05-20 10:29:29 -04:00
Theodore Ts'o c6f35b8a82 MCONFIG.in, configure.in: Only put the intl directory in the -I
search path if we are using --with-internal-gettext.
	Otherwise causes compatibility problems with the woody
	glibc.   (Addresses Debian bug #193372)
2003-05-17 16:29:27 -04:00
Theodore Ts'o bb988b2fd3 configure.in: Fix typo in help message for --enable-evms-11 2003-05-13 23:32:32 -04:00
Theodore Ts'o 2a29f1354f Add --enable-test-io-debug configure option which causes e2fsck and
tune2fs to use the test I/O manager.

The test I/O manager has been changed to not do anything extra by 
default, unless the TEST_IO_FLAGS and/or TEST_IO_BLOCK environment
variables are set, which controls what I/O operations are logged and
a block number to watch, respectively.  The log messages are sent to
stderr by default, unless a filename is specified via the 
TEST_IO_LOGFILE environment variable.
2003-05-05 12:08:47 -04:00
Theodore Ts'o d21ae6c5cd configure.in, configure, Makefile.in: Add --with-diet-libc
convenience option.  Add --disable-evms option.
2003-05-05 09:00:24 -04:00
Theodore Ts'o a04eba3f88 Update to gettext 0.11.5. We now enable NLS support by default.
Fixed up support for using the internal intl library.
2003-05-03 16:35:17 -04:00
Theodore Ts'o a85e81a2ff configure.in: Remove CYGWIN definition; we will use the
automatically defined __CYGWIN__ instead.
2003-04-18 07:22:01 -04:00
Theodore Ts'o fff45483ed Add portability enhancements for Cygwin32 environment. 2003-04-13 00:44:19 -04:00
Theodore Ts'o bff0cc950b Move tarball generation functions to util/gen-tarball 2003-03-23 01:37:53 -05:00
Theodore Ts'o aa75ecccab Fix the Apple Darwin port. 2003-03-17 10:01:22 -05:00
Theodore Ts'o 3ae497eab2 Add to the ss (subsystem) library the ability to dynamically link
to the readline library if it is present in the system.
2003-03-16 06:26:25 -05:00
Theodore Ts'o e71d87317a Add Apple/Darwin patches. 2003-03-14 02:13:48 -05:00
Theodore Ts'o 94ba8c7506 Changes to create a subset distribution which consists only of the
et, ss, uuid, and blkid libraries.  The configure script and top-level 
makefile were changed to support working with a subset distribution.
2003-03-02 02:07:14 -05:00
Theodore Ts'o f0a22d0fd3 Add dynamic debugging capabilities to the blkid library,
controlled by the environment variable BLKID_DEBUG. The debugging
code is enabled by a new configuration option, --enable-blkid-debug.
2003-02-22 13:19:53 -05:00
Theodore Ts'o e12f2ae74c Integrate new blkid library. 2003-01-23 16:45:16 -05:00
Theodore Ts'o 0c897a9012 Add german translation to the language catalog
Fix internationalization of "pass 2" in e2fsck.

Update po files.
2002-11-09 12:01:18 -05:00
Theodore Ts'o 782bebfd75 configure.in, configure: Change --enable-jfs-debug to
--enable-jbd-debug for consistency's sake.
2002-11-08 18:46:45 -05:00
Theodore Ts'o feb44c6955 Skip byteswap tests on --disable-swapfs
Disable certain tests that depend on the byteswapping functions
being present so that "make check" succeeds even if --disable-swapfs
is passed to the configure script.
2002-11-08 14:55:38 -05:00
Theodore Ts'o a9d799a01d Update EVMS plugin to support EVMS ABI 1.2 2002-11-08 13:50:51 -05:00
Theodore Ts'o 559ca6cb94 Enable HTREE support by default. 2002-08-18 03:48:55 -04:00
Theodore Ts'o e6f2bda381 Makefile.in: Revamp makefile so that it doesn't depend
--enable-elf-shlibs.  We always build the shared library,
	since it's meant to be used as a plugin library.
2002-08-18 03:37:10 -04:00
Theodore Ts'o 593c6ead7e Various portability fixes which should help out HURD.
The iterate_on_dir function in libe2p has been changed to be more
general, so it relies less on the layout of struct dirent.  We also
make sure the errno returned by the ioctl is returned by 
fgetversion() and fsetversion().
2002-07-14 15:58:38 -04:00
Theodore Ts'o 8fdc9985c1 Add initial support for htree directories. 2002-06-25 23:26:34 -04:00
Theodore Ts'o ff6dbcca9c Add EVMS FSIM plugin to e2fsprogs. 2002-05-24 22:44:42 -04:00
Theodore Ts'o bff61a7aaa configure.in: On Linux systems, if the prefix is defaulted to
/usr, then default mandir to /usr/share/man
2002-05-21 22:21:38 -04: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 b5ffeadece Integrate ext2ed into the e2fsprogs build system, and make minimal changes so
that it will compile on modern systems.  The top-level makefile does not recurse
into the ext2ed directory for now, pending determination of whether the original
author is still maintaining ext2ed.

The documentation files have been renamed to remove the version from the filename.
In addition, the SGML files have been converted from LinuxDoc to DocBook.

The way root_bindir, root_sbindir, and root_libdir have been changed so that 
if root_prefix is not set, the values set by the configure command-line options to
set the directory names using --bindir, --sbindir, --libdir will affect the
root_bindir, et.al Makefile variables.
2002-05-11 19:17:00 -04: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 6e71e67b11 Added new Turkish translation file and updated e2fsprogs.pot file. 2001-10-08 12:51:00 -04:00
Theodore Ts'o ea97be5a28 Remove use of AC_REQUIRE which had been used to prevent AC_CANONICAL_HOST
from being called twice, since it gives recent autoconf programs
heartburn (and doesn't seem to be required anymore), anyway.
2001-09-19 15:20:12 -04:00
Theodore Ts'o 53abed0afa Deal with libc5's lack of strnlen.
Stop checking for strdup in the configure script since we don't 
care about that symbol.
2001-08-27 12:18:16 -04:00
Theodore Ts'o cdf186e477 ChangeLog, configure, configure.in:
configure.in: Add --disable-resizer, --disable-imager, and
  	--disable-debugfs switches, which allow people who are building boot
  	floppies to build a very restricted e2fsprogs distribution.  Note:
  	these functions limit the functions in the shared library, so beware!
Makefile.in, ChangeLog:
  Makefile.in: Don't recurse into debugfs and resize subdirectory if
  	--disable-debugfs or --disable-resizer is given as a configuration
  	option.
ChangeLog, Makefile.in:
  Makefile.in: Don't build e2image if --disable-imager is specified to
  	configure.
2001-06-13 22:16:47 +00:00
Theodore Ts'o 877eb6d923 ChangeLog, configure, configure.in:
configure.in: Add new switch, --disable-swapfs which disables support
  	of byte-swapping old filesystems.  Add new test, AC_C_BIGENDIAN, which
  	sets WORDS_BIGENDIAN on big-endian machines.  Change handling of
  	--with-ccopts so that if set, the default CFLAGS is suppressed.
2001-06-11 06:54:13 +00:00
Theodore Ts'o 559f28c5ac configure, configure.in:
Remove lib/finddev from the list of directories that we try to configure
2001-05-25 17:16:41 +00:00
Theodore Ts'o 250f79f084 ChangeLog, MCONFIG.in, configure, configure.in:
configure.in, MCONFIG.in (LDCONFIG): Use AC_PATH_PROG to find the
  	pathname for ldconfig.
2001-05-19 22:02:22 +00:00
Theodore Ts'o db653a8013 Makefile.in, configure, configure.in:
Update for initial finddev library.
2001-02-08 02:18:52 +00:00
Theodore Ts'o 4d0f3e17a5 ChangeLog, MCONFIG.in, configure, configure.in:
MCONFIG.in: Change --enable-gcc-wall handling so that it's no longer a
  	configure option, but something which is done when the developer uses
  	the command "make gcc-wall".
  configure.in: Remove test for ino_t, since we don't use it any more
  	(we always use our own ext2_ino_t).  Remove --enable-gcc-wall support.
  	Add test for sys/ioctl.h
.del-types.h.in~ca55114a:
  Remove definition of ino_t
ChangeLog, Makefile.in, ext2fs.h, flushb.c, jump.funcs:
  flushb.c (ext2fs_sync_device): New function which centralizes all of
  	the places which might try to use the BLKFLSBUF or FDFLUSH ioctls (and
  	usually failing to define them since the system header files don't
  	usually do this for us, and we're trying to avoid usage of kernel
  	include files now.)
2001-01-11 15:48:50 +00:00
Theodore Ts'o 8820c79f75 Many files:
get_device_by_label.h (get_volume_label_by_spec): Add function prototype.
  get_device_by_label.c: Use string_copy() instead of strdup() for
  	portability's sake.  Fix a few other gcc -Wall complaints.
  fsck.h, fsck.c (string_copy): Export string_copy() extern.
  badblocks.c: Fix various gcc -Wall complaints, including an incorrect
  	reference to sync in flush_bufs().
ChangeLog, configure, configure.in:
  configure.in: Add checks for the header files sys/mkdev.h and
  	sys/sysmacros.h.
2001-01-06 04:20:03 +00:00
Theodore Ts'o f5955dda1d ChangeLog, configure, configure.in, e2fsprogs.spec:
e2fsprogs.spec: Update spec file for Red Hat 7.0 compatibility
  configure.in: When compiling shared libraries for Solaris, use a
  	special-case Makefile fragment to deal with it.
Makefile.solaris-lib:
  New file for Solaris shared library builds.
2000-10-25 02:38:39 +00:00
Theodore Ts'o 80bfaa3e40 Many files:
Makefile.in: Update the make dependencies
  problem.c, problem.h: Add the problem codes:
  	PR_0_ORPHAN_ILLEGAL_BLOCK_NUM, PR_0_ORPHAN_ALREADY_CLEARED_BLOCK,
  	PR_0_ORPHAN_ILLEGAL_HEAD_INODE, PR_0_ORPHAN_ILLEGAL_INODE,
  	PR_0_ORPHAN_INODE_INUSE
  super.c (release_inode_blocks, release_orphan_inodes,
  	check_super_block): Add support for clearing orphaned inodes from the
  	unmounted filesystem.
  journal.c (e2fsck_recover_ext3_journal): Remove the last orphan check;
  	this is now handled in check_super_block --- non-journaled filesystems
  	can use the orphan list in the future.  Also, move the the re-opening
  	of the filesystem to e2fsck_run_ext3_journal().
debugfs.c:
  debugfs.c (finish_range): Make sure the pager FILE pointer to use.
configure, configure.in, ChangeLog:
  configure.in (JFS_DEBUG): Add support for --enable-jfs-debug
2000-08-18 15:08:37 +00:00
Theodore Ts'o a298071380 ChangeLog, configure, configure.in:
configure.in: Add test for sys/mount.h (required for e2fsck's ext3
  	recovery code)
2000-08-14 14:30:50 +00:00
Theodore Ts'o 6928adc90a ChangeLog, configure, configure.in:
Add test for lseek64 and open64
ChangeLog, Makefile.in:
  Makefile.in: Fix makefile so that it's safe to build in parallel.
2000-05-25 23:28:50 +00:00
Theodore Ts'o 91e544f2de ChangeLog, configure, configure.in:
configure.in (DO_SUBSTITUTE_SCRIPT): Remove unneeded substitution.
  	(Left over from before we moved to use a C program to do
  	substitutions.)
2000-05-25 16:43:00 +00:00
Theodore Ts'o 68853373db configure.in, ChangeLog:
configure.in (fdatasync): Add test for fdatasync(), since not all
  	functions have this function.
2000-04-06 21:44:19 +00:00
Theodore Ts'o 1917875fcd Many files:
unix.c (main): If compression is enabled on the filesystem, print a
  	warning message (for now).
  message.c: Add new compression shortcut: @c == compress
  problem.c, problem.h (PR_1_COMPR_SET): Add new error code.
  pass1.c (check_blocks): If the inode has EXT2_COMPRBLK_FL flag set,
  	check to see if the filesystem supports compression.  If it does pass
  	this information down to process_block() so it can treat the
  	compressed block flag words correctly.  If not, offer to clear the
  	flag, since it shouldn't be set.
  	(process_block): If an inode has the compressed inode flag set, allow
  	EXT2FS_COMPRESSED_BLKADDR.
  pass1b.c (process_pass1b_block, delete_file_block, clone_file_block):
  pass2.c (deallocate_inode_block): Use HOLE_BLKADDR to check to see if
  	the block can be skipped.
ChangeLog, Makefile.in:
  Makefile.in: Exclude the internationalization files from being
  	distributed.
ChangeLog, configure, configure.in:
  configure.in: Add support for --enable-compression.  This is
  	experimental code only for now, which is why it's under --enable test.
  	Once it's stable, it will always be compiled in.
TODO:
  Commit additional TODO items.
2000-02-11 15:55:07 +00:00
Theodore Ts'o 8f3f29d383 ChangeLog, configure, configure.in:
configure.in: Define HAVE_EXT2_IOCTLS based solely on the OS type,
  	instead of basising on whether a test program compiles.  This was
  	screwing up on some Linux kernel header files, and we know the Hurd
  	doesn't support the ext2 ioctls anyway.
types.h:
  Add newline at end of file.
2000-02-11 05:04:44 +00:00
Theodore Ts'o a64c9c13e5 ChangeLog, configure, configure.in, aclocal.m4:
configure.in, aclocal.m4: Add support for GNU gettext
  	internationalization support.
2000-02-08 20:17:21 +00:00
Theodore Ts'o 73ae2d4a23 ChangeLog, configure, MCONFIG.in, configure.in:
MCONFIG.in: Always include src/include in the include path now.  This
  	forces us to use our internally provided ext2_fs.h file, for sanity's
  	sake.
  configure.in: If linux/fs.h isn't found, then add build/include into
  	the include path only, since src/include is now always included.
  	Removed define of HAVE_LINUX_FS_H, since we're not using it any more.
  	Removed i_version vs. i_generation check, since with the included
  	header file it is a permanently known quantity.  Removed AC_C_CROSS
  	since it has been merged into AC_PROG_CC in autoconf 2.13.
2000-02-02 16:13:14 +00:00
Theodore Ts'o c81c6ce57e util.c:
Fix stupid bugs in NT portability patch.
ChangeLog, configure, configure.in:
  Add termios.h to the headers which are checked.
1999-10-26 04:28:53 +00:00
Theodore Ts'o f8bd980703 ChangeLog, configure, configure.in:
configure.in: Move the code that checks for the presence of Linux
  	header files, to earlier in the config file, since it adds a directory
  	to the include path, and that needs to happen before any compile tests
  	are run.
1999-10-26 04:19:45 +00:00
Theodore Ts'o ad6783df0c ChangeLog, fsck.c:
fsck.c (execute): Fix really stupid bug in the linked list management
  	which caused fsck in parallel mode to go into an infinite loop.
ChangeLog, mke2fs.c:
  mke2fs.c (show_stats): Capitalized Hurd to make the GNU types happy.
ChangeLog, configure.in:
  configure.in: Capitalized Hurd to make the GNU folks happy.
1999-10-26 01:58:54 +00:00
Theodore Ts'o c03bc4e8f2 ChangeLog, configure, configure.in:
* configure.in (HAVE_STATE_FLAGS): Check to see if st_flags is
  	actually useful (since glibc 2.1 declares it on Alpha without
  	it being usable).  Add check for signal.h header file, which
  	doesn't exist on non-unix platforms.
1999-10-20 18:20:36 +00:00
Theodore Ts'o 6c133523b2 ChangeLog, MCONFIG.in, configure.in, configure:
MCONFIG.in (BUILD_CC):
  configure.in (BUILD_CC): If cross compiling, find the native C
  	compiler and set it to BUILD_CC so that we can successfully build
  	util/subst.
ChangeLog, Makefile.in:
  Makefile.in (subst): Build subst using $(BUILD_CC), since it's a
  	helper program which must be built using the native C compiler during
  	a cross-compilation.
Makefile.in:
  Update dependencies.
1999-07-03 20:37:03 +00:00
Theodore Ts'o 9d564f73f5 ChangeLog, Makefile.in, configure.in, MCONFIG.in, configure, wordwrap.pl:
Makefile.in (depend): Make "make depend" at the top-level
  	automatically recurse through all subdirectories.
  configure.in: Test for perl since it's needed by wordwrap.pl
  MCONFIG.in (depend): Fix make-depend so that it the dependencies are
  	automatically word-wrapped.  Added the makefile macro $(PERL).
  wordwrap.pl: New file which does the word wrapping.
1999-07-03 20:25:58 +00:00
Theodore Ts'o 6670495a39 ChangeLog, configure.in, configure:
configure.in: Check for the presence of i_generation field versus
  	i_version in the ext2_inode to support compiling e2fsprogs in Linux
  	2.3.
1999-06-25 15:30:33 +00:00
Theodore Ts'o 6454d84b0d ChangeLog, configure.in:
Add check for malloc.h and mallinfo().
1999-03-16 19:24:34 +00:00
Theodore Ts'o 40fa8cc9b0 ChangeLog, configure.in:
configure.in (YEAR): Allow a 4-digit year for the version date, so we
  	can be Y2K politically correct.  (The date isn't used for anything
  	except display purposes, but it should make people more comfortable to
  	not use a 2-digit date, even though it doesn't matter.)
1999-01-09 05:06:02 +00:00
Theodore Ts'o defde7840c Makefile.in, configure.in, ChangeLog, configure:
Makefile.in: Move the generated types.h file from the linux/ directory
  	to the asm/ directory.
  configure.in: Force Solaris to never use -static, due to its dynamic
  	loader not being available to statically linked programs.  Create the
  	asm/ directory if needed.
.del-types.h.in~ca55114a, .del-ext2_fs.h~7a460879, .del-types.h.in~7a460879:
  Move the types.h header file from linux/ to asm/.
1999-01-04 07:39:19 +00:00
Theodore Ts'o 5a679c8fb1 ChangeLog, pass3.c, problem.c:
pass3.c (get_lost_and_found): If the filesystem is not opened
  	read-only, then force /lost+found to be created if it is not present.
  problem.c: Allow PR_3_NO_LF_DIR to be handled during a preen operation.
ChangeLog, Makefile.in:
  Makefile.in: Updated dependencies.
ChangeLog, fsck.c:
  fsck.c (load_fs_info): Parse /etc/fstab ourselves, instead of relying
  	on getmntent().  This has the advantage of allowing us to properly
  	handle missing pass numbers correctly.
ChangeLog, configure.in:
  configure.in: Add paths.h to header files for which we search.
1998-12-03 16:40:38 +00:00
Theodore Ts'o ffe1991f47 ChangeLog, configure.in, configure:
Fix missing "test" invokation in configure.in test.  (Only affected
  default non-Linux builds).
1998-04-08 06:05:49 +00:00
Theodore Ts'o a4b2d3ce5e Many files:
configure.in: Change how the installation directions are selected.
  	Previously, we had prefix and usr_prefix, where prefix was '' and
  	usr_prefix was /usr, and we then defined bindir, ubindir, libdir,
  	ulibdir, etc. in terms of that.  In autoconf 2.12, it's possible to
  	override bindir, libdir, etc., and so in order to make our
  	installation directory makefile variables more in line with autoconf
  	2.12, I've changed all of the various makefiles to use prefix and
  	root_prefix, where the default Linux definitions are /usr and '',
  	respectively.  What used to be bindir is now root_bindir, and what
  	used to be ubindir, is now bindir.
  MCONFIG.in: Change directories to match with new installation
  	directory convention (see above).  Add Makefile
  	dependencies for makefile fragments, and define
  	DEP_LIB_MAKEFILES which library makefiles can use to
  	define DEP_MAKEFILES, so that the library makefiles will
  	get regenerated when the makefile fragments change.
  	Remove the cat?dir variables, since we aren't creating
  	those directories any more.
  Makefile.in: Add top-level uninstall targets.
  e2fsprogs-1.12.spec: Add to the RPM package the e2label man page, and
  	to reflect that fact that we now compile_et and mk_cmds for the
  	development package.
ChangeLog, Makefile.in:
  Makefile.in: Add uninstall target (which is a just a no-op).
version.h, RELEASE-NOTES:
  Update to interim version numbers for release purposes.
1998-04-03 16:12:25 +00:00
Theodore Ts'o 5be8dc2143 Many files:
dblist.c (ext2fs_get_num_dirs): Make ext2fs_get_num_dirs more paranoid
  	about validating the directory counts from the block group
  	information.
  all files: Don't include stdlib.h anymore; include it in ext2_fs.h,
  	since that file requires stdlib.h
ChangeLog, Makefile.in, dirinfo.c:
  dirinfo.c (e2fsck_add_dir_info): Use ext2fs_get_num_dirs instead of
  	e2fsck_get_num_dirs, which has been removed.
  Makefile.in (PROGS): Remove @EXTRA_PROGS@, since we don't want to
  	compile and install flushb.
ChangeLog, configure.in:
  Remove @EXTRA_PROGS@, since we aren't using it in 2fsck/Makefile.in anymore
ChangeLog, Makefile.in:
  Install debugfs in /sbin, instead of /usr/sbin.
libext2fs.texinfo:
  Update version string to be 1.12
Makefile.in:
  Fix bug in find script which made the exclusion list, where a '-' was
  missing from an -name option.
1997-12-01 18:24:10 +00:00
Theodore Ts'o a9f95f4ec7 ChangeLog, configure.in:
Add check for setjmp.h
1997-11-10 16:14:16 +00:00
Theodore Ts'o b0b9c4dece ChangeLog, configure.in, configure:
Added check to see if llseek is declared in unistd.h
ChangeLog, llseek.c:
  Check HAVE_LLSEEK_PROTOTYPE to see whether or not we need to declare
  llseek().
1997-10-20 23:36:30 +00:00
Theodore Ts'o aa1e55ef1a ChangeLog, .del-types.h.in~7a460879:
Fix the type definitions of __s64 and __u64 if long long is used.
ChangeLog, configure, configure.in:
  Add tests for sys/stat.h, sys/time.h, and sys/types.h
1997-10-19 23:13:26 +00:00
Theodore Ts'o 44339bdff8 Many files:
Use new substitution technology which doesn't depend on shell scripts.
  (Faster, and better for MS-DOS port!)
1997-10-15 02:47:20 +00:00
Theodore Ts'o 24b2c7a7a1 ChangeLog, Makefile.in, configure.in:
configure.in (rmakefile): Added (optional) private directory for resize2fs.
  Makefile.in: Change recursive descent rules to check to see if a
  	directory exists before trying to make it.
Many files:
  Initial checkin of work done to date.
1997-06-07 20:42:58 +00:00
Theodore Ts'o ae85148246 Many files:
Checked in e2fsprogs 1.10
1997-04-29 18:13:24 +00:00
Theodore Ts'o 21c84b71e2 Many files:
Checked in e2fsprogs-1.07
1997-04-29 16:15:03 +00:00
Theodore Ts'o fc6d9d519a Many files:
Checked in e2fsprogs 1.05
1997-04-29 14:51:31 +00:00
Theodore Ts'o a4d0961061 Many files:
Checked in e2fsprogs 1.04.
1997-04-29 14:28:00 +00:00
Theodore Ts'o 74becf3c0a Many files:
Checkin of e2fsprogs 1.02.
1997-04-26 14:37:06 +00:00
Theodore Ts'o 50e1e10fa0 Many files:
Checked in e2fsprogs 0.5c
1997-04-26 13:58:21 +00:00