Theodore Ts'o
c37543df2f
Add new two new functions to the blkid library: blkid_dev_set_search(), and
...
blkid_dev_has_tag(), and change the blkid program to take advantage of these
functions.
2005-05-07 13:32:47 -04:00
Theodore Ts'o
7b921b9ab9
Escape hyphens in the e2image and tune2fs man pages so that they show up
...
correctly after groff processes them.
2005-05-06 12:04:10 -04:00
Theodore Ts'o
75e93ab097
Update "make depend" information. Fixes SMP parallel build problem.
...
(Addresses Sourceforge Bug: #1157933 )
2005-05-06 09:37:58 -04:00
Theodore Ts'o
0af8c33be0
Fix potential portability issue in the blkid program. (On architectures
...
where char is unsigned). (Addresses Sourceforge Bug: #1180585 )
2005-05-06 00:10:52 -04:00
Theodore Ts'o
f37ab68a26
Corrects a few mistakes in the fsck man page, wraps two overlong lines,
...
and changes "bad" to "invalid" in some messages to avoid confusion with
"bad blocks" in the e2fsck, mke2fs, and badblocks programs. Thanks to
Benno Schulenberg. (Addresses Sourceforge Bug: #1189803 )
2005-05-05 23:15:55 -04:00
Theodore Ts'o
bfd9762de6
Fix a bug in filefrag so that it doesn't when the first block found is an
...
indirect block, it doesn't falsely count an extra discontunity. (Addresses
Debian Bug #307607 ).
2005-05-05 22:55:20 -04:00
Theodore Ts'o
8139367bbd
Fix spelling mistakes in man pages. (Addresses Debian Bugs: #304591 ,
...
#304592 , #304594 , #304597 , #304593 )
2005-04-16 14:05:09 -04:00
Theodore Ts'o
a4897d41c2
Don't abort filefrag if EXT3_IOC_GETFLAGS ioctl is not supported,
...
so that filefrag can work on non-ext2/3 filesystems, as advertised.
(Addresses Debian Bug: #303509 )
2005-04-09 01:24:04 -04:00
Theodore Ts'o
bcf5aea294
Fix minor spelling typo in the mke2fs man page.
2005-04-09 00:33:21 -04:00
Theodore Ts'o
fd4b28efd3
Update for the e2fsprogs 1.37 release.
2005-03-21 22:37:03 -05:00
Theodore Ts'o
e27b45639a
Fix mke2fs so that it writes the root directory
...
using ext2fs_write_new_inode(), and fix ext2fs_write_new_inode()
so that it initializes i_extra_isize properly.
2005-03-21 01:02:53 -05:00
Theodore Ts'o
6325394630
Add new functions which convert between a string and os_type: e2p_os2string()
...
and e2p_string2os() in the e2p library.
2005-03-19 01:13:22 -05:00
Theodore Ts'o
3d16b3f4bb
filefrag.c (frag_report): Automatically detect files that are
...
stored using the new experimental file fragments format,
and use the non-ext2 algorithm for determing the number of
extents. Avoid reporting a false discontinuity if there
is a non-allocated block (or extent) at the beginning of
the file.
2005-03-18 20:37:45 -05:00
Theodore Ts'o
3eee5e9eed
Update for release of e2fsprogs 1.36.
2005-02-05 18:26:03 -05:00
Theodore Ts'o
7f1faaa482
filefrag.c (frag_report): In verbose mode, print the first and
...
last block numbers; may be useful for some folks.
2005-02-04 09:50:41 -05:00
Theodore Ts'o
07f031fd1d
Define _XOPEN_SOURCE to be 500 to fix compilation problems on Solaris.
2005-02-03 20:38:52 -05:00
Theodore Ts'o
ea77431563
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.
2005-01-28 11:45:28 -05:00
Theodore Ts'o
18d1296333
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.
2005-01-27 19:51:47 -05:00
Theodore Ts'o
8430203590
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.
2005-01-27 19:12:05 -05:00
Theodore Ts'o
20953129e6
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 )
2005-01-27 19:07:26 -05:00
Theodore Ts'o
f923bf2a81
Fix "make uninstall" to make sure it removes everything that is installed.
2005-01-26 13:03:55 -05:00
Theodore Ts'o
79fc2a99ac
e2image.c (scramble_dir_block): Make sure the unused space
...
in the '.' and '..' directory entries are cleared when
e2image -rs is specified.
2005-01-26 11:37:46 -05:00
Theodore Ts'o
fbc3514623
Clarified the tune2fs man page about how the -c option works.
2005-01-24 23:45:56 -05:00
Theodore Ts'o
8909292655
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.
2005-01-21 19:11:05 -05:00
Theodore Ts'o
0aa0e0c7d6
filefrag.c (frag_report): Fix filefrag so that it works
...
correctly with sparse files; unallocated blocks should not
be treated as a discontinuity.
2005-01-20 17:37:01 -05:00
Theodore Ts'o
c6cdada26f
Fix stupid typo in the CreateOS FreeBSD/Solaris changeset. Also included
...
changelogs which I forgot to include in the changeset.
2005-01-19 19:30:01 -05:00
Theodore Ts'o
ea1e8f471e
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)
2005-01-19 18:18:44 -05:00
Theodore Ts'o
e99decb044
Remove debugging printf from e2image -s's code.
2005-01-19 02:27:09 -05:00
Theodore Ts'o
d851ed3983
e2image.c, e2image.8.in: Add support for the -s option which
...
scrambles directory entries for raw image files.
2005-01-19 00:26:43 -05:00
Theodore Ts'o
32237014a1
Various portability fixes for Solaris systems.
2005-01-17 19:13:39 -05:00
Theodore Ts'o
9290404ea7
Applied patch from Francois Petillon (fantec at proxad.net) to
...
avoid a file descriptor leak in the filefrag program.
2005-01-17 14:32:20 -05:00
Matthias Andree
322d9d4852
fsck.c:
...
Include <signal.h> to avoid compiler trouble.
2005-01-13 03:44:50 +01:00
Theodore Ts'o
c76564a878
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 )
2005-01-06 14:48:59 -05:00
Theodore Ts'o
22ba4c1ded
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.
2005-01-06 14:05:17 -05:00
Theodore Ts'o
22dcccdd1a
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.
2005-01-05 13:43:29 -05:00
Theodore Ts'o
c6a44136b9
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.)
2005-01-05 11:12:20 -05:00
Theodore Ts'o
6e82cd7e95
Fix gcc -Wall nits.
2005-01-05 03:02:54 -05:00
Theodore Ts'o
55f4cbd96e
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.
2005-01-05 03:01:06 -05:00
Theodore Ts'o
35238dd1a5
Enhance dumpe2fs so that it will print the location of the reserved
...
GDT blocks if they are present.
2004-12-23 13:54:28 -05:00
Theodore Ts'o
c88bce8df0
In fsck, check return from malloc of fsck_path, and print an error message
...
if it fails.
2004-12-22 00:49:06 -05:00
Theodore Ts'o
690e693caf
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).
2004-12-21 20:40:08 -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
11d1e61f93
Fix minor glitches in the e2image man page.
2004-12-01 12:42:33 -05:00
Theodore Ts'o
605e6f0e24
Make make distclean remove all generated files.
...
Update the po and intl changelog files to indicate that we updated to
gettext 0.14.1
2004-11-30 22:06:27 -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
3a03c2ca5e
mke2fs.8.in: Removed the word "destructive" when describing the
...
read-write test, since it can confuse people.
2004-11-19 14:29:48 -05:00
Theodore Ts'o
029de63277
mke2fs.8.in: Add an explanation about why reserved blocks in a
...
filesystem is a good thing.
2004-10-08 10:47:30 -04:00
Theodore Ts'o
df95e09a52
Document the default blocksize used by badblocks(8).
...
(Addresses Debian Bug #273679 )
2004-09-28 10:30:27 -04:00
Theodore Ts'o
d99225ecce
Only use blocksizes > 4k on Linux 2.6 and newer systems.
...
(Addresses Debian Bug #271064 )
2004-09-25 07:40:12 -04:00
Theodore Ts'o
137ce8ca04
Remove double "//" when listing attributes in the root directory or
...
when there is a trailing '/' in the directory name. (Addresses Debian
Bug #272943 )
2004-09-24 12:16:17 -04:00
Theodore Ts'o
6ea8d0f7c8
Make sure /usr/lib is creaeted when installing e2initrd_helper.
...
(Addresses Debian Bug #272698 )
2004-09-24 12:15:14 -04:00
Theodore Ts'o
3ef681c5db
badblocks.c: Use _() around done_string, so that it gets
...
correctly translated. (Addresses Debian Bug #252836 )
2004-09-19 08:04:44 -04:00
Theodore Ts'o
91d71c4147
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 )
2004-09-19 07:34:35 -04: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
45e18ad77a
tune2fs.8.in: Mention that e2fsck -D might be useful after
...
setting the dir_index filesystem feature. (Addresses
Debian Bug #268148 )
2004-09-17 17:31:16 -04:00
Theodore Ts'o
8c6b648388
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!
2004-07-28 21:07:53 -04:00
Theodore Ts'o
94f6ab3fd1
Makefile.in (mke2fs.static): Add the blkid library to so
...
mke2fs.static builds correctly.
2004-06-25 00:55:12 -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
e02bb6d6ab
Fix obvious spelling mistake in mke2fs man page.
2004-04-12 20:36:35 -04:00
Theodore Ts'o
d06863f0e5
Remove TUNE2FS_SKIP_MOUNT_CHECK environment variable support; it is
...
not needed in the initrd script, and wasn't completely supported
anyway.
2004-04-12 12:37:55 -04:00
Theodore Ts'o
ccdd1d6d99
tune2fs.8.in: Fixed spelling error (Addresses Debian Bug #242995 )
2004-04-11 17:02:44 -04:00
Theodore Ts'o
481d1396c2
mke2fs.8.in: Clarify man page's description of the '-O' option.
...
(Addresses Debian Bug #241940 )
2004-04-11 16:47:25 -04:00
Theodore Ts'o
2eb3b20e80
tune2fs.c (main): If the environment variable
...
TUNE2FS_SKIP_MOUNT_CHECK is set, do not try
to check if the filesystem is mounted.
(update_feature_set): If the compatibility bitmasks were
not modified, don't set the superblock dirty bit.
2004-04-07 09:27:36 -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
Matthias Andree
289e0557c2
GNU/KFreeBSD portability fixes. (Addresses Debian Bug #239934 )
2004-03-30 03:57:41 +02:00
Theodore Ts'o
9b2d5e912b
Eliminate the partially implemented -p option in blkid.
2004-03-21 20:40:20 -05:00
Theodore Ts'o
8927998f82
blkid.c (main, print_tags): Add new option -o which allows the
...
user to control the output format of blkid.
2004-03-20 16:30:10 -05:00
Theodore Ts'o
6750877cb0
mke2fs.8.in: Fix spelling typos (Addresses Debian Bug #238741 )
2004-03-20 16:14:46 -05:00
Theodore Ts'o
39595ce86c
Update and cleaned up blkid man page significantly.
2004-03-13 13:17:55 -05:00
Theodore Ts'o
8ac59297e3
e2image.8.in: Update manpage to detail that writing to stdout is
...
currently only supported when writing a raw image dump.
(Addresses Debian bug #236383 )
2004-03-08 14:18:56 -05:00
Theodore Ts'o
5bec574043
logsave.c (main): Use setsid() to avoid getting killed by init
...
(run_program): Add a newline after reporting the exit code
or signal when the program exits.
2004-03-04 20:30:16 -05:00
Theodore Ts'o
b70b1167fe
Update version number for e2fsprogs 1.35 release.
2004-02-28 10:52:35 -05:00
Theodore Ts'o
167af997e3
badblocks.c (main): Change the default number of blocks tested
...
at once from 16 to 64. (Addresses Debian bug #232240 )
2004-02-28 08:20:41 -05:00
Theodore Ts'o
6b394c1cd3
filefrag.c: Fix gcc -Wall nits.
2004-02-26 21:08:06 -05:00
Theodore Ts'o
023cbb3029
badblocks.c (pattern_fill): Fix bug accidentally added when
...
fixing up gcc -Wall nits. badblocks -t random was not
getting handled properly because ~0 needed to be cast to
an unsigned long instead of an unsigned char. (Addresses
Debian bug #234828 )
2004-02-26 21:06:58 -05:00
Theodore Ts'o
993aa11dc8
fsck.c (execute): Use '&&' instead of '&'. (It didn't cause a
...
problem because we got lucky, but let's do things right.
Fix from Thomas Woerner at Red Hat.)
2004-02-21 21:02:15 -05:00
Theodore Ts'o
d605ba11ab
filefrag.c: Use #ifdef __linux__ instead of __LINUX__ so that it
...
actually compiles on Linux. (Addresses Debian bug
#230992 )
2004-02-03 19:18:03 -05:00
Theodore Ts'o
2e5a1b9e6e
chattr.1.in: Clarify man page.
...
chattr.1.in, dumpe2fs.8.in, lsattr.1.in, mklost+found.8.in,
tune2fs.8.in: List Theodore Ts'o <tytso@alum.mit.edu> as
the current maintainer.
2004-01-31 20:27:36 -05:00
Theodore Ts'o
2293a4d5de
chattr.c (main): Add support for '--' to stop options
...
processing. (Addresses Debian bug #225188 ).
2004-01-20 13:39:01 -05: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
Matthias Andree
b969b1b8a5
Fix more compiler warnings.
2003-12-28 13:04:35 +01:00
Theodore Ts'o
cf119027c5
chattr.1.in: Update text indicating the 'c', 's', and 'u'
...
attributes are not currently supported to remove any
mention of a specific kernel version. (Addresses Debian
bug #214920 )
2003-12-26 14:03:20 -05:00
Theodore Ts'o
64c90eec83
fsck.8.in: Update text describing "standard" options supported
...
by filesystem-specific checkers. (Addresses Debian bug
#222606 )
2003-12-26 13:56:14 -05:00
Theodore Ts'o
477b235327
Add filefrag program to the list of programs installed in /usr/sbin.
2003-12-25 14:31:08 -05:00
Matthias Andree
aa3a2fe49a
Trivial warning fixes.
2003-12-21 00:52:48 +01:00
Theodore Ts'o
9642413014
Initial checkin of the filefrag program, which reports on how
...
badly fragmented a file might be.
2003-12-17 10:13:41 -05:00
Theodore Ts'o
c65e54b00f
tune2fs.8.in: Fix some whitespace errors in the command synopsis.
2003-12-11 11:31:48 -05:00
Theodore Ts'o
2f853099bc
Remove warning message about using NLS.
2003-12-07 12:17:27 -05:00
Theodore Ts'o
1e6e4c5e5c
mke2fs.c (PRS): Fix mke2fs -V so that it prints the version banner.
2003-12-07 02:28:24 -05:00
Theodore Ts'o
544349270e
Fix gcc -Wall nitpicks
2003-12-07 01:28:50 -05:00
Theodore Ts'o
817e49e3ce
Check the returned name from blkid_get_devname in tune2fs and
...
e2fsck, and print an error if the requested LABEL/UUID does
not exist (previously, we core dumped!)
2003-11-21 09:10:29 -05:00
Theodore Ts'o
ef344e13d2
Centeralize calculation of which blocks are reserved/used for
...
the superblock and block group descriptors into two functions:
ext2fs_reserve_super_and_bgd, found in lib/ext2fs/alloc_sb.c, and
ext2fs_super_and_bgd_lock, found in lib/ext2fs/close.c.
Change e2fsck/pass1.c (mark_table_blocks), lib/ext2fs/closefs.c
(ext2fs_flush), lib/ext2fs/initialize.c (ext2fs_initialize),
and misc/dumpe2fs.c (list_desc) to use these functions.
e2fsck/ChangeLog
pass1.c (mark_table_blocks): Use the new function
ext2fs_reserve_super_and_bgd to calculate the blocks to be
reserved.
lib/ext2fs/ChangeLog
closefs.c (ext2fs_super_and_bgd_loc): New function which
centralizes the calculation of the superblock and block
group descriptors.
(ext2fs_flush): Use ext2fs_super_and_bgd_lock to figure
out where to write the superblock and block group
descriptors.
alloc_sb.c (ext2fs_reserve_super_and_bgd): New function which
reserves space in the block bitmap using
ext2fs_super_and_bgd_loc.
initialize.c (ext2fs_initialize): Use
ext2fs_reserve_super_and_bgd to initialize the block bitmap.
misc/ChangeLog
dumpe2fs.c (list_desc): Use ext2fs_super_and_bgd_loc to
determine the locations of the superblock and block group
descriptors.
2003-11-21 09:02:21 -05:00
Theodore Ts'o
d07b150371
util.c (check_plausibility): Support 2.6 kernel header files,
...
instead of having the build to crash. (Addresses Debian
bug #221778 )
2003-11-20 18:34:20 -05:00
Theodore Ts'o
1cca86f5d8
Add regression tests for mke2fs.
...
Mke2fs has been modified to honor the MKE2FS_SKIP_PROGRESS,
MKE2FS_DEVICE_SECTSIZE, and MKE2FS_SKIP_CHECK_MSG in order
facilitate the regression testing.
2003-09-01 09:28:18 -04:00
Theodore Ts'o
79120f8002
mke2fs.c (set_fs_defaults): Fix bug which caused -T largefile or
...
-T largefile4 to core dump due to a division by zero
error. (Addressed Debian bug #207082 )
2003-08-31 20:56:57 -04:00
Theodore Ts'o
a7ac1df34f
Adjust description line so that apropos "ext2" or "ext3" will
...
find all of the e2fsprogs man pages. (Addresses Debian Bug #206845 )
2003-08-24 17:56:41 -04:00
Theodore Ts'o
1f9a60c251
badblocks.c (set_o_direct): Add check to make sure the file
...
offset of the device is page aligned. (Addresses Debian
Bug #203713 )
badblocks.c (test_ro, test_rw): Add code to recover after an
error so that we continue reading on page-aligned
boundaries. (Thanks to Philippe Troin <phil@fifi.org> for
the patch.)
2003-08-01 00:58:00 -04:00
Theodore Ts'o
9c7ec17809
Update for 1.34 release.
2003-07-26 01:03:34 -04:00
Theodore Ts'o
cf7d5f1886
mke2fs.c (PRS): Add warning if using -j and the blocksize is
...
greater than 4096, since some kernels don't support ext3
with large block sizes. (Addresses Debian bug #193773 )
2003-07-25 17:39:51 -04:00
Theodore Ts'o
dc058719df
badblocks.c (set_o_direct): Remove debugging printf. (Addresses
...
Debian bug #201499 )
2003-07-25 07:39:33 -04:00
Theodore Ts'o
5e38fed9c5
fsck.c (wait_many): Rename wait_all() to wait_many(), and have
...
new semantics: WAIT_ALL vs. WAIT_ATLEAST_ONE. This fixes
a bug where when fsck is waiting for another partition on
the same spindle, it spins wasting a lot of CPU.
2003-07-21 20:43:21 -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
11393006c6
mke2fs.c (set_fs_defaults): If sector_size is 0, don't use it to
...
set the blocksize to zero. This causes MD devices to fail
since they don't support the BLKSSZGET ioctl. (Addresses
Debian bug #196734 )
2003-07-12 01:58:12 -04:00
Theodore Ts'o
a7ccdff8e1
In mke2fs and resize2fs, round the default size of the filesystem to
...
be an even multiple of the pagesize to work around a potential
Linux kernel bug.
Use the testio manager in mke2fs if CONFIG_TESTIO_DEBUG is set.
2003-07-08 18:03:48 -04:00
Theodore Ts'o
48e6e81362
Fixx gcc -Wall nitpicks.
2003-07-06 00:36:48 -04:00
Theodore Ts'o
93d5c38791
mke2fs.c (PRS, set_fs_defaults): If the sector size of the
...
device is larger than the default block size, then use the
sector size of the device as the default block size.
getsectsize.c (ext2fs_get_device_sectsize): New function which
returns the hardware sector size (if it is available).
2003-05-21 17:28:29 -04:00
Theodore Ts'o
84c054577f
badblocks.c: Use an unsigned integer to support 4-byte test
...
patterns with the high bit set. Let the user explicitly
specify a random pattern with the argument "random".
2003-05-18 01:11:52 -04:00
Theodore Ts'o
849b6bc8ec
badblocks.c, badblocks.8.in: Functional enhancements contributed
...
by Thayne Harbaugh. These patches allow the -t option to
control the test pattern(s) used when checking the disk.
Test patterns may be specified in all modes (r/w, r/o and
non-destructive).
2003-05-07 09:52:14 -04:00
Theodore Ts'o
6d40f568cd
badblocks.c (test_rw): Fix minor memory leak with test_rw() is
...
called for multiple passes.
(test_nd): Fix bug in chosing randomness for the
non-destructive test. We were only using 1 bit of
randomness per byte instead of 8 due to a bit-shift bug.
Also, initialize the random number generator from the time
in main(). Thanks to Thayne Harbaugh for pointing out
these bugs.
2003-05-07 08:35:38 -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
ddc32a045b
Add Czech translation.
...
Remove "NYC" translation. Add Czech translation from Miloslav
Trmac <mitr@volny.cz>
Random NLS and other display fixes from Miloslav.
2003-05-03 18:45:55 -04:00
Theodore Ts'o
bc7c14e040
tune2fs.c (parse_time): Add portability code to work around lack
...
of strptime().
2003-05-03 16:40:09 -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
71df0dc393
Update for 1.33 release.
...
Fix typo's in README.subset
Change debian control file so it doesn't bomb out if the EVMS FSIM
is not there, since it is not built on the Hurd. Resolves Debian
bug #189687 .
2003-04-21 16:17:09 -04:00
Theodore Ts'o
fc56eee2ea
Makefile.in (uuidgen): Avoid linking lsattr and chattr against
...
libext2fs, and avoid linking blkid against any of the ext2
libraries.
2003-04-18 07:32:00 -04:00
Theodore Ts'o
814dc05673
Fsck does not need to linked against the ext2 libraries anymore.
2003-04-17 21:58:27 -04:00
Theodore Ts'o
2ecaaf6557
Put stdout and stderr into non-buffered mode to
...
avoid cosmetic problems when running fsck under logsave.
2003-04-16 16:13:58 -04:00
Theodore Ts'o
3879857e86
Avoid printing the version banner for mke2fs if
...
the -q option is specified. (Addresses Debian bug #172716 )
2003-04-16 15:29:39 -04:00
Theodore Ts'o
bc34d6be65
* Add support for the -a and -s options to logsave.
...
* Change e2fsck to bracket its progress bar output with ctrl-A and ctrl-B
characters, so that logsave -s can omit writing the progress bar output
to the log file.
2003-04-16 14:05:06 -04:00
Theodore Ts'o
16fa86b9c5
Remove the debian-special legal permission notes.
2003-04-14 20:40:49 -04:00
Theodore Ts'o
f9ddad5982
Add logsave, a new program which saves the output of a command
...
in a log file, even if the containing directory hasn't been
mounted yet (in which case the it saves the output in
memory until it can write out the logfile).
2003-04-14 18:05:12 -04:00
Theodore Ts'o
c5290fae39
Mke2fs can be given a minimum block size by passing in a negative
...
number to the -b option.
2003-04-11 22:10:50 -04:00
Theodore Ts'o
5e05541ad0
mke2fs.8.in: Document the -g option. (Addresses Debian bug #188318 )
2003-04-11 14:00:53 -04:00
Theodore Ts'o
5e804b72b6
Fix bug where mke2fs was incorrectly checking
...
the argument to the -g option, if the default block size
is used. (Addresses Debian bug #188319 )
2003-04-11 13:46:57 -04:00
Theodore Ts'o
ccbed85afe
tune2fs.8.in, mke2fs.8.in: Document the dir_index filesystem
...
feature which can be used with the -O option.
2003-04-11 13:32:31 -04:00
Theodore Ts'o
ee828a9d1e
fsck.c (parse_fstab_line, interpret_type, fsck_device, ignore,
...
main): Don't evaluate the filesystem type when loading the
fstab file, since that might cause fsck to hang trying to
read from a floppy disk. (Addresses Debian bug #187812 )
Add tmpfs and devpts to filesystems that should be
ignored, and add jfs, reseirfs, and xfs as filesystems
types where we should complain if we can't find the fsck
program for that filesystem type.
2003-04-06 23:08:47 -04:00
Theodore Ts'o
cc4f98ed2d
badblocks.c (bb_output): Flush output to the badblocks
...
output file as bad blocks are discovered.
2003-04-03 11:37:46 -05:00
Theodore Ts'o
fc05eb08ba
Fixed chattr man page to clarify description of the 't' (no tail)
...
attribute.
2003-03-25 23:02:34 -05:00
Theodore Ts'o
e71d87317a
Add Apple/Darwin patches.
2003-03-14 02:13:48 -05:00
Theodore Ts'o
eca53e3c4e
e2image.c (write_raw_image_file): Include blocks from slow
...
symbolic links in the raw image file.
2003-03-14 00:38:45 -05:00
Theodore Ts'o
332f2c2382
tune2fs.c (parse_tune2fs_options, parse_e2label_options): Allow
...
the device name to be specified using LABEL=xxx or
UUID=xxx, since we're including the blkid library anyway.
(Addresses Debian bugs #166048 , #179671 )
2003-03-06 12:58:33 -05:00
Theodore Ts'o
77be4d2df1
Minor man page fixes (Addresses Debian bugs #173612 , #175233 ,
...
#175113 , and #170497 )
2003-03-06 12:39:55 -05:00
Theodore Ts'o
ed78c021c3
Fix up lots of portability problems that caused e2fsprogs not to build successfully
...
under Solaris.
2003-03-06 11:09:18 -05:00
Theodore Ts'o
ed1b33e8fb
Minor bug fixes in the blkid library.
...
Convert mke2fs, fsck, and tune2fs to use the blkid library.
2003-03-01 19:29:01 -05:00
Theodore Ts'o
98999c399d
Rename blkid_get_devname() to blkid_get_dev(), and blkid_get_token()
...
to blkid_get_devname().
2003-02-16 00:47:07 -05:00
Theodore Ts'o
50b380b4d4
Wholesale changes to blkid library to simplify the implementation
...
and shrink its size. Change library version to be 1.0.
2003-02-12 23:51:21 -05:00
Theodore Ts'o
19445ef970
Fixed up minor documentation issues (man page for badblocks and usage
...
message for e2fsck).
2003-01-29 21:04:52 -05:00
Theodore Ts'o
7a603aa89f
Separate public and private interfaces into separate header files.
...
Start separating internal implementation details from the
publically exported interface of the blkid library.
2003-01-26 01:54:39 -05:00
Theodore Ts'o
e12f2ae74c
Integrate new blkid library.
2003-01-23 16:45:16 -05:00
Theodore Ts'o
76ea3a2c7f
fsck.c (parse_fstab_line, parse_escape): Add support for
...
backslash escaping in /etc/fstab. (i.e., so that \040
will work.)
2003-01-22 19:55:59 -05:00
Theodore Ts'o
54779c66e0
Update to deal with the fact that the INDEX_FL code in the ext2 2.4
...
code accidentally had the INDEX_FL backwards compatibility code
removed. E2fsck will now fix HTREE corruptions in preen mode, and
mke2fs will not create filesystems with the dir_index flag set
by default. (The user has to specifically request it.)
2002-11-13 07:00:16 -05:00
Theodore Ts'o
38513011b9
Update files for 1.32 release.
2002-11-09 15:00:56 -05:00
Theodore Ts'o
ae65b29f11
Update files for 1.31 release.
2002-11-08 20:08:48 -05:00
Theodore Ts'o
51f8f8d260
chattr.1.in: Update man page
2002-11-08 20:02:21 -05:00
Theodore Ts'o
5d823a478f
Update files for 1.30 release.
2002-11-01 02:13:53 -05:00
Theodore Ts'o
a2c8bf9483
ext2_fs.h: Add support for a new inode flag, which is to be used
...
for indicating the top of directory hierarchies for the
Orlov block allocator.
2002-11-01 02:01:41 -05:00
Theodore Ts'o
15f9011add
Add support for a new inode flag, which is to be used
...
for indicating the top of directory hierarchies for the
Orlov block allocator.
2002-11-01 01:53:52 -05:00
Theodore Ts'o
f68b3b0bda
get_device_by_label.c (read_partitions): Pay attention to
...
partitions returned in /proc/partitions that begin with
with the string "lvm".
2002-10-31 15:30:26 -05:00
Theodore Ts'o
482afc442d
Makefile.in (install): Search all compression extensions when
...
deleting old man pages.
2002-10-31 03:32:34 -05:00
Theodore Ts'o
76dd5e5c28
Add support for the meta_bg feature flag to the resize2fs program.
...
Fix bug in meta_bg support in mke2fs, e2fsck, and dumpe2fs; we were
incorrectly reserving the legacy block groups desriptor blocks.
2002-10-30 23:07:21 -05:00
Theodore Ts'o
1d4c7945ff
fsck.c (main): Fix bug reported by Gregory Mutt. Multiple
...
filesystems explicitly specified on the command line were
not being checked in parallel, due to a logic bug
introduced in to support the FSCK_MAX_INST environment
variable.
2002-10-28 16:52:12 -05:00
Theodore Ts'o
d90a23e2f5
dumpe2fs.c (list_desc, main): Make dumpe2fs more robust so that
...
if there is an error reading the block/inode bitmaps, it
will still print out the contents of the block group
descriptors.
2002-10-25 17:07:11 -04:00
Theodore Ts'o
2bae543eed
Update man page to document the journal_* default mount options.
2002-10-25 16:21:03 -04:00
Theodore Ts'o
c046ac7f2e
Add support for the meta_blockgroup filesystem format.
2002-10-20 00:38:57 -04:00
Theodore Ts'o
a0c3fd5e4c
Add support for new feature in ext2/3 filesystems; a default mount options field
...
in the superblock. Added the tune2fs '-o' option to set this field.
2002-10-15 17:43:43 -04:00
Theodore Ts'o
3e69906495
Fix gcc -Wall nits.
...
Fix format bug if NLS is in use.
Add extra so that the info directory looks OK on OpenWall.
2002-10-13 23:56:28 -04:00
Theodore Ts'o
64aecc4dd3
Fix bug in e2fsck and mklost+found; the lost+found directory should
...
created with mode 0700.
2002-10-11 17:44:12 -04:00
Theodore Ts'o
3432a916ed
e2image.c (write_raw_image_file): Handle a bad block in the
...
inode table correctly.
2002-10-02 17:47:08 -04:00
Theodore Ts'o
dbfb3f0b0c
get_device_by_label.c: Applied sourceforge patch #613447 , which
...
adds support for reiserfs volumes for LABEL= and UUID=
fstab entries.
2002-09-29 22:42:27 -04:00
Theodore Ts'o
41ec7bb61f
badblocks.c (main): Appled sourceforge patch #600451 , which
...
addresses sourceforge bug #600388 , by AEF. This allows
badblocks to work correctly on read-only devices such as
CD-ROM's, DVD's, etc.
2002-09-29 22:37:40 -04:00
Theodore Ts'o
82b39c9f54
mke2fs.8.in, tune2fs.8.in: Clarify manual pages about using the
...
caret ('^') character to negate feature sets when using
the -O option. Define the has_journal feature to avoid
confusion about what ^has_journal means.
2002-09-29 19:08:38 -04:00
Theodore Ts'o
c663305947
Update for 1.29 release.
2002-09-24 01:26:50 -04:00
Theodore Ts'o
84bd550148
fsck.c: If the bone-headed user enters the filename twice, the
...
-R option which skips the root filesystem will skip all of
them. (Addresses Debian bug #159423 ). Note! This is not
a precedent for dealing intelligently with any other kind
of doubled entry in /etc/fstab!
2002-09-24 00:13:19 -04:00
Theodore Ts'o
843049c4db
mke2fs.c (main): Enable directory indexing by default.
...
tune2fs.c (update_feature_set): Allow directory indexing flag to
be set. If so, set the default hash to be TEA, and
initialize the hash seed to a random value.
2002-09-22 15:37:40 -04:00
Theodore Ts'o
f9e4abf714
get_device_by_label.c (init_lvm): Fix bug which caused
...
LABEL='xxx' to not work correctly when using LVM.
(Reversed sense of error check reported by ateeq@hotpop.com )
2002-09-21 06:46:43 -04:00
Theodore Ts'o
87ee8dcad3
Update changelogs for 1.28 release
2002-08-31 03:02:57 -04:00
Theodore Ts'o
0d608df100
Update version string for WIP release.
2002-08-18 03:38:15 -04:00
Theodore Ts'o
118d7dacc5
Add support for searching /proc/evms/volumes when interpreting
...
LABEL=xxx or UUID=xxx.
Add new utility program /sbin/findfs, which interprets LABEL=xxx or
UUID=xxx, and returns the device name. (Part of tune2fs).
2002-08-17 23:01:22 -04:00
Theodore Ts'o
1f22ce34fc
mke2fs.8.in: Add a common usage of the -n option. (Addresses
...
Debian Bug #146437 )
2002-08-17 18:16:29 -04:00
Theodore Ts'o
a141135451
fsck.c (main): If no filesystems are specified on the command
...
line, default to -As. (Addresses Debian Bug #153102 )
badblocks.8.in: Clarify why it's bad to do a non-destructive
test on a r/o mounted filesystem. (Addresses Debian Bug
#131350 )
2002-08-17 17:39:39 -04:00
Theodore Ts'o
023d111e92
chattr.1.in: Document the compression attribute flags E, X, and
...
Z, and explain that chattr can't set or set these flags.
(Addresses Debian Bug #151990 )
fsetflags.c (fsetflags), fgetflags.c (fgetflags.c), setflags.c
(setflags), getflags.c (getflags): Check to make sure the
file is a regular file or a directory before attempting to
use the ext2 ioctls. Otherwise, return EOPNOTSUPP.
(Addresses Debian Bug #152029 ).
2002-08-17 14:44:56 -04:00
Theodore Ts'o
f044b4d8a0
Update and clarify man pages (addresses Debian Bug #145044 ).
...
Let e2fsck allow use of the TEA hash.
Mke2fs will no longer abort if it can't zero blocks at the end of the
filesystem. (Addresses Debian Bug #155007 )
2002-08-17 13:32:21 -04:00
Theodore Ts'o
ed909bbe20
Fix up extended attribute handling in e2image, resize2fs, and in
...
debugfs's icheck command.
2002-08-16 17:03:59 -04:00
Theodore Ts'o
4cae04529e
Add SIGINT and SIGTERM handling to fsck and e2fsck. For e2fsck,
...
make sure we gracefully clean up and only exit at safe points.
For fsck, we pass the SIGINT/SIGTERM signal to the child processes,
so they can do their own cleanup.
2002-07-21 14:14:03 -04:00
Theodore Ts'o
7098810daf
mke2fs.c (zap_sector): Clear the buffer *after* testing for the
...
BSD sector label. Otherwise the first 512 bytes don't get
zapped. (Addresses Debian bug #147256.)
2002-07-14 08:00:00 -04:00
Theodore Ts'o
f0865ce4d6
mke2fs.8.in: Cleaned up man page, and made it a bit more
...
OS-agnostic. Addresses Debian bug #144621 . Hope this
makes the Hurd whiners happy. :-)
2002-07-02 10:08:27 -04:00
Theodore Ts'o
5cfd7404ba
chattr.1.in: Fix man page typo. (Addresses Debian bug #141938 )
2002-06-28 10:47:24 -04:00
Theodore Ts'o
88372d5c4b
Applied Andrew Morton's patch to support the dirsync option.
2002-06-15 18:58:39 -04:00
Andreas Dilger
b21bf26778
Do sanity checking of the number of blocks and inodes in a group for
...
8192-byte and 16384-byte blocksize filesystems.
Change the default bytes-per-inode ratio of a new filesystem to be at most
one inode per block for large blocksizes.
2002-06-10 11:05:56 -06:00
Andreas Dilger
aab6fe735d
misc/mke2fs.c: Minor fix for new page size checking code.
2002-05-18 13:27:33 -06: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
7de6577cd9
Fix typo in man page.
2002-04-30 20:22:32 -04:00
Theodore Ts'o
a8e772498c
Update for 1.27 release.
2002-03-08 03:12:14 -05:00
Theodore Ts'o
7ef3bb838d
mke2fs.c: Check for the BSD disklabel on all architectures, and
...
also check the byte-swapped magic number as well.
2002-03-08 03:01:53 -05:00
Theodore Ts'o
6693837e59
mke2fs.c: Output warnings to stderr
...
(From Philipp Thomas <pthomas@suse.de>)
2002-03-08 00:14:46 -05:00
Theodore Ts'o
546a1ff18c
Fix various gcc -Wall complaints.
2002-03-07 23:52:56 -05:00
Theodore Ts'o
756df353e8
mke2fs.c (zap_sector): Don't erase BSD disklabels on Alpha.
...
(From Thorsten Kukuk <kukuk@suse.de>)
2002-03-07 20:52:12 -05:00
Theodore Ts'o
14308a5398
Newer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES.
2002-03-05 03:26:52 -05:00
Theodore Ts'o
57173d0feb
Update Changelog messages to use tytso@mit.edu for all addresses
...
after September 7, 2001. (Forgot to update my emacs file to get
rid of the tytso@valinux.com address. Oops.)
2002-02-26 14:59:39 -05:00
Andreas Dilger
0072f8de52
Add check for mkfs.ext3 and create a journal in this case.
2002-02-25 23:11:26 -07:00
Theodore Ts'o
b9f409255e
Update makefiles to install mkfs.ext3, and to install man pages for
...
mkfs.ext2/3 and fsck.ext2/3. Also remove any compressed man pages
before installing the man pages.
2002-02-24 03:08:57 -05:00
Theodore Ts'o
541d173d91
Update with the Debian package e2fsprogs-1.26-1.
...
Clarify and clean up the badblocks man page and the com_err info file.
2002-02-23 21:23:26 -05:00
Theodore Ts'o
7d4343d0d0
Lots of small random portability fixes to make e2fsprogs build
...
under AIX --- even without the 5L compatibility toolkit, and even
using the uber-crippled AIX native C compiler.
2002-02-12 02:34:44 -05:00
Theodore Ts'o
a5f3f5c191
Update files for 1.26 release.
2002-02-03 01:00:22 -05:00
Theodore Ts'o
5599c2fa87
Changed fsck to support filesystems types in /etc/fstab of the form
...
"ext3,ext2", etc.
Added support for only searching for a specified list of filesystems.
Also add support for identifying reiserfs filesystems.
2002-02-03 00:08:52 -05:00
Theodore Ts'o
a1069118d4
fsck.c: Allow the number of outstanding processes fs-specific
...
fsck programs to be capped via the FSCK_MAX_INST
envrionment variable.
fsck.8.in: Document all of the environment variables used by fsck.
2002-01-29 12:49:14 -05:00
Theodore Ts'o
177ab2bebe
Document the -f flag to tune2fs.
2002-01-27 18:23:49 -05:00
Andreas Dilger
c713f6066c
Always free vdirname.
2002-01-06 21:52:44 -07:00
Andreas Dilger
c007bc06d9
Return a non-zero exit code on error.
2001-12-25 23:10:40 -07:00
Theodore Ts'o
5493a27dc1
badblocks.c (main): Open the device as O_RDWR if possible, since
...
fsync() isn't guaranteed to work if the filesystem is
opened read-only.
2002-01-02 14:15:35 -05:00
Theodore Ts'o
d4de4aa938
tune2fs.8.in, tune2fs.c (parse_tune2fs_options, main): Add
...
support for new option, -T, which allows the user to set
the last checked time on the filesystem.
2001-12-26 08:58:01 -05:00
Theodore Ts'o
3ed57c27df
In mke2fs and e2fsck, specifying the -c option twice will now do
...
a read/write test on the disk. Update the man pages to encourage
using the -c option, and to discouraging running badblocks separately,
since users tend to forget to set the blocksize when running
badblocks.
2001-12-24 15:01:59 -05:00
Theodore Ts'o
5f0fabe6db
Fix broken Makefile dependencies.
2001-12-24 12:42:45 -05:00
Theodore Ts'o
6a525069a9
Mke2fs now creates the lost+found directory with 0700 permissions,
...
since files which get dropped into that directory may have come
from a protected directory, and the system administrator may not
deal with immediately. (Addresses Debian bug #118443 )
2001-12-24 09:40:00 -05:00
Theodore Ts'o
19007e51a5
Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
...
system header file version of hbd.h when using diet glibc
(since it forcibly adds /usr/include to the beginning of include
search path.)
2001-12-23 19:33:51 -05:00
Theodore Ts'o
eaf4dc5c98
Add support to read out information from the LVM proc hierarchy,
...
so that the UUID cache can search the LVM logical volumes for
UUID's, labels, etc.
2001-12-22 00:04:22 -05:00
Theodore Ts'o
0655b104e6
Change dumpe2fs to not die if the listing of the bad blocks
...
can't be found. Slimmed down dumpe2fs by eliminating duplicate
code paths.
2001-12-21 23:59:46 -05:00
Theodore Ts'o
4ea7bd0439
Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus
...
error message could be printed on an malloc() failure, and e2image
was optimized to avoid needless system calls by using the stashed
inode functions.
2001-12-16 23:23:37 -05: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
a5f0bb9d1b
Pull up dumpe2fs cleanup patch from the experimental branch.
2001-12-02 19:29:35 +01:00
Theodore Ts'o
571fc5a89c
Fixes necessary for e2fsprogs to work using the diet libc.
...
- Renamed linux/list.h to be linux/linked_list.h to work around a
problem caused by diet libc insistence to search the kernel
header files ahead of all other files in the include path,
including the user specified include files.
- Worked around a bug in diet libc which core dumps when using
putc with stderr by using fputs instead. As a bonus, this
also shaved a few bytes off of com_err.o.
- Fixed a real bug in debugfs which was detected because diet libc
was more sensitive than glibc when incorrectly using fclose()
where pclose() is required.
2001-12-02 17:23:27 +01:00
Theodore Ts'o
a36cf92009
e2image.8.in: Fix cut-and-paste typo (Addresses Debian bug #119624 )
2001-11-24 16:13:49 -05:00
Theodore Ts'o
6ef3920a82
util.c (check_plausibility): Use stat64 if available so that
...
check_plausibility() works with files > 2GB.
2001-11-13 18:49:09 -05:00
Theodore Ts'o
b3f5b4c229
Define a new ext2 file attribute, EXT2_NOTAIL_FL,
...
which signals that a particular inode should not have the
last bits of data (the "tail") be merged with another
file. This is necessary to keep programs like LILO happy.
2001-11-05 19:22:02 -05:00
Theodore Ts'o
6430bd67ce
fsck.c (interpret_type): If the "auto" type is specified, make
...
sure interpet_device() is called so that device
specifications which use LABEL= or UUID= are translated
into a real device name.
2001-11-05 18:58:46 -05:00
Theodore Ts'o
e3ef3502f7
e2image.c (output_meta_data_blocks): Optimize away excess
...
lseek() calls when creating a sparse file. Fewer system
calls are a good thing. <g>
2001-11-05 18:57:43 -05:00
Andreas Dilger
568101f774
mke2fs.c(main): Always exit with non-zero code in case of error.
...
mke2fs.c(zap_sector): Check that buffer allocation succeeded.
2001-10-13 01:22:25 -06:00
Andreas Dilger
d6903eccf9
Update findsuper to support > 2GB device sizes.
...
Add extra validity checks over just ext2 magic detection.
Add progress meter.
2001-10-01 15:38:14 -06:00
Theodore Ts'o
fbf9111216
Update changelogs for 1.25 release.
2001-09-20 10:47:47 -04:00
Theodore Ts'o
f6a6afcef4
Remove dead code that wasn't in use from tune2fs.
2001-09-19 18:27:39 -04:00
Theodore Ts'o
39567c4493
tune2fs.8.in: Update man page to reflect the fact that adding or
...
removing a journal doesn't require running e2fsck.
2001-09-19 15:28:21 -04:00
Theodore Ts'o
3f85f65c98
mke2fs.c (zap_sector): Allocate sufficient space for zero-filled
...
buffer.
2001-09-17 10:38:06 -04:00
Theodore Ts'o
fb70775b0f
Update for 1.24a release
2001-09-04 15:00:37 -04:00
Andreas Dilger
9d8e634632
Fix version format string.
2001-08-31 10:24:46 -06:00
Theodore Ts'o
109624a133
Update for 1.24 release.
2001-08-31 00:59:55 -04:00
Theodore Ts'o
04a968579e
mke2fs.c (zap_sector): Now takes a third argument, which is how
...
many sectors to clear out. Fixed up Andreas's patch to
make it a bit more efficient/compact.
2001-08-30 21:55:26 -04:00
Andreas Dilger
59f27247f8
mke2fs.c (main): Zap the second sector of the disk, along with
...
any sectors in the same filesystem block after the superblock.
The latter will remove (for example) swapspace signatures
on 4kB+ blocksize filesystems. Also when zeroing the "end"
of the filesystem don't actually zero the start of a very
small device (less than 128kB).
2001-08-30 15:39:04 -06:00
Theodore Ts'o
177a9acef4
badblocks.8.in: Fix spelling typo. (Addresses Debian bug #110621 )
2001-08-30 18:07:40 -04:00
Theodore Ts'o
0f8973fb09
Remove EXT2FS_VERSION from the version display, since it
...
only confuses people.
Make fsck's version display be consistent with the other e2fsprogs
programs.
2001-08-27 12:44:23 -04:00
Theodore Ts'o
943ed874fc
Add missing log entry showing when we released e2fsprogs 1.23
2001-08-27 12:29:22 -04:00
Theodore Ts'o
b1c9a00071
Update makefile dependencies.
2001-08-18 14:31:41 -04:00
Theodore Ts'o
e843c76016
Minor fixups to Andreas' changeset. Removed unused variable
...
from tune2fs and added missing function prototype.
2001-08-18 14:22:25 -04:00
Andreas Dilger
2d15576dfe
get_device_by_label.[ch], fsck.c, util.c: New interpret_spec()
...
function in get_device_by_label.c to allow the use of
UUID= or LABEL= when creating filesystems which use external
journal dev (e.g. mke2fs -J device=LABEL=<journal_label>).
tune2fs.c: Use superblock s_journal_uuid to locate an external
journal device instead of s_journal_dev when removing it.
Allow opening journal devices to set the label and UUID
in the ext2 superblock.
mke2fs.c, tune2fs.c: Free journal_device after use, as it is
malloc'd in interpret spec.
2001-08-17 03:48:11 -06:00
Theodore Ts'o
7141b54b1a
* tune2fs.c: Make sure that error messages are sent to stderr, and
...
normal messages are sent to stdout. (Addresses Debian bug
#108555.)
2001-08-15 19:17:37 -04:00
Theodore Ts'o
1d349cce2d
fsck.8.in: Fixed error in synopsis of the man page.
2001-08-15 19:06:55 -04:00
Theodore Ts'o
685c13f6d7
fsck.c (main): Print a warning message if there are no devices to
...
be checked. (Addresses Debian bug #107458.)
2001-08-15 19:04:59 -04:00
Theodore Ts'o
88f8af61a4
fsck.c (check_all): Don't bother to interpret a device where the
...
pass number is zero. (Addresses Debian bug #106696 ).
2001-08-15 18:39:51 -04:00
Theodore Ts'o
f3561ed519
mke2fs.c (PRS): Handle -O and -s options in line in the getopt
...
loop, so that -s and -O handling are a bit more intuitive.
(Not that they should be mixed anyway; -s is deprecated.)
2001-08-15 11:58:16 -04:00
Theodore Ts'o
d258668d58
Give an error if -O is specified more than once to tune2fs.
2001-08-15 11:03:58 -04:00
Theodore Ts'o
085b02cba9
mke2fs.8.in: Slim down text describing the -O flag to remove
...
text that erroneously implied that all features
(including compatible flags) aren't compatible with older kernels.
2001-08-10 19:13:11 -04:00
Theodore Ts'o
e8a447db42
mke2fs.c (PRS): Fix bug pointed out by Christopher Niessen; if mke2fs
...
-O none is specified, the sparse_super feature should not be present.
2001-08-09 06:13:18 -04:00
Theodore Ts'o
1c1e004924
Add support for specifiying - as the image file (to send the image
...
file to standard out).
Save the journal inode if it is internal to the raw image file.
2001-08-09 06:04:32 -04:00
Theodore Ts'o
6304baf255
Add support for raw image files in e2image.
2001-08-09 05:41:29 -04:00
Theodore Ts'o
8c97b0bf16
Add ChangeLog entry for changes made by Andreas Dilger
2001-08-04 21:14:45 -04:00
Andreas Dilger
fa72458adb
Put check for JOURNAL_DEV before sparse_option, so we don't set the
...
sparse superblock flag on journal devices.
2001-08-04 01:18:34 -06:00