Theodore Ts'o
71669d0541
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.
2004-12-23 21:49:05 -05:00
Theodore Ts'o
1d667534e9
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.
2004-12-23 13:55:34 -05:00
Theodore Ts'o
faeaf93752
Dumpe2fs will print the s_reserved_gdt_blocks field if it is non-zero.
...
(Change to libe2p's list_super2() function.)
2004-12-23 07:47:12 -05:00
Theodore Ts'o
40abad6915
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.
2004-12-23 07:45:04 -05:00
Theodore Ts'o
5d28e3be67
swapfs.c (ext2fs_swap_super): Byteswap the reserved_gdt_blocks
...
superblocks field.
2004-12-22 20:55:48 -05:00
Theodore Ts'o
1b4cd9c746
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.
2004-12-15 18:06:52 -05:00
Theodore Ts'o
22c6821a24
Supplied changelog for resize inode patch.
2004-12-15 17:26:32 -05:00
Theodore Ts'o
d323f8fb36
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.
2004-12-15 14:39:16 -05:00
Theodore Ts'o
522798d342
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
2004-12-15 11:28:55 -05:00
Theodore Ts'o
6d4022786d
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.
2004-12-14 21:46:26 -05:00
Theodore Ts'o
3838f7df13
Avoid using uint and uchar types when probing for ocfs2 filesystems
...
in the blkid library, to allow compilation using dietlibc.
2004-11-30 19:05:38 -05:00
Theodore Ts'o
2e8ca9a26b
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.
2004-11-30 14:07:11 -05:00
Theodore Ts'o
47204ff983
Use Linux-kernel-style makefile output to make it easier to
...
see errors/warnings.
2004-11-30 10:52:27 -05:00
Theodore Ts'o
39dc1c45cb
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!
2004-11-29 22:14:23 -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
4b8f81aace
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.
2004-11-19 14:28:01 -05:00
Theodore Ts'o
1a9c8c35ba
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.
2004-10-08 12:45:24 -04:00
Theodore Ts'o
414846b126
Add support for ocfs2 detection to the blkid library,
...
courtesy of manish.singh@oracle.com
2004-09-17 21:37:49 -04:00
Theodore Ts'o
9ee42c9509
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 )
2004-09-17 20:38:27 -04:00
Theodore Ts'o
56eb4d4749
Remove XSI:isms for greater portability. (Addresses
...
Debian Bug #255589 )
2004-09-17 19:54:22 -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
488f3c2dad
On non-linux systems, use lseek64() if it is present in
...
ext2fs_llseek() and blkid_llseek(). (Addresses Debian bug #269044 )
2004-09-17 17:47:12 -04:00
Theodore Ts'o
1ad54a940c
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.
2004-07-28 21:11:48 -04:00
Theodore Ts'o
919994abc0
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.)
2004-06-25 00:52:08 -04:00
Theodore Ts'o
37a1ee9b99
uuid.h (UUID_DEFINE): Make the UUID defined as a static
...
variable, with __attribute__ ((unused)) if we are using GCC.
2004-05-27 20:24:52 -04:00
Theodore Ts'o
a63d126783
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.
2004-05-26 21:29:14 -04:00
Theodore Ts'o
a002e7e200
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.
2004-05-26 21:04:07 -04:00
Theodore Ts'o
1b510f57f4
read.c (blkid_read_cache): Add missing fclose() which was
...
causing a memory and file descriptor leak. Thanks to
magnus.fromreide at teligent.se.
2004-05-15 17:27:43 -04:00
Theodore Ts'o
aa5c0a4562
Remove .cvsignore files; they were out of date, and causes lintian
...
to flame about their presence in the source tarball.
2004-05-05 09:02:36 -04:00
Theodore Ts'o
6d4934974f
Update and clean up uuid man pages, including renaming libuuid.3 to
...
uuid.3
Eliminate empty lines at end of uuid.h
2004-05-04 22:05:05 -04:00
Theodore Ts'o
d1492994a5
gen_uuid.c (uuid_generate_time): Mask off the timestamp to avoid
...
a Y8.8888K problem.
2004-05-04 20:51:02 -04:00
Theodore Ts'o
7ce0806406
probe.c (blkid_verify_devname): If the time is earlier than the
...
last modified time of the device, then force a reverify;
it means the system time may not be trustworthy.
2004-04-19 21:42:18 -04:00
Theodore Ts'o
ebfd60f185
Clarified that the lib/uuid directory is under a BSD-style and
...
referred the reader to lib/uuid/COPYING, a new file.
2004-04-12 13:19:21 -04:00
Theodore Ts'o
7a3a386b9e
In the blkid library, if the BLKID_FILE environment
...
variable is set, use it to find the blkid.tab file if the
calling application did not supply a filename.
2004-04-12 07:26:23 -04:00
Theodore Ts'o
dd60705665
Refine the build process to avoid re-running subst all the time on
...
some generated files, by having subst update the modtime on these
files even when the generated file hasn't changed. We do this with
generated files that do not have any downstream dependencies.
2004-04-03 13:53:46 -05:00
Theodore Ts'o
9dd97ae37d
Change licensing of libuuid man pages from GPL to 3-clause BSD-style,
...
with permission from Andreas Dilger (the original author of the man
pages), email dated Mon, 29 Mar 2004 23:11:53 -0700, Message-ID
20040330061153.GD1177@schnapps.adilger.int .
2004-04-03 11:24:10 -05:00
Theodore Ts'o
31808116a1
Change the use of the term "internal format" to "binary representation"
...
in the uuid_parse and uuid_unparse man pages.
2004-04-03 10:48:25 -05: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
13be1fff00
gen_uuid.c (get_node_id): Clean up AF_LINK #ifdef's for Darwin.
2004-03-30 01:32:31 -05:00
Matthias Andree
83e692e88b
unix_io.c, pass1.c:
...
int -> unsigned for 1 bit wide bitfields - we cannot have a value and a sign in 1 bit.
Fixes some of the Intel C++ 8.0 warnings (-w1 level).
2004-03-30 04:17:14 +02:00
Matthias Andree
289e0557c2
GNU/KFreeBSD portability fixes. (Addresses Debian Bug #239934 )
2004-03-30 03:57:41 +02:00
Theodore Ts'o
d3d741fc38
Add the uuid_unparse_upper and uuid_unparse_lower functions to the
...
uuid library.
2004-03-22 16:22:28 -05:00
Theodore Ts'o
1cdb6f7602
Don't close the file descriptor when determining the size.
...
This bug was introduced in the previous getsize changes,
and was screwing up the blkid library probe functions.
(Addresses Debian Bug #239191 )
2004-03-21 20:16:19 -05:00
Theodore Ts'o
1bbfec624c
Change the license on the UUID library to be 3-clause BSD-style
2004-03-20 14:02:24 -05:00
Theodore Ts'o
880f30a7eb
Add UUID type #define's, and add an CPP macro to define
...
UUID constants.
2004-03-19 21:54:13 -05:00
Theodore Ts'o
a5aa379710
Use 14 bits for the clock sequence, instead of just 13 bits when
...
generating UUID's.
2004-03-19 19:56:55 -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
Theodore Ts'o
2c5cfbcb99
Only use the BLKGETSIZE64 ioctl on Linux 2.6 since it is
...
unreliable in Linux 2.4. (Addresses Debian Bug #236528 ).
Fix typo in the ioctl used for Mac OS X.
2004-03-08 14:12:09 -05:00
Theodore Ts'o
9387c281ef
probe.c (probe_ocfs), probe.h: Add support for the Oracle
...
Cluster Filesystem (ocfs). Patches courtesy of Rusty
Lynch (rusty@linux.co.intel.com ).
2004-03-04 19:59:58 -05:00