1
2004-04-03 Theodore Ts'o <tytso@mit.edu>
3
* ext2_types.h.in: Remove check for _UUID_TYPES since uuid_types.h
6
2004-03-08 Theodore Ts'o <tytso@mit.edu>
8
* getsize.c (ext2fs_get_device_size): Only use the BLKGETSIZE64
9
ioctl on Linux 2.6 since it is unreliable in Linux 2.4.
10
(Addresses Debian Bug #236528). Fix typo in the ioctl
13
2004-03-02 Theodore Ts'o <tytso@mit.edu>
15
* getsize.c (ext2fs_get_device_size): Update getsize functions to
16
use Apple Darwin and Linux 64-bit ioctl's
18
2004-02-29 Brian Bergstrand <brian@bergstrand.org>
20
* Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
23
2004-02-28 Theodore Ts'o <tytso@mit.edu>
25
* Release of E2fsprogs 1.35
27
2004-02-21 Theodore Ts'o <tytso@mit.edu>
29
* ext2fs.h (ext2fs_resize_mem): Fix C++ problem. (Addresses Red
30
Hat Bugzilla #112448; thanks Thomas Woerner from Red Hat.)
32
2004-02-14 Theodore Ts'o <tytso@mit.edu>
34
* namei.c (follow_link): Correctly deal with symlinks that have
35
extended attribute information. (Addresses Debian Bug
38
2004-01-30 Theodore Ts'o <tytso@mit.edu>
40
* ext2_fs.h: Reserve an extra 4 bytes for the journal backup,
41
which we're using due to a typo in the e2fsck code. (Oops)
43
* swapfs.c (ext2fs_swap_inode): Fix byte swap bug which causes SE
44
Linux created symlinks with mandatory attributes to fail
45
to be properly handled on big endian systems. (Addresses
47
(ext2fs_swap_super): Byte swap some new fields in the
48
superblock, including the journal backup fields.
50
2003-12-02 Theodore Ts'o <tytso@mit.edu>
52
* alloc.c, bb_inode.c, bitops.c, block.c, check_desc.c, closefs.c,
53
dir_iterate.c, dirblock.c, expanddir.c, ext2fs.h,
54
get_pathname.c, icount.c, imager.c, initalize.c, inode.c,
55
lookup.c, openfs.c, read_bb.c, read_bb_file.c,
56
rw_bitmaps.c, unix_io.c, unlink.c, write_bb_file.c: Fix
57
gcc -Wall complaints. Mainly marking variables as being
58
unsued, and catching signed vs. unsigned comparisons.
60
2003-09-03 Theodore Ts'o <tytso@mit.edu>
62
* closefs.c (ext2fs_super_and_bgd_loc): New function which
63
centralizes the calculation of the superblock and block
65
(ext2fs_flush): Use ext2fs_super_and_bgd_lock to figure
66
out where to write the superblock and block group
69
* alloc_sb.c (ext2fs_reserve_super_and_bgd): New function which
70
reserves space in the block bitmap using
71
ext2fs_super_and_bgd_loc.
73
* initialize.c (ext2fs_initialize): Use
74
ext2fs_reserve_super_and_bgd to initialize the block bitmap.
76
2003-08-20 Theodore Ts'o <tytso@mit.edu>
78
* inode_io.c (ext2fs_inode_io_intern2), ext2fs.h: Add new function
79
allows the caller to pass in the inode data structure.
81
* fileio.c (ext2fs_file_open2), ext2fs.h: Add new function which
82
allows the caller to pass in the inode to be used in the
85
* ext2_fs.h: Add a backup of the location of the journal inode
86
blocks to the superblock.
88
* mkjournal.c (write_journal_inode): Save the location of the
89
journal inode to the backup location in the superblock.
91
2003-08-01 Philipp Thomas <pthomas@suse.de>
93
* alloc.c, badblocks.c, bb_inode.c, bitmaps.c, block.c, bmap.c,
94
bmove.c, brel_ma.c, closefs.c, dblist.c, dblist_dir.c,
95
dir_iterate.c, dirblock.c, dupfs.c, expanddir.c, ext2fs.h,
96
ext_attr.c, fileio.c, freefs.c, get_pathname.c, icount.c,
97
initialize.c, inode.c, inode_io.c, irel_ma.c, mkdir.c,
98
mkjournal.c, namei.c, newdir.c, openfs.c, rs_bitmap.c,
99
rw_bitmaps.c, test_io.c, unix_io.c: ext2fs_getmem(),
100
ext2fs_free_mem(), and ext2fs_resize_mem() all now take a
101
'void *' instead of a 'void **' in order to avoid pointer
102
aliasing problems with GCC 3.x.
104
2003-07-25 Theodore Ts'o <tytso@mit.edu>
106
* Release of E2fsprogs 1.34
108
2003-07-06 Theodore Ts'o <tytso@mit.edu>
110
* kernel-jbd.h, flushb.c: Fix gcc -Wall nitpicks (indented cpp
113
* ext2_types.h.in, initialize.c: Fix gcc -Wall nitpicks
116
* ismounted.c: Fix gcc -Wall nitpicks (Don't use exit as a goto label)
118
* llseek.c: Fix gcc -Wall nitpicks (don't use #elsif)
120
* lookup.c, read_bb.c: Fix gcc -Wall nitpicks (indent
121
non-traditional #pragma)
123
* test_io.c: Fix gcc -Wall nitpicks (const/unsigned type issues)
125
2003-06-24 <tytso@snap.thunk.org>
127
* badblocks.c, ext2fs.h (ext2fs_u32_list_find,
128
ext2fs_u32_list_test, ext2fs_u32_list_del,
129
ext2fs_badblocks_list_del): Add functions to delete a
130
block from the badblocks list.
131
* tst_badblocks.c: Add test cases for ext2fs_badblocks_list_del().
133
2003-05-21 Theodore Ts'o <tytso@mit.edu>
135
* getsectsize.c (ext2fs_get_device_sectsize): New function which
136
returns the hardware sector size (if it is available).
138
2003-05-13 Theodore Ts'o <tytso@mit.edu>
140
* unix_io.c: Add #ifdef NO_IO_CACHE which disables all userspace
141
caching by the unix_io layer. Not enabled, only for
144
2003-05-05 Theodore Ts'o <tytso@mit.edu>
146
* test_io.c: Pay attention to the environment variables
147
TEST_IO_LOGFILE, TEST_IO_FLAGS, and TEST_IO_BLOCK to
148
determine whether or not we should log io activity, and to
151
2003-05-03 Theodore Ts'o <tytso@mit.edu>
153
* tst_badblocks.c (file_test): Use tmpfile() instead of mktemp().
155
2003-04-29 Theodore Ts'o <tytso@mit.edu>
157
* getsize.c (ext2fs_get_device_size): Allow windows code to get
158
the resize for filesystems that are in regular files.
160
2003-04-21 Theodore Ts'o <tytso@mit.edu>
162
* Release of E2fsprogs 1.33
164
2003-04-21 Theodore Ts'o <tytso@mit.edu>
166
* Makefile.in: Use DYLD_LIBRAY_PATH so that "make check" works on
167
Darwin systems when building with shared libraries.
169
2003-04-18 Theodore Ts'o <tytso@mit.edu>
171
* unix_io.c: Use __CYGWIN__ instead of CYGWIN.
173
2003-04-17 Theodore Ts'o <tytso@mit.edu>
175
* getsize.c: Add Cygwin/Windows version of ext2fs_get_device_size()
177
2003-04-12 Theodore Ts'o <tytso@mit.edu>
179
* unix_io.c (raw_read_blk): Add Cygwin support (the Windows block
180
device only accepts sector aligned read requests.
182
* ismounted.c (check_mntent_file): Deal with OS's that don't
185
* imager.c: If the OS doesn't define ssize_t, typedef it to int.
187
2003-04-11 Theodore Ts'o <tytso@mit.edu>
189
* ext2_fs.h (EXT2_FEATURE_RO_COMPAT_BTREE_DIR): Comment out unused
192
2003-03-30 Theodore Ts'o <tytso@mit.edu>
194
* Makefile.in: Use the compile_et --build-tree option.
196
2003-03-14 Theodore Ts'o <tytso@mit.edu>
198
* getsize.c: Add support for Apple Darwin's ioctl to get the hard
201
* badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function
202
which returns the number of entries in the list.
204
2003-03-10 Theodore Ts'o <tytso@mit.edu>
206
* fileio.c (ext2fs_file_lseek): Fix bug added when adding 64-bit
207
support; avoid null dereference when ret_pos is NULL.
209
2003-03-06 Theodore Tso <tytso@mit.edu>
211
* ext2_types.h.in: Don't redefine types if other e2fsprogs
212
*_types.h files have been included already.
214
* kernel-jbd.h: Use C99 variadic cpp macros if not using GCC.
215
(Older GCC's don't support the C99 variadic macros.)
217
* flushb.c (ext2fs_sync_device),
218
ismounted.c (ext2fs_check_mount_point): Avoid GCC extension:
219
#warning not supported by Solaris suncc
221
* ext2_ext_attr.h: Avoid GCC extension: 0 length arrays in
222
structure definition. Not needed for now in
225
2003-01-25 Theodore Ts'o <tytso@mit.edu>
227
* dirhash.c: Fix gcc -Wall nits.
229
2003-01-22 Theodore Ts'o <tytso@mit.edu>
231
* unix_io.c (unix_write_blk): Fix up GCC -Wall nits.
233
2003-01-21 Theodore Ts'o <tytso@mit.edu>
235
* fileio.c (ext2fs_file_read, ext2_file_lseek,
236
ext2_file_get_size): Add 64-bit support.
238
* ext2fs.h (EXT2_I_SIZE): Add macro which caluates a 64bit size
239
from i_size and i_size_high.
241
2003-01-19 Theodore Ts'o <tytso@mit.edu>
243
* initialize.c (ext2fs_initialize): If the user specifies a really
244
large number of inodes, then reduce the number of blocks
245
per group until we find a workable set of filesystem
248
* ext2_err.et.in (EXT2_ET_TOO_MANY_INODES): Add new error code.
250
2002-11-09 Theodore Ts'o <tytso@mit.edu>
252
* Release of E2fsprogs 1.32
254
2002-11-09 Theodore Ts'o <tytso@mit.edu>
256
* unix_io.c (find_cached_block, reuse_cache, unix_read_blk,
257
unix_write_blk): Optimize routines so that we don't end up
258
searching the cache twice when a block isn't in the
259
cache. If reads are larger than READ_DIRECT_SIZE, don't
260
let them go through the cache.
262
* unix_io.c (find_cached_block): Fixed bug which caused some clean
263
blocks to be erroneously marked as dirty, so they would
264
get written back to the disk before they are evicted from
265
the cache. Harmless, but it slows down e2fsck
268
2002-11-08 Theodore Ts'o <tytso@mit.edu>
270
* Release of E2fsprogs 1.31
272
2002-11-08 <tytso@snap.thunk.org>
274
* Makefile.in (check): Skip trying to compile test_byteswap
275
if --disable-byteswaap had been given to configure.
277
2002-11-07 <tytso@snap.thunk.org>
279
* closefs.c (write_bgdesc, ext2fs_flush): Fix bug in meta_bg
280
support when the MASTER_SB_ONLY flag is set. Some of
281
the descriptor blocks that should have been written out
282
were getting skipped.
284
2002-10-31 Theodore Ts'o <tytso@mit.edu>
286
* Release of E2fsprogs 1.30
288
2002-10-31 Theodore Ts'o <tytso@mit.edu>
290
* ext2_fs.h: Add support for a new inode flag, which is to be used
291
for indicating the top of directory hierarchies for the
292
Orlov block allocator.
294
* ismounted.c (check_mntent, check_mntent_file): Add better
295
support for loopback-mounted filesystems. Check /etc/mtab
296
if /proc/mounts doesn't turn up any mount flags, since
297
/etc/mtab has the loopback image filename, instead of
298
/dev/loop0. Also, check based on st_dev and st_ino, so
299
that if a relative pathname or a pathnames using symbolic
300
links are used, we can detect the the filesystem correctly
301
in those cases. (Addresses Sourceforge bug #619119)
303
* flushb.c (ext2fs_sync_device): If the BLKFLSBUF ioctl succeeds,
304
don't try the FDFLUSH ioctl that was required for floppies
305
with older kernels. This avoids needless whining from the
306
MD device driver. (Addresses Sourceforge bug #545832).
308
* openfs.c (ext2fs_open): Fix bug which caused us to pass the
309
wrong group_block to ext2fs_descriptor_block_loc if we're
310
using the backup superblock/block group descriptors.
311
(ext2fs_descriptor_block_loc): If we're using the backup
312
superblock descriptors, use the backup descriptor block in
313
the next block group.
315
2002-10-30 Theodore Ts'o <tytso@mit.edu>
317
* alloc_tables.c (ext2fs_allocate_group_table): Allocate the inode
318
table so that it buts up against the bitmap blocks, to
319
avoid block fragmentation.
321
* closefs.c (write_bgdesc), initalize.c (ext2fs_initialize): Fix
322
bug; only allocate group descriptor blocks up to
325
2002-10-25 Theodore Ts'o <tytso@mit.edu>
327
* ext2_fs.h: Add a new superblock field, s_mkfs_time, so that we
328
know when a filesystem was created. (Sometimes this can
331
* initialize.c (ext2fs_initialize): Set the s_mkfs_time field.
333
2002-10-20 Theodore Ts'o <tytso@valinux.com>
335
* ext2_fs.h (EXT3_DEFM_JMODE): Add new default mount options for
336
the journal data mode.
338
* closefs.c (ext2fs_flush, write_bgdesc), ext2_fs.h, ext2fs.h,
339
openfs.c (ext2fs_descriptor_block_loc, ext2fs_open), initialize.c
340
(ext2fs_initialize), swapfs.c (ext2fs_swap_super): Add support for
341
the meta_blockgroup filesystem format.
343
2002-10-15 <tytso@snap.thunk.org>
345
* ext2_fs.h: Add new field in superblock for default mount options.
347
2002-10-13 Theodore Ts'o <tytso@mit.edu>
349
* ext2fs.h: Add #include of header files necessary for ext2fs.h to
352
2002-10-02 Theodore Y. Ts'o <tytso@mit.edu>
354
* rw_bitmaps.c (ext2fs_write_block_bitmap,
355
ext2fs_read_block_bitmap): Don't set the CHANGED bit just
356
because the bitmap is getting written to disk. Make
357
ext2fs_swap_bitmap be a static function, since it's not
358
intended to be exported.
360
* swapfs.c (ext2fs_swap_super): Byte-swap the hash seed
362
2001-09-24 Theodore Tso <tytso@mit.edu>
364
* Release of E2fsprogs 1.29
366
2001-08-31 Theodore Tso <tytso@thunk.org>
368
* Release of E2fsprogs 1.28
370
2002-08-31 Theodore Ts'o <tytso@valinux.com>
372
* dblist.c (ext2fs_dblist_sort): New function which allows the
373
caller to pass in a special sort comparison function.
375
2002-08-20 Theodore Ts'o <tytso@mit.edu>
377
* valid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which
378
failed to accurately characterize non-standard slow
379
symlinks. (Which don't appear in practice on real-life
380
systems, fortunately.)
382
2002-08-17 Theodore Ts'o <tytso@mit.edu>
384
* Makefile.in: Remove inode_io.o from the standard object files,
385
and only build it if debugfs is enabled (it requires
386
fileio.o, which is only built if --disable-debugfs isn't
387
specified to configure).
389
* dirhash.c (ext2fs_dirhash): Change the MD4 hash in a backwards
390
incompatible way so that it is no longer
391
endian-dependent. Add the TEA hash. Allow the seed
392
parameter to be optional.
394
* ext2_fs.h: Remove the HALF_MD4_SEED and HALF_MD4_64 hashes.
395
These features are all now in the HALF_MD4 hash. Add
396
definition for EXT2_HASH_TEA.
398
* ext2fs.h (ext2fs_dirhash): Change function prototype so it takes
399
a pointer instead of an array.
401
2002-08-16 Theodore Ts'o <tytso@mit.edu>
403
* ext2_err.et.in (EXT2_ET_BAD_EA_BLOCK_NUM): New error code
405
* ext2fs.h (ext2fs_inode_data_blocks): New function which returns
406
the number of data blocks used by an inode exclusive of
409
* ext_attr.c (ext2fs_adjust_ea_refcount): New function which
410
adjusts the reference count in an extended attribute block.
412
* valid_blk.c (ext2fs_inode_has_valid_blocks): Add code to
413
correctly deal with extended attribute blocks in symbolic
416
2002-08-13 <tytso@snap.thunk.org>
418
* Makefile.in: Move dupfs.o and test_io.o from the
419
needed-by-debugfs object list to the needed-by-resizer
420
object list. Fixes compile problem if the system is built
421
with only --disable-debugfs.
423
2002-07-29 Theodore Ts'o <tytso@mit.edu>
425
* link.c (ext2fs_link): When adding a new link to a directory,
428
2002-07-23 Theodore Ts'o <tytso@mit.edu>
430
* dirhash.c (ext2fs_dirhash): Fix bug which caused MD4
431
calculations for names > 32 characters to be completely
432
bogus. Changed MD4 calculation to match what is currently
433
being used in the CVS gkernel tree.
435
2002-07-19 Theodore Ts'o <tytso@mit.edu>
437
* ext2_fs.h: Add s_hash_seed and s_def_hash_version to the
438
superblock definition.
440
* badblocks.c, freefs.c, ext2fs.h: Use the badblocks functions to
441
create a set of u32_list functions.
443
* dirhash.c (halfMD4Transform): Shift the hash by one bit,
444
since that's required by the directory indexing code.
446
2002-07-14 Theodore Ts'o <tytso@mit.edu>
448
* ext2fs.h, read_bb_file.c: Change private to priv_data, to avoid
449
using a C++ reserved word.
451
* unix_io.c (unix_open): Only attempt the setrlimit workaround if
452
the kernel version is 2.4.10 -- 2.4.17, since otherwise an
453
old version of glibc (built against 2.2 headers) will
454
interact badly with the workaround to actually cause more
455
problems. I hate it when the glibc folks think they're
456
being smarter than the kernel....
458
2002-06-28 Andreas Dilger <adilger@clusterfs.com>
460
* ext2_fs.h: Add superblock field for reserved group descriptors.
462
2002-06-28 Theodore Ts'o <tytso@mit.edu>
464
* bitops.h: Add #define's for ext2fs_{l,b}e{32,16}_to_cpu and
465
ext2fs_cpu_to_{l,b}e{32,16}
467
2002-06-27 Theodore Ts'o <tytso@mit.edu>
469
* ismounted.c (check_mntent): In AIX 4.3, MOUNTED isn't defined.
470
Add appropriate fallbacks in this case.
472
2002-06-26 Theodore Ts'o <tytso@mit.edu>
474
* dirhash.c (ext2fs_dirhash): Change function signature to support
475
a hash seed, and to return the minor hash (for 64-bit hash
476
support). Add support for the half MD4, half MD4 with
477
seed, and half MD4 with seed and 64 bits.
479
2002-06-15 Theodore Ts'o <tytso@mit.edu>
481
* ext2_fs.h (EXT2_DIRSYNC_FL): Add new file.
483
2002-06-09 Andreas Dilger <adilger@clusterfs.com>
485
* ext2_fs.h: Add macros for maximum block/inode counts:
486
EXT2_INODES_PER_BLOCK, EXT2_MAX_BLOCKS_PER_GROUP,
487
and EXT2_MAX_INODES_PER_GROUP.
489
* openfs.c (ext2fs_open): Check that the number of blocks in a group
490
is less than 2^16, otherwise we need an INCOMPAT flag (not
491
in existence yet, if ever) to open such a filesystem.
493
* initialize.c (ext2fs_initialize): Limit the number of blocks and
494
inodes in a group to less than 2^16.
496
2002-06-09 Andreas Dilger <adilger@clusterfs.com>
498
* ext2_fs.h: Further minor cleanups of the header. Consolidate
499
some checks for __KERNEL__ into one place.
501
2002-05-22 Andreas Dilger <adilger@clusterfs.com>
503
* ext2_fs.h: Remove macros accessing u.ext2_sb field and use
504
the EXT2_SB() macro instead. Remove kernel function
505
prototypes also. This matches the 2.5 kernel, and
506
is also cleaner for other reasons. Whitespace cleanup.
508
2002-05-21 Theodore Ts'o <tytso@mit.edu>
510
* ext2_ext_attr.h: Update to V2 version of the Bestbits format.
512
2002-05-16 Andreas Dilger <adilger@clusterfs.com>
514
* ext2_fs.h: Change limits to support filesystems with 8k blocks.
516
* initialize.c (ext2fs_initialize): Remove assumption that
517
blocksizes are always <= 4k.
519
2002-05-11 Theodore Ts'o <tytso@mit.edu>
521
* bmap.c (ext2fs_bmap): Fix bug which caused ext2fs_bmap to fail
522
silently if inode pointer is NULL (and ext2fs_bmap is
523
expected to read the inode itself).
525
2002-04-27 Theodore Ts'o <tytso@mit.edu>
527
* ismounted.c (check_mntent_file, is_swap_device): Verify that the
528
file we are checking is a block device file before looking
529
at st_rdev, since it's not valid for normal files.
530
(is_swap_device): Move so that it is outside the
531
HAVE_MNTENT_H, so that it is always built.
533
2002-03-11 Theodore Tso <tytso@mit.edu>
535
* dirblock.c (ext2fs_read_dir_block2, ext2fs_write_dir_block): New
536
functions which take an extra flags argument. The flag
537
EXT2_DIRBLOCK_V2_STRUCT will reverse when the name_len
538
field is byte swampped on big-endian machines, since in
539
the V2 structure, name_len is a char field which is
540
doesn't need to be byte swapped --- except if an
541
old-style kernel had byte-swapped the name_len field
542
as part of the V1 structure.
544
* ext2_err.et.in (EXT2_ET_DIRHASH_UNSUPP): New error code
546
* dirhash.c (ext2fs_dirhash): New function which calculates the
547
hash for a filename in an indexed directory.
1
549
2002-03-08 Theodore Tso <tytso@mit.edu>
3
551
* Release of E2fsprogs 1.27