Whamcloud - gitweb
6806b1f0253fcf7770aa29df18b0706c239eddb4
[tools/e2fsprogs.git] / lib / ext2fs / ChangeLog
1 2007-05-18  Theodore Tso  <tytso@mit.edu>
2
3         * openfs.c (ext2fs_open2): Set fs->stride from the superblock's
4                 s_raid_stride value.
5
6         * ext2_fs.h: Allocate space for RAID stride in the superblock.
7
8 2007-05-08  Eric Sandeen <sandeen@redhat.com>
9
10         * ext2_fs.h (inode_uid, inode_gid): The inode_uid() and
11                 inode_gid() macros will automatically add the high bits
12                 when reading uid/gid, on platforms that support it.
13
14 2007-04-19  Theodore Tso  <tytso@mit.edu>
15
16         * ext2_fs.h, swapfs.c (ext2fs_swap_inode_full): Rename the
17                 l_i_reserved1 field to be l_i_version (to be used for the
18                 high 32 bits of the 64-bit inode version number).
19
20 2007-04-18  Theodore Tso  <tytso@mit.edu>
21
22         * getsize.c (ext2fs_get_device_size): Make sure we don't leak a
23                 file descriptor in some error cases.
24
25 2007-04-14  Theodore Tso  <tytso@mit.edu>
26
27         * swapfs.c (ext2fs_swap_inode_full): Fix a problem byte-swapping 
28                 fast symlinks inodes that contain extended attributes.
29                 (Addresses Red Hat Bugzilla #232663, LTC bugzilla #27634)
30
31 2007-04-06  Theodore Tso  <tytso@mit.edu>
32
33         * icount.c (ext2fs_create_icount_tdb): Add support for using TDB
34                 to store the icount data, so we don't run out of memory
35                 when checking really large filesystems.
36
37         * ext2_err.et.in: Add new TDB error codes.
38
39         * icount.c, Makefile.in: Add a regression test suite for the
40                 icount abstraction.
41
42 2007-04-04  Jim Garlick <garlick@llnl.gov>
43
44         * inode.c (ext2fs_write_new_inode): Fix memory leak.
45
46 2007-04-04  Theodore Tso  <tytso@mit.edu>
47
48         * tdb.c, tdb.h, Makefile.in: Add the tdb library from Samba into
49                 ext2fs.
50
51         * tst_types.c: Add #include's to avoid compiler warnings.
52
53 2007-04-02  Theodore Tso  <tytso@mit.edu>
54
55         * icount.c (get_icount_el): Prevent floating point precision
56                 errors on really big filesystems from causing the search
57                 interpolation algorithm loop forever.  (Addresses Debian
58                 Bug: #411838)
59
60 2007-03-21  Theodore Tso  <tytso@mit.edu>
61
62         * imager.c (ext2fs_image_inode_write), inode.c
63                 (ext2fs_write_inode_full): Fix memory leak on error return
64                 (when the inode table is missing).
65
66 2006-11-30  Theodore Tso  <tytso@mit.edu>
67
68         * ext2_fs.h (struct ext4_group_desc): Fix missing bg_pad which
69                 made the structure too small.
70
71 2006-11-14  Theodore Tso  <tytso@mit.edu>
72
73         * namei.c (open_namei): Rename internal variable basename to
74                 base_name to prevent gcc -Wall complaints.
75
76         * kernel-jbd.h (tid_gt, tid_geq): Add function declaration to
77                 avoid gcc -Wall complaints.
78
79         * ext2_ext_attr.h (EXT2_EXT_ATTR_PAD): Make unsigned to fix gcc
80                 -Wall complaints.
81
82         * bitops.h (ext2fs_test_bit): Add missing const to fix gcc -Wall
83                 complaint.
84
85         * ext2fs.h (ext2fs_get_mem, ext2fs_free_mem): Avoid type punning
86                 which causes problems on the ARM processor.  (Addresses
87                 Debian Bug: #397044)
88
89 2006-11-12  Theodore Tso  <tytso@mit.edu>
90
91         * ext2_fs.h (EXT2_FLAG_SOFTSUPP_FEATURES), openfs.c
92                 (ext2fs_open2): Add flag which indicates that it's OK to
93                 open a filesystem which has features which are only
94                 partially supported by e2fsprogs.
95
96         * ext3_extents.h, ext2fs.h: Check in ext4 extent headers into the
97                 source tree, in preparation for adding full extent support.
98
99         * unix_io.c (unix_flush): Allow offsets greater than 2G.
100                 (Addresses SourceForge Bug #1547922)
101
102 2006-11-11  Theodore Tso  <tytso@mit.edu>
103
104         * dirhash.c (str2hashbuf, ext2fs_dirhash): Add support for
105                 calculating the unsigned version of the directory hash.
106
107         * initialize.c (ext2fs_initialize): Set the dirhash
108                 signed/unsigned hint in s_flags.
109
110         * swapfs.c (ext2fs_swap_super): Byte swap the s_flags superblock
111                 field.
112
113         * ext2_fs.h: Define a new superblock field, s_flags, which is used
114                 to store a signed vs. unsigned dirhash hint.  Define new
115                 HTREE hash algorithm numbers to pass to userspace if the
116                 unsigned algorithm are required.
117
118         * swapfs.c (ext2fs_swap_super):
119           ext2_fs.h: Add definition of EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE,
120                 which adds s_min_extra_isize and s_want_extra_isize fields
121                 to superblock, which allow specifying the minimum and 
122                 desired i_extra_isize fields in large inodes 
123                 (for nsec+epoch timestamps, potential other uses).  
124                 Needs RO_COMPAT flag handling, needs e2fsck support, 
125                 patch complete, little testing.
126
127         * swapfs.c (ext2fs_swap_super): 
128           ext2_fs.h: Add definition of EXT4_FEATURE_INCOMPAT_64BIT, 
129                   which adds supports for 64-bit block count fields in the 
130                   superblock (s_blocks_count_hi, s_free_blocks_count_hi),
131                   large group descriptors (s_desc_size), extents with high 
132                   16 bits (ee_start_hi, ei_leaf_hi), inode ACL (i_file_acl_hi)
133
134         * ext2_fs.h: Add definition of EXT4_FEATURE_RO_COMPAT_DIR_NLINK,
135                 which allow directories to have > 65000 subdirectories
136                 (i_nlinks) by setting i_nlinks = 1 for such directories.
137                 RO_COMPAT protects old filesystems from unlinking such
138                 directories incorrectly and losing all files therein.
139         
140         * swapfs.c (ext2fs_swap_group_desc):  
141           ext2_fs.h: Add definition of EXT4_FEATURE_RO_COMPAT_GDT_CSUM,
142                 which adds a crc16 checksum in the group descriptor,
143                 (s_uuid[16] | __u32 group | ext3_group_desc
144                 (excluding gd_checksum itself)).  This allows the kernel
145                 to more safely manage UNINIT groups.  Also adds an 
146                 bg_itable_unsued which indicates how many inodes are 
147                 uninitialized in the block group.
148
149         * swapfs.c (ext2fs_swap_inode_full): 
150           ext2_fs.h: Add definition of EXT4_FEATURE_RO_COMPAT_HUGE_FILE,
151                 which changes i_blocks to be in units of s_blocksize units
152                 instead of 512-byte sectors, use l_i_frag and l_i_fsize as
153                 i_blocks_hi.
154
155 2006-10-02  Eric Sandeen <esandeen@sandeen.net>
156
157         * getsize.c (ext2fs_get_device_size): Check to make sure that the
158                 number of blocks doesn't overflow the retblocks return
159                 parameter for regular files using stat64().
160
161 2006-10-01  Theodore Tso  <tytso@mit.edu>
162
163         * bitops.h (ext2fs_swab32): Only include ext2fs_swab32() if
164                 EXT2FS_ENABLE_SWAPFS is defined.
165
166 2006-08-30  Eric Sandeen <esandeen@redhat.com>
167
168         * initialize.c (ext2fs_initialize): Make sure inode count does
169                 not overflow 32 bits.
170
171 2006-08-30  Eric Sandeen <esandeen@redhat.com>
172
173         * alloc_tables.c (ext2fs_allocate_group_table):
174         * check_desc.c (ext2fs_check_desc):
175                 Use new inlines to calculate group first & last blocks.
176         * ext2fs.h:
177                 Create new inlines to calculate first/last group blocks.
178
179 2006-08-30  Eric Sandeen <esandeen@redhat.com>
180
181         * bmove.c (process_block):
182         * getsize.c (main):
183         * icount.c (ext2fs_create_icount2, insert_icount_el):
184         * tst_badblocks.c (print_list, validate_test_seq, do_test_seq):
185         * tst_badblocks.c (invalid_proc):
186         * tst_getsize.c (main):
187         * tst_iscan.c (check_map):
188         * unix_io.c (raw_read_blk, unix_read_blk):
189         * write_bb_file.c (ext2fs_write_bb_FILE): Fix printf formats.
190
191 2006-08-30  Eric Sandeen <esandeen@redhat.com>
192
193         * closefs.c (write_backup_super):
194         * initialize.c (ext2fs_initialize): Remove unused variables.
195
196 2006-08-30  Eric Sandeen <esandeen@redhat.com>
197
198         * check_desc.c (ext2fs_check_desc): avoid overflows when iterating
199                 over group descriptors on very large filesystems.
200
201 2006-08-30  Theodore Tso  <tytso@mit.edu>
202
203         * bitmaps.c (ext2fs_set_bitmap_padding): Fix potential overflow
204                 problems when the number of blocks is close to 2**31.
205
206         * ext2fs.h (ext2fs_div_ceil): Add new function which safely
207                 calculates an integer division where the result is always
208                 rounded up while avoiding overflow errors.
209
210         * initialize.c (calc_reserved_gdt_blocks, ext2fs_initialize):
211         * openfs.c (ext2fs_open2): Use ext2fs_div_ceil() instead of a 
212                 using an open-coded expression which was subject to 
213                 overflows.
214
215 2006-08-06  Andreas Dilger <adilger@clusterfs.com>
216
217         * bitops.h (ext2fs_cpu_to_le32, ext2fs_le64_to_cpu,
218                 ext2fs_swab64): Add 64-bit byte swapping functions
219
220 2006-08-05  Theodore Tso  <tytso@mit.edu>
221
222         * ext2_fs.h (EXT4_EXTENTS_FL): Rename EXT3_EXTENTS_FL to
223                 EXT4_EXTENTS_FL, and add EXT4_EXTENTS_FL to user visible
224                 flags list.
225
226 2006-07-15  Theodore Tso  <tytso@mit.edu>
227
228         * ext2fs.h: Remove unneeded #ifdef since EXT2_DYNAMIC_REV is
229                 always defined in the e2fsprogs-provided ext2_fs.h
230
231 2006-05-21  Theodore Tso  <tytso@mit.edu>
232
233         * openfs.c (ext2fs_open2): Fix type warning problem with sizeof()
234
235 2006-05-12  Theodore Tso  <tytso@mit.edu>
236
237         * alloc_tables.c (ext2fs_allocate_group_table): When allocating
238                 space for the RAID filesystems with the stride parameter,
239                 place each portion of the group's inode table right up
240                 after the superblock (if present) in order to minimize
241                 fragmentation of the freespace.
242
243 2006-05-08  Theodore Tso  <tytso@mit.edu>
244
245         * rw_bitmaps.c (write_bitmaps, read_bitmaps): Added support for
246                 lazy blockgroups.  If a block group has flags indicating
247                 that its block or inode data structures have not been
248                 initialized, skip reading or writing that portion of the
249                 bitmap.
250
251         * inode.c (ext2fs_open_inode_scan, ext2fs_read_inode_full): When
252                 scanning a filesystem with lazy blockgroups, skip
253                 uninitialized portions of the inode table when iterating
254                 over the block group.
255
256         * swapfs.c (ext2fs_swap_group_desc): Byte swap the bg_flags field.
257
258         * ext2fs.h: Define the a new internal flag, EXT2_SF_DO_LAZY, so
259                 that the inode interator knows compat_lazy_bg feature is
260                 enabled.  Declare that this version of e2fsprogs supports
261                 the EXT2_FEATURE_COMPAY_LAZY_BG feature.
262
263         * ext2_fs.h (struct ext2_group_desc): Use the bg_pad field for
264                 bg_flags, and define the flags EXT2_BG_INODE_UNINIT and
265                 EXT2_BG_BLOCK_UNINIT.  These flags are only honored if
266                 EXT2_FEATURE_COMPAT_LAZY_BG feature is enabled (also
267                 added).
268
269 2006-04-23  Theodore Ts'o  <tytso@mit.edu>
270
271         * rw_bitmaps.c (write_bitmaps, ext2fs_write_inode_bitmap,
272                 ext2fs_write_block_bitmap, ext2fs_write_bitmaps): Reduce
273                 disk seeks by writing the inode and block bitmaps in an
274                 interleaved fashion.
275
276 2006-04-09  Theodore Ts'o  <tytso@mit.edu>
277
278         * ext2_types.h.in, Makefile.in, tst_types.c: Use the asm_types.h
279                 file to define the __[us]{8,16,32,64} types.  Add a
280                 tst_types program to make sure the types are correct.
281
282 2006-04-04  Theodore Ts'o  <tytso@mit.edu>
283
284         * mkjournal.c (ext2fs_add_journal_inode): If the filesystem is
285                 opened in exclusive mode, then device will be busy by
286                 definition, so don't return -EBUSY.  This caused mke2fs -j
287                 to fail on the 1.39-WIP (29-Mar-2006) release.  (Addresses
288                 Debian Bug: #360652)
289
290 2006-03-29  Theodore Ts'o  <tytso@mit.edu>
291
292         * bitops.h (ext2fs_set_bit, ext2fs_clear_bit): Fix the constraints
293                 so that GCC knows that the ext2fs_set/clear_bit reads and
294                 writes the data.
295
296 2006-03-25  Theodore Ts'o  <tytso@mit.edu>
297
298         * Makefile.in: Check the bitfield operations much more carefully,
299                 and arrange to have tst_bitops run from "make check"
300
301         * tst_bitops.c: Enahce tst_bitops program so that it is much more
302                 thorough in testing bit optations.
303         
304         * bitops.h: Add new functions ext2fs_fast_set_bit() and
305                 ext2fs_fast_clear_bit() and make the x86 functions 32-bit
306                 clear.  Change the fast inode and block mark/unmark
307                 functions to use ext2fs_fast_set/get_bit()
308
309 2006-03-18  Theodore Ts'o  <tytso@mit.edu>
310
311         * ext2fs.h (EXT2_FLAG_EXCLUSIVE): Define new flag which requests
312                 that the io_channel be opened in exclusive mode.
313
314         * openfs.c (ext2fs_open2), initialize.c (ext2fs_initialize): If
315                 EXT2_FLAG_EXCLUSIVE is passed to ext2fs_open or
316                 ext2fs_initialize, then pass IO_FLAG_EXCLUSIVE to the
317                 io_channel open routine.
318
319         * ext2_io.h (IO_FLAG_EXCLUSIVE), unix_io.c (unix_open): Add new
320                 io_channel open flag, IO_FLAG_EXCLUSIVE, which requests
321                 that the device be opened in exclusive (O_EXCL) mode.
322
323         * ext2fs.h: Fix documentation so that BLOCK_FLAG_TRAVERSE is
324                 BLOCK_FLAG_DEPTH_TRAVERSE.  (Addresses Debian Bug #351268)
325
326 2006-03-17  Theodore Ts'o  <tytso@mit.edu>
327
328         * initialize.c (calc_reserved_gdt_blocks): Fix a signed vs
329                 unsigned problem which caused mke2fs -O resize_inode to
330                 bomb out on large filesystems.  (Addresses Debian Bug
331                 #346580)
332
333         * ext2_fs.h (EXT2_IOC_GETVERSION_NEW, EXT2_IOC_SETVERSION_NEW,
334                 EXT2_IOC_GROUP_EXTEND, EXT2_IOC_GROUP_ADD): Add ioctl
335                 definitions
336
337 2005-12-10  Theodore Ts'o  <tytso@mit.edu>
338
339         * Makefile.in: Add a dependency to make sure that the
340                 subdirectories are created before creating all of the
341                 object files.
342
343 2005-12-10  Theodore Ts'o  <tytso@mit.edu>
344
345         * res_gdt.c (ext2fs_create_resize_inode): Fix type-punning warning.
346
347         * read_bb_file.c (ext2fs_read_bb_FILE): Use a data structure
348                 instead of stuffing a function pointer dirctly into a void
349                 pointer, since that isn't portable.
350
351         * mkjournal.c (ext2fs_add_journal_inode): Fix possiblely
352                 uninitialized use of variable warning.
353
354         * initialize.c (calc_reserved_gdt_blocks): Fix signed vs. unsigned
355                 type complaint.
356
357         * ext2fs.h: Make the type of the 'now' field to be time_t to avoid
358                 gcc -Wall complaints.
359
360         * bitops.h (ext2fs_find_first_bit_set): Fix signed vs unsigned
361                 type error.
362
363         * tst_badblocks.c (file_test_invalid): Add test which confirms
364                 proper detection of invalid block numbers in
365                 ext2fs_read_bb_FILE().
366
367 2005-11-20  Theodore Ts'o  <tytso@mit.edu>
368
369         * bitops.h: We no longer have the sparc assembly code in the
370                 header file any more, so we shouldn't set
371                 _EXT2_HAVE_AS_BITOPS_.  This would break compiles on the
372                 sparc architectures when using gcc.
373         
374 2005-11-13  Theodore Ts'o  <tytso@mit.edu>
375
376         * ext2fs.h: Add #include <string.h> since the inline functions use
377                 memcpy().  (Addresses Sourceforge Bug #1251062)
378
379 2005-11-09  Theodore Ts'o  <tytso@mit.edu>
380
381         * Fix a bug when writing an external journal device on an big
382                 endian machine (such as a S/390), where when the number of
383                 block groups is zero, we never end up writing out the
384                 primary superblock at all.
385
386 2005-09-24  Theodore Ts'o  <tytso@mit.edu>
387
388         * ext2fs.h, bb_inode.c, closefs.c, initialize.c, mkdir.c,
389                 mkjournal.c, res_gdt.c:  If fs->now is non-zero, use that
390                 as the time instead of the system time when setting
391                 various filesystem fields (last modified time, last write
392                 time, etc.)
393
394 2005-08-28  Matthias Andree <matthias.andree@gmx.de>
395
396         * Fix compiler warnings about missing memcpy prototypes.
397
398 2005-07-25  Theodore Ts'o  <tytso@mit.edu>
399
400         * test_io.c (safe_getenv): Pass in zero to the unusued arguments
401                 of prctl(PR_GET_DUMPABLE) to avoid false positives from
402                 valgrind.
403
404 2005-07-19  Theodore Ts'o  <tytso@mit.edu>
405
406         * mkjournal.c (ext2fs_add_journal_inode): Check for the case where
407                 the filesystem is apparently not mounted, but the device
408                 is still busy.  This can happen when the luser doesn't
409                 bother to mount /proc and has a bogus /etc/mtab, but still
410                 wants to mount the filesystem before using tune2fs(?!?).
411                 Add a safety check to save him from his own stupidity, at
412                 least on 2.6 kernels.  (Addresses Debian Bug #319002)
413
414 2005-07-09  Andreas Dilger <adilger@clusterfs.com>
415
416         * getsize.c (ext2fs_get_device_size): Use fstat/fstat64 to get
417                 size of regular files.  Fix file descriptor leaks in error
418                 paths.
419
420 2006-06-30  Theodore Ts'o  <tytso@mit.edu>
421
422         * Release of E2fsprogs 1.38
423
424 2005-06-30  Theodore Ts'o  <tytso@mit.edu>
425
426         * bitops.h, bitops.c (ext2fs_set_bit, ext2fs_clear_bit,
427                 ext2fs_test_bit): Change these function prototypes to be
428                 unsigned int's.  Negative bit numbers were never allowed
429                 (and never made any sense), so this should be a safe
430                 change.  This is needed to allow safe use of block numbers
431                 greater than or equal to 2**31.
432
433 2005-06-27  Stephen Tweedie  <sct@redhat.com>
434
435         * ext2fs.h (ext2fs_resize_mem): Fix C99 strict type aliasing
436                 problems.  Addresses Red Hat Bugzilla #161183.
437
438 2005-06-19  Theodore Ts'o  <tytso@mit.edu>
439
440         * getsectsize.c (BLKSSZGET): Clean up test for when to manually
441                 define the BLKSSZGET ioctl.
442
443 2005-05-29  Theodore Ts'o  <tytso@mit.edu>
444
445         * ismounted.c (ext2fs_check_mount_point): Add test to see if the
446                 device appears to be busy; this only works on Linux 2.6+
447                 systems, but provides some additional bullet-proofing in
448                 those cases.
449
450 2005-05-08  Theodore Ts'o  <tytso@mit.edu>
451
452         * test_io.c (safe_getenv): Fix bug so it would fetch the right
453                 environment variable.
454
455 2005-04-09  Theodore Ts'o  <tytso@mit.edu>
456
457         * inode.c (ext2fs_write_new_inode), 
458                 ind_block.c (ext2fs_read_ind_block): Add missing return
459                 value in error return case.  (Otherwise we return garbage
460                 instead of the error code.)
461
462 2005-03-31  Theodore Ts'o  <tytso@mit.edu>
463
464         * test_io.c (test_open): If called by a setuid/setgid or an
465                 otherwise privileged program, be paranoid and ignore the
466                 TEST_IO_* environment variables.
467
468 2005-03-21  Theodore Ts'o  <tytso@mit.edu>
469
470         * Release of E2fsprogs 1.37
471
472 2005-03-21  Theodore Ts'o  <tytso@mit.edu>
473
474         * ext2_ext_attr.h (EXT2_XATTR_LEN, EXT2_XATTR_SIZE): Add new
475                 convenience cpp macros.
476
477 2005-03-20  Theodore Ts'o  <tytso@mit.edu>
478
479         * mkdir.c (ext2fs_mkdir): Call ext2fs_write_new_inode() instead of
480                 ext2fs_write_inode().
481
482         * inode.c (ext2fs_write_new_inode): New function which should be
483                 used when the caller is writing an inode for the first
484                 time.  It makes sure that the extra portion of the large
485                 inode is initialized properly.
486
487 2005-03-18  Theodore Ts'o  <tytso@mit.edu>
488
489         * Makefile.in: Fix clean target to remove tst_getsectsize.
490
491         * getsize.c (ext2fs_get_device_size): Check to see if the number
492                 of blocks is greater than 2**32 when we are doing a binary
493                 search to determine the device size.  Thanks to Stephen
494                 Tweedie for the patch.
495         
496 2006-02-05  Theodore Ts'o  <tytso@mit.edu>
497
498         * Release of E2fsprogs 1.36
499
500 2005-02-05  Theodore Ts'o  <tytso@mit.edu>
501
502         * Makefile.in: Remove ext2fs.pc on a "make distclean"
503
504 2005-02-04  Theodore Ts'o  <tytso@mit.edu>
505
506         * Makefile.in (clean): Remove tst_getsize when doing a make clean
507
508 2005-02-03  Theodore Ts'o  <tytso@mit.edu>
509
510         * bitops.c: Make the generic functions more efficient.
511
512         * bitops.h: Drop SPARC assembly code. It's less efficient than GCC
513                 3.4 compiled code and also triggers nasty compiler
514                 warnings on sparc64.  Thanks to Matthias Andree for his
515                 analysis and suggestion.
516         
517 2005-01-27  Theodore Ts'o  <tytso@mit.edu>
518
519         * res_gdt.c (ext2fs_create_resize_inode): Create the resize inode
520                 even if s_reserved_gdt_blocks is zero.
521
522 2005-01-26  Theodore Ts'o  <tytso@mit.edu>
523
524         * ext2fs.pc.in: Add pkg-config files.
525
526 2005-01-25  Theodore Ts'o  <tytso@mit.edu>
527
528         * ext2fs.h: Add definition of struct ext2_inode_large
529
530         * ext2_fs.h: Add new function prototypes
531
532         * ext_attr.c (ext2fs_read_ext_attr, ext2fs_write_ext_attr): The
533                 ext2fs_swap_ext_attr() has been moved to swapfs.c, and
534                 given a new argument, has_header.
535
536         * swapfs.c (ext2fs_swap_ext_attr): Moved from ext_attr.c, and
537                 takes an argument which controls whether or not there is
538                 an EA header which needs to be byteswaped.
539                 (ext2fs_swap_inode_full): New function which byte-swaps
540                 the EA in inode.
541
542         * inode.c (ext2fs_get_next_inode_full, ext2fs_read_inode_full,
543                 ext2fs_write_inode_full): New functions, originally from
544                 Alex Tomas, but which needed to be substantially fixed so
545                 that the tests wouldn't cause major stack overwrite bugs
546                 in byte-swapping is enabled.
547         
548 2005-01-18  Theodore Ts'o  <tytso@mit.edu>
549
550         * Makefile.in: Fix the kernel compile-time echo commands to be
551                 consistent and portable
552
553 2005-01-07  Theodore Ts'o  <tytso@mit.edu>
554
555         * unlink.c (ext2fs_unlink): If both the name and the inode number
556                 are unspecified, then return an error, so that we don't do
557                 something surprising such as unconditionally deleting the
558                 first directory entry.
559                 (unlink_proc): Delete directory entries by coalescing it
560                 with the previous entry, to avoid directory fragmentation.
561
562 2005-01-06  Theodore Ts'o  <tytso@mit.edu>
563
564         * version.c (ext2fs_parse_version_string): Change parsing
565                 algorithm so that version strings such as 1.36-rc1 returns
566                 a non-surprising result (i.e., 136, and not 1361).
567
568 2005-01-05  Theodore Ts'o  <tytso@mit.edu>
569
570         * block.c (block_iterate_ind, block_iterate_dind,
571                 block_iterate_tind): Move the code which byte swaps and
572                 read/writes indirect blocks to ext2fs_{read,write}_ind_block.
573                 This saves 400 bytes, and we need them for the
574                 resize_inode handling. 
575
576         * ind_block.c (ext2fs_read_ind_block, ext2fs_write_ind_block): New
577                 functions.
578
579         * res_gdt.c (ext2fs_create_resize_inode): Use 
580                 ext2fs_{read,write}_ind_block so that byte swapping is
581                 handled on big-endian systems.
582
583         * dupfs.c (ext2fs_dup_handle): Make sure the new filesystem handle
584                 has its own copy of the orig_super data structure.  (This
585                 is a better way of fixing a double-free problem in
586                 resize2fs which Fedora attempted to fix in 
587                 e2fsprogs-1.35-double_free.patch.   Addresses Red Hat
588                 Bugzilla #132707.)
589         
590 2004-12-23  Theodore Ts'o  <tytso@mit.edu>
591
592         * inode.c (ext2fs_flush_icache): When flushing the icache, clear
593                 the last-read block information as well.
594
595         * ext2fs.h (BMAP_SET), bmap.c (ext2fs_bmap): Add support for new
596                 flag, BMAP_SET, which allows the caller to set a
597                 particular logical->physical block mapping.
598
599         * ext2_err.et.in (EXT2_ET_SET_BMAP_NO_IND): New error code
600
601         * initialize.c (calc_reserved_gdt_blocks): #ifdef out all
602                 debugging printf statements.
603         
604         * res_gdt.c (ext2fs_create_resize_inode): Return
605                 EXT2_ET_RESIZE_INODE_CORRUPT if the resize inode is not
606                 what we expect.  #ifdef out all debugging printf
607                 statements.
608
609         * ext2_err.et.in (EXT2_ET_RESIZE_INODE_CORRUPT): Add new error code.
610
611 2004-12-22  Theodore Ts'o  <tytso@mit.edu>
612
613         * swapfs.c (ext2fs_swap_super): Byteswap the reserved_gdt_blocks
614                 superblocks field.
615
616 2004-12-15  Theodore Ts'o  <tytso@mit.edu>
617
618         * sparse.c (ext2fs_list_backups, ext2fs_bg_has_super),
619                 res_gdt.c (list_backups), closefs.c (ext2fs_bg_has_super),
620                 ext2fs.h: Move ext2fs_list_backups() to res_gdt.c, and
621                 ext2fs_bg_has_super() back to closefs.c.  There's no
622                 reason for the new file, since list_backups() isn't being
623                 used by any other functions, and can be made static, and
624                 all users of the ext2fs filesystem will have to call
625                 ext2fs_close() anyway.
626
627 2004-12-15  Theodore Ts'o  <tytso@mit.edu>
628
629         * Applied resize inode patch from Andreas Dilger
630
631         * res_gdt.c (ext2fs_create_resize_inode): New function that
632                 creates the resize inode.
633
634         * initialize.c (ext2fs_initialize): Reserve space for the resize
635                 inode.
636
637         * ext2fs.h (EXT2_LIB_FEATURE_COMPAT_SUPP): Add
638                 EXT2_FEATURE_COMPAT_RESIZE_INODE to the list of supported
639                 capabilities.
640                 Add function prototypes for res_gdt.c and sparse.c.
641
642         * closefs.c (ext2fs_super_and_bgd_loc): Take the reserved blocks
643                 into account when calculating the number of overhead
644                 blocks.
645
646         * closefs.c (ext2fs_bg_has_super, test_root), sparse.c: Move these
647                 functions to the new file sparse.c
648
649         * alloc_sb.c (ext2fs_reserve_super_and_bgd): Reserve the blocks
650                 saved in the resize inode as being in use.
651
652         * ext2_err.et.in (EXT2_ET_RES_GDT_BLOCKS): Add new error code.
653
654         * Makefile.in (srcdir): Add res_gdt.c and sparse.c to the ext2fs
655                 library.
656
657 2004-12-14  Theodore Ts'o  <tytso@mit.edu>
658
659         * Makefile.in: Use Linux-kernel-style makefile output for "make
660                 install"
661
662         * Makefile.in (installdirs): Use $(MKINSTALLDIRS) macro
663                 Update dependencies.
664
665 2004-11-30  Theodore Ts'o  <tytso@mit.edu>
666
667         * unix_io.c (unix_set_option): Add support for the offset option.
668
669         * test_io.c (test_set_option): Add support for the set_option method.
670
671         * ext2_io.h: Add new io_channel method, set_option(), and change
672                 io_channel_write_byte() from a macro to a library function.
673
674         * ext2fs.h, openfs.c(ext2fs_open2): New version of ext2fs_open
675                 which adds a new parameter, io_options.
676                 (ext2fs_open): If there is a question mark in the
677                 filename, and no io_options are specified, assumed that
678                 the text following the question mark are io_options.
679         
680         * io_manager.c, Makefile.in: New source file which contains
681                 high-level functions for the io_channel layer.
682
683         * freefs.c (ext2fs_free): Make sure we don't free the io_channel
684                 if image_io is NULL.
685
686         * Makefile.in: Use Linux-kernel-style makefile output to make it
687                 easier to see errors/warnings.
688
689 2004-11-29  Theodore Ts'o  <tytso@mit.edu>
690
691         * ext2_fs.h (EXT2_EXTENTS_FL, EXT3_FEATURE_INCOMPAT_EXTENTS, 
692                 EXT2_MAX_BLOCK_LOG_SIZE): Add definition for extent
693                 feature and inode flag.  Change maximum allowable block
694                 size to be 65536.
695
696 2004-10-08  Theodore Ts'o  <tytso@mit.edu>
697
698         * getsize.c (ext2fs_get_device_size): Add support for Windows
699                 9x/NT under Cygwin.  Thanks to Sam Robb
700                 (samrobb@users.sourceforge.net) for pointing this and the
701                 suggested code patch.
702
703 2004-09-17  Theodore Ts'o  <tytso@mit.edu>
704
705         * getsize.c: Clean up header #include's.
706
707         * llseek.c (ext2fs_llseek): On non-linux systems, use lseek64() if
708                 it is present.  (Addresses Debian bug #269044)
709
710 2004-07-28  Theodore Ts'o  <tytso@mit.edu>
711
712         * rw_bitmaps.c (read_bitmaps), block.c (block_iterate_ind,
713                 block_iterate_dind, block_iterate_tind), inode.c
714                 (ext2fs_read_inode): If EXT2_FLAG_IMAGE_FILE is set, so
715                 read the metadata from fs->image_io instead of fs->io.
716
717         * initialize.c (ext2fs_initialize), openfs.c (ext2fs_open):
718                 Initialize fs->image_io to be the same as fs->io.
719         
720         * ext2_err.et.in (EXT2_ET_NOT_IMAGE_FILE): Add new error code. 
721
722         * openfs.c (ext2fs_get_data_io, ext2fs_set_data_io,
723                 ext2fs_rewrite_to_io): New functions that allow
724                 applications to manipulate fs->image_io and fs->io safely.
725
726         * freefs.c (ext2fs_free): If fs->image_io is different fs->io,
727                 then call io_channel_close on fs->image_io.
728
729         * ext2fs.h: Add image_io element to the ext2_filsys data
730                 structure.  Add ext2fs_get_data_io() ext2fs_set_data_io(),
731                 and ext2fs_rewrite_to_io() prototypes.
732
733 2004-05-26  Theodore Ts'o  <tytso@mit.edu>
734
735         * closefs.c (ext2fs_flush): Make sure the master superblock is
736                 written last, and only after other I/O has been flushed to
737                 disk.  Thanks to Junfeng Yang from the Stanford
738                 Metacompilation group for pointing a potential ordering
739                 constraint problem if we don't write things out in the
740                 right order.
741
742         * test_io.c: Implement the ability to abort after n reads or
743                 writes to a particular block.  The block is specified by
744                 TEST_IO_BLOCK environment variable, and the read/write
745                 count by the TEST_IO_READ_ABORT and TEST_IO_WRITE_ABORT
746                 environment variables.  The block data is now only dumped
747                 if the 0x10 bit is set in TEST_IO_FLAGS.
748
749 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
750
751         * ext2_types.h.in: Remove check for _UUID_TYPES since uuid_types.h
752                 is no longer used.
753
754 2004-03-08  Theodore Ts'o  <tytso@mit.edu>
755
756         * getsize.c (ext2fs_get_device_size): Only use the BLKGETSIZE64
757                 ioctl on Linux 2.6 since it is unreliable in Linux 2.4.
758                 (Addresses Debian Bug #236528).  Fix typo in the ioctl
759                 used for Mac OS X.
760
761 2004-03-02  Theodore Ts'o  <tytso@mit.edu>
762
763         * getsize.c (ext2fs_get_device_size): Update getsize functions to
764                 use Apple Darwin and Linux 64-bit ioctl's
765
766 2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
767
768         * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
769                 -fpic or -fPIC
770
771 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
772
773         * Release of E2fsprogs 1.35
774
775 2004-02-21  Theodore Ts'o  <tytso@mit.edu>
776
777         * ext2fs.h (ext2fs_resize_mem): Fix C++ problem.  (Addresses Red
778                 Hat Bugzilla #112448; thanks Thomas Woerner from Red Hat.)
779
780 2004-02-14  Theodore Ts'o  <tytso@mit.edu>
781
782         * namei.c (follow_link): Correctly deal with symlinks that have
783                 extended attribute information.  (Addresses Debian Bug
784                 #232328)
785
786 2004-01-30  Theodore Ts'o  <tytso@mit.edu>
787
788         * ext2_fs.h: Reserve an extra 4 bytes for the journal backup,
789                 which we're using due to a typo in the e2fsck code.  (Oops)
790
791         * swapfs.c (ext2fs_swap_inode): Fix byte swap bug which causes SE
792                 Linux created symlinks with mandatory attributes to fail
793                 to be properly handled on big endian systems.  (Addresses
794                 Debian Bug #228723).
795                 (ext2fs_swap_super): Byte swap some new fields in the
796                 superblock, including the journal backup fields.
797
798 2003-12-02  Theodore Ts'o  <tytso@mit.edu>
799
800         * alloc.c, bb_inode.c, bitops.c, block.c, check_desc.c, closefs.c,
801                 dir_iterate.c, dirblock.c, expanddir.c, ext2fs.h,
802                 get_pathname.c, icount.c, imager.c, initalize.c, inode.c,
803                 lookup.c, openfs.c, read_bb.c, read_bb_file.c,
804                 rw_bitmaps.c, unix_io.c, unlink.c, write_bb_file.c: Fix
805                 gcc -Wall complaints.  Mainly marking variables as being
806                 unsued, and catching signed vs. unsigned comparisons.
807
808 2003-09-03  Theodore Ts'o  <tytso@mit.edu>
809
810         * closefs.c (ext2fs_super_and_bgd_loc): New function which
811                 centralizes the calculation of the superblock and block
812                 group descriptors.
813                 (ext2fs_flush): Use ext2fs_super_and_bgd_lock to figure
814                 out where to write the superblock and block group
815                 descriptors.
816
817         * alloc_sb.c (ext2fs_reserve_super_and_bgd): New function which
818                 reserves space in the block bitmap using
819                 ext2fs_super_and_bgd_loc.
820
821         * initialize.c (ext2fs_initialize): Use
822                 ext2fs_reserve_super_and_bgd to initialize the block bitmap.
823
824 2003-08-20  Theodore Ts'o  <tytso@mit.edu>
825
826         * inode_io.c (ext2fs_inode_io_intern2), ext2fs.h: Add new function
827                 allows the caller to pass in the inode data structure.
828
829         * fileio.c (ext2fs_file_open2), ext2fs.h: Add new function which
830                 allows the caller to pass in the inode to be used in the
831                 file I/O.
832
833         * ext2_fs.h: Add a backup of the location of the journal inode
834                 blocks to the superblock.
835
836         * mkjournal.c (write_journal_inode): Save the location of the
837                 journal inode to the backup location in the superblock.
838
839 2003-08-01  Philipp Thomas <pthomas@suse.de>
840
841         * alloc.c, badblocks.c, bb_inode.c, bitmaps.c, block.c, bmap.c,
842                 bmove.c, brel_ma.c, closefs.c, dblist.c, dblist_dir.c,
843                 dir_iterate.c, dirblock.c, dupfs.c, expanddir.c, ext2fs.h,
844                 ext_attr.c, fileio.c, freefs.c, get_pathname.c, icount.c,
845                 initialize.c, inode.c, inode_io.c, irel_ma.c, mkdir.c,
846                 mkjournal.c, namei.c, newdir.c, openfs.c, rs_bitmap.c,
847                 rw_bitmaps.c, test_io.c, unix_io.c: ext2fs_getmem(),
848                 ext2fs_free_mem(), and ext2fs_resize_mem() all now take a
849                 'void *' instead of a 'void **' in order to avoid pointer
850                 aliasing problems with GCC 3.x.
851
852 2003-07-25  Theodore Ts'o  <tytso@mit.edu>
853
854         * Release of E2fsprogs 1.34
855
856 2003-07-06  Theodore Ts'o  <tytso@mit.edu>
857
858         * kernel-jbd.h, flushb.c: Fix gcc -Wall nitpicks (indented cpp
859                 directives)
860
861         * ext2_types.h.in, initialize.c: Fix gcc -Wall nitpicks 
862                 (don't use #elsif)
863
864         * ismounted.c: Fix gcc -Wall nitpicks (Don't use exit as a goto label)
865
866         * llseek.c: Fix gcc -Wall nitpicks (don't use #elsif)
867
868         * lookup.c, read_bb.c: Fix gcc -Wall nitpicks (indent
869                 non-traditional #pragma)
870
871         * test_io.c: Fix gcc -Wall nitpicks (const/unsigned type issues)
872
873 2003-06-24    <tytso@snap.thunk.org>
874
875         * badblocks.c, ext2fs.h (ext2fs_u32_list_find,
876                 ext2fs_u32_list_test, ext2fs_u32_list_del,
877                 ext2fs_badblocks_list_del): Add functions to delete a
878                 block from the badblocks list.
879         * tst_badblocks.c: Add test cases for ext2fs_badblocks_list_del().
880
881 2003-05-21  Theodore Ts'o  <tytso@mit.edu>
882
883         * getsectsize.c (ext2fs_get_device_sectsize): New function which
884                 returns the hardware sector size (if it is available).
885
886 2003-05-13  Theodore Ts'o  <tytso@mit.edu>
887
888         * unix_io.c: Add #ifdef NO_IO_CACHE which disables all userspace
889                 caching by the unix_io layer.  Not enabled, only for
890                 debugging. 
891
892 2003-05-05  Theodore Ts'o  <tytso@mit.edu>
893
894         * test_io.c: Pay attention to the environment variables
895                 TEST_IO_LOGFILE, TEST_IO_FLAGS, and TEST_IO_BLOCK to
896                 determine whether or not we should log io activity, and to
897                 where.
898
899 2003-05-03  Theodore Ts'o  <tytso@mit.edu>
900
901         * tst_badblocks.c (file_test): Use tmpfile() instead of mktemp().
902
903 2003-04-29  Theodore Ts'o  <tytso@mit.edu>
904
905         * getsize.c (ext2fs_get_device_size): Allow windows code to get
906                 the resize for filesystems that are in regular files.
907
908 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
909
910         * Release of E2fsprogs 1.33
911
912 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
913
914         * Makefile.in: Use DYLD_LIBRAY_PATH so that "make check" works on
915                 Darwin systems when building with shared libraries.
916
917 2003-04-18  Theodore Ts'o  <tytso@mit.edu>
918
919         * unix_io.c: Use __CYGWIN__ instead of CYGWIN.
920
921 2003-04-17  Theodore Ts'o  <tytso@mit.edu>
922
923         * getsize.c: Add Cygwin/Windows version of ext2fs_get_device_size()
924
925 2003-04-12  Theodore Ts'o  <tytso@mit.edu>
926
927         * unix_io.c (raw_read_blk): Add Cygwin support (the Windows block
928                 device only accepts sector aligned read requests.
929
930         * ismounted.c (check_mntent_file): Deal with OS's that don't
931                 define MNTOPT_RO.
932
933         * imager.c: If the OS doesn't define ssize_t, typedef it to int.
934
935 2003-04-11  Theodore Ts'o  <tytso@mit.edu>
936
937         * ext2_fs.h (EXT2_FEATURE_RO_COMPAT_BTREE_DIR): Comment out unused
938                 feature flag
939
940 2003-03-30  Theodore Ts'o  <tytso@mit.edu>
941
942         * Makefile.in: Use the compile_et --build-tree option.
943
944 2003-03-14  Theodore Ts'o  <tytso@mit.edu>
945
946         * getsize.c: Add support for Apple Darwin's ioctl to get the hard
947                 disk size.
948
949         * badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function
950                 which returns the number of entries in the list.
951
952 2003-03-10  Theodore Ts'o  <tytso@mit.edu>
953
954         * fileio.c (ext2fs_file_lseek): Fix bug added when adding 64-bit
955                 support; avoid null dereference when ret_pos is NULL.
956
957 2003-03-06  Theodore Tso  <tytso@mit.edu>
958
959         * ext2_types.h.in: Don't redefine types if other e2fsprogs
960                 *_types.h files have been included already.
961
962         * kernel-jbd.h: Use C99 variadic cpp macros if not using GCC.
963                 (Older GCC's don't support the C99 variadic macros.)
964
965         * flushb.c (ext2fs_sync_device), 
966         ismounted.c (ext2fs_check_mount_point): Avoid GCC extension: 
967         #warning not supported by Solaris suncc
968
969         * ext2_ext_attr.h: Avoid GCC extension: 0 length arrays in
970                 structure definition.  Not needed for now in 
971                 ext2_ext_attr_entry.
972
973 2003-01-25  Theodore Ts'o  <tytso@mit.edu>
974
975         * dirhash.c: Fix gcc -Wall nits.
976
977 2003-01-22  Theodore Ts'o  <tytso@mit.edu>
978
979         * unix_io.c (unix_write_blk): Fix up GCC -Wall nits.
980
981 2003-01-21  Theodore Ts'o  <tytso@mit.edu>
982
983         * fileio.c (ext2fs_file_read, ext2_file_lseek,
984                 ext2_file_get_size): Add 64-bit support.
985
986         * ext2fs.h (EXT2_I_SIZE): Add macro which caluates a 64bit size
987                 from i_size and i_size_high.
988
989 2003-01-19  Theodore Ts'o  <tytso@mit.edu>
990
991         * initialize.c (ext2fs_initialize): If the user specifies a really
992                 large number of inodes, then reduce the number of blocks
993                 per group until we find a workable set of filesystem
994                 parameters.
995
996         * ext2_err.et.in (EXT2_ET_TOO_MANY_INODES): Add new error code.
997
998 2002-11-09  Theodore Ts'o  <tytso@mit.edu>
999
1000         * Release of E2fsprogs 1.32
1001
1002 2002-11-09  Theodore Ts'o  <tytso@mit.edu>
1003
1004         * unix_io.c (find_cached_block, reuse_cache, unix_read_blk, 
1005                 unix_write_blk): Optimize routines so that we don't end up
1006                 searching the cache twice when a block isn't in the
1007                 cache.  If reads are larger than READ_DIRECT_SIZE, don't
1008                 let them go through the cache.
1009
1010         * unix_io.c (find_cached_block): Fixed bug which caused some clean
1011                 blocks to be erroneously marked as dirty, so they would
1012                 get written back to the disk before they are evicted from
1013                 the cache.  Harmless, but it slows down e2fsck
1014                 significantly.
1015
1016 2002-11-08  Theodore Ts'o  <tytso@mit.edu>
1017
1018         * Release of E2fsprogs 1.31
1019
1020 2002-11-08    <tytso@snap.thunk.org>
1021
1022         * Makefile.in (check): Skip trying to compile test_byteswap
1023                 if --disable-byteswaap had been given to configure.
1024
1025 2002-11-07    <tytso@snap.thunk.org>
1026
1027         * closefs.c (write_bgdesc, ext2fs_flush): Fix bug in meta_bg
1028                 support when the MASTER_SB_ONLY flag is set.  Some of
1029                 the descriptor blocks that should have been written out
1030                 were getting skipped.
1031
1032 2002-10-31  Theodore Ts'o  <tytso@mit.edu>
1033
1034         * Release of E2fsprogs 1.30
1035
1036 2002-10-31  Theodore Ts'o  <tytso@mit.edu>
1037
1038         * ext2_fs.h: Add support for a new inode flag, which is to be used
1039                 for indicating the top of directory hierarchies for the
1040                 Orlov block allocator.
1041         
1042         * ismounted.c (check_mntent, check_mntent_file): Add better
1043                 support for loopback-mounted filesystems.  Check /etc/mtab
1044                 if /proc/mounts doesn't turn up any mount flags, since
1045                 /etc/mtab has the loopback image filename, instead of
1046                 /dev/loop0.  Also, check based on st_dev and st_ino, so
1047                 that if a relative pathname or a pathnames using symbolic
1048                 links are used, we can detect the the filesystem correctly
1049                 in those cases.  (Addresses Sourceforge bug #619119)
1050
1051         * flushb.c (ext2fs_sync_device): If the BLKFLSBUF ioctl succeeds,
1052                 don't try the FDFLUSH ioctl that was required for floppies
1053                 with older kernels.  This avoids needless whining from the
1054                 MD device driver.  (Addresses Sourceforge bug #545832).
1055
1056         * openfs.c (ext2fs_open): Fix bug which caused us to pass the
1057                 wrong group_block to ext2fs_descriptor_block_loc if we're
1058                 using the backup superblock/block group descriptors.
1059                 (ext2fs_descriptor_block_loc): If we're using the backup
1060                 superblock descriptors, use the backup descriptor block in
1061                 the next block group.
1062
1063 2002-10-30  Theodore Ts'o  <tytso@mit.edu>
1064
1065         * alloc_tables.c (ext2fs_allocate_group_table): Allocate the inode
1066                 table so that it buts up against the bitmap blocks, to
1067                 avoid block fragmentation.
1068
1069         * closefs.c (write_bgdesc), initalize.c (ext2fs_initialize): Fix
1070                 bug; only allocate group descriptor blocks up to
1071                 s_first_meta_bg.
1072
1073 2002-10-25  Theodore Ts'o  <tytso@mit.edu>
1074
1075         * ext2_fs.h: Add a new superblock field, s_mkfs_time, so that we
1076                 know when a filesystem was created.  (Sometimes this can
1077                 be useful...)
1078
1079         * initialize.c (ext2fs_initialize): Set the s_mkfs_time field.
1080
1081 2002-10-20  Theodore Ts'o  <tytso@valinux.com>
1082
1083         * ext2_fs.h (EXT3_DEFM_JMODE): Add new default mount options for
1084                 the journal data mode.
1085
1086         * closefs.c (ext2fs_flush, write_bgdesc), ext2_fs.h, ext2fs.h,
1087         openfs.c (ext2fs_descriptor_block_loc, ext2fs_open), initialize.c
1088         (ext2fs_initialize), swapfs.c (ext2fs_swap_super): Add support for
1089         the meta_blockgroup filesystem format.
1090
1091 2002-10-15    <tytso@snap.thunk.org>
1092
1093         * ext2_fs.h: Add new field in superblock for default mount options.
1094
1095 2002-10-13  Theodore Ts'o  <tytso@mit.edu>
1096
1097         * ext2fs.h: Add #include of header files necessary for ext2fs.h to
1098                 compile cleanly.
1099
1100 2002-10-02  Theodore Y. Ts'o  <tytso@mit.edu>
1101
1102         * rw_bitmaps.c (ext2fs_write_block_bitmap,
1103                 ext2fs_read_block_bitmap): Don't set the CHANGED bit just
1104                 because the bitmap is getting written to disk.  Make
1105                 ext2fs_swap_bitmap be a static function, since it's not
1106                 intended to be exported.
1107
1108         * swapfs.c (ext2fs_swap_super): Byte-swap the hash seed
1109
1110 2001-09-24  Theodore Tso  <tytso@mit.edu>
1111
1112         * Release of E2fsprogs 1.29
1113
1114 2001-08-31  Theodore Tso  <tytso@thunk.org>
1115
1116         * Release of E2fsprogs 1.28
1117
1118 2002-08-31  Theodore Ts'o  <tytso@valinux.com>
1119
1120         * dblist.c (ext2fs_dblist_sort): New function which allows the
1121                 caller to pass in a special sort comparison function.
1122
1123 2002-08-20  Theodore Ts'o  <tytso@mit.edu>
1124
1125         * valid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which
1126                 failed to accurately characterize non-standard slow
1127                 symlinks.  (Which don't appear in practice on real-life
1128                 systems, fortunately.)
1129
1130 2002-08-17  Theodore Ts'o  <tytso@mit.edu>
1131
1132         * Makefile.in: Remove inode_io.o from the standard object files,
1133                 and only build it if debugfs is enabled (it requires
1134                 fileio.o, which is only built if --disable-debugfs isn't
1135                 specified to configure).
1136
1137         * dirhash.c (ext2fs_dirhash): Change the MD4 hash in a backwards
1138                 incompatible way so that it is no longer
1139                 endian-dependent.  Add the TEA hash.  Allow the seed
1140                 parameter to be optional.
1141
1142         * ext2_fs.h: Remove the HALF_MD4_SEED and HALF_MD4_64 hashes.
1143                 These features are all now in the HALF_MD4 hash.  Add
1144                 definition for EXT2_HASH_TEA.
1145
1146         * ext2fs.h (ext2fs_dirhash): Change function prototype so it takes
1147                 a pointer instead of an array.
1148
1149 2002-08-16  Theodore Ts'o  <tytso@mit.edu>
1150
1151         * ext2_err.et.in (EXT2_ET_BAD_EA_BLOCK_NUM): New error code
1152
1153         * ext2fs.h (ext2fs_inode_data_blocks): New function which returns
1154                 the number of data blocks used by an inode exclusive of
1155                 the EA block.
1156
1157         * ext_attr.c (ext2fs_adjust_ea_refcount): New function which
1158                 adjusts the reference count in an extended attribute block.
1159
1160         * valid_blk.c (ext2fs_inode_has_valid_blocks): Add code to
1161                 correctly deal with extended attribute blocks in symbolic
1162                 links. 
1163
1164 2002-08-13    <tytso@snap.thunk.org>
1165
1166         * Makefile.in: Move dupfs.o and test_io.o from the
1167                 needed-by-debugfs object list to the needed-by-resizer
1168                 object list.  Fixes compile problem if the system is built
1169                 with only --disable-debugfs.
1170
1171 2002-07-29  Theodore Ts'o  <tytso@mit.edu>
1172
1173         * link.c (ext2fs_link): When adding a new link to a directory,
1174                 clear the HTREE bit.
1175
1176 2002-07-23  Theodore Ts'o  <tytso@mit.edu>
1177
1178         * dirhash.c (ext2fs_dirhash): Fix bug which caused MD4
1179                 calculations for names > 32 characters to be completely
1180                 bogus.  Changed MD4 calculation to match what is currently
1181                 being used in the CVS gkernel tree.
1182
1183 2002-07-19  Theodore Ts'o  <tytso@mit.edu>
1184
1185         * ext2_fs.h: Add s_hash_seed and s_def_hash_version to the
1186                 superblock definition.
1187
1188         * badblocks.c, freefs.c, ext2fs.h: Use the badblocks functions to
1189                 create a set of u32_list functions.
1190
1191         * dirhash.c (halfMD4Transform): Shift the hash by one bit,
1192                 since that's required by the directory indexing code.
1193
1194 2002-07-14  Theodore Ts'o  <tytso@mit.edu>
1195
1196         * ext2fs.h, read_bb_file.c: Change private to priv_data, to avoid
1197                 using a C++ reserved word.
1198
1199         * unix_io.c (unix_open): Only attempt the setrlimit workaround if
1200                 the kernel version is 2.4.10 -- 2.4.17, since otherwise an
1201                 old version of glibc (built against 2.2 headers) will
1202                 interact badly with the workaround to actually cause more
1203                 problems.  I hate it when the glibc folks think they're
1204                 being smarter than the kernel....
1205
1206 2002-06-28  Andreas Dilger <adilger@clusterfs.com>
1207
1208         * ext2_fs.h: Add superblock field for reserved group descriptors.
1209
1210 2002-06-28  Theodore Ts'o  <tytso@mit.edu>
1211
1212         * bitops.h: Add #define's for ext2fs_{l,b}e{32,16}_to_cpu and
1213                 ext2fs_cpu_to_{l,b}e{32,16}
1214
1215 2002-06-27  Theodore Ts'o  <tytso@mit.edu>
1216
1217         * ismounted.c (check_mntent): In AIX 4.3, MOUNTED isn't defined.
1218                 Add appropriate fallbacks in this case.
1219
1220 2002-06-26  Theodore Ts'o  <tytso@mit.edu>
1221
1222         * dirhash.c (ext2fs_dirhash): Change function signature to support
1223                 a hash seed, and to return the minor hash (for 64-bit hash
1224                 support).   Add support for the half MD4, half MD4 with
1225                 seed, and half MD4 with seed and 64 bits.
1226
1227 2002-06-15  Theodore Ts'o  <tytso@mit.edu>
1228
1229         * ext2_fs.h (EXT2_DIRSYNC_FL): Add new file.
1230
1231 2002-06-09  Andreas Dilger <adilger@clusterfs.com>
1232
1233         * ext2_fs.h: Add macros for maximum block/inode counts:
1234                 EXT2_INODES_PER_BLOCK, EXT2_MAX_BLOCKS_PER_GROUP,
1235                 and EXT2_MAX_INODES_PER_GROUP.
1236
1237         * openfs.c (ext2fs_open): Check that the number of blocks in a group
1238                 is less than 2^16, otherwise we need an INCOMPAT flag (not
1239                 in existence yet, if ever) to open such a filesystem.
1240
1241         * initialize.c (ext2fs_initialize): Limit the number of blocks and
1242                 inodes in a group to less than 2^16.
1243
1244 2002-06-09  Andreas Dilger <adilger@clusterfs.com>
1245
1246         * ext2_fs.h: Further minor cleanups of the header.  Consolidate
1247                 some checks for __KERNEL__ into one place.
1248
1249 2002-05-22  Andreas Dilger <adilger@clusterfs.com>
1250
1251         * ext2_fs.h: Remove macros accessing u.ext2_sb field and use
1252                 the EXT2_SB() macro instead.  Remove kernel function
1253                 prototypes also.  This matches the 2.5 kernel, and
1254                 is also cleaner for other reasons.  Whitespace cleanup.
1255
1256 2002-05-21  Theodore Ts'o  <tytso@mit.edu>
1257
1258         * ext2_ext_attr.h: Update to V2 version of the Bestbits format.
1259
1260 2002-05-16  Andreas Dilger <adilger@clusterfs.com>
1261
1262         * ext2_fs.h: Change limits to support filesystems with 8k blocks.
1263
1264         * initialize.c (ext2fs_initialize): Remove assumption that
1265                 blocksizes are always <= 4k.
1266
1267 2002-05-11  Theodore Ts'o  <tytso@mit.edu>
1268
1269         * bmap.c (ext2fs_bmap): Fix bug which caused ext2fs_bmap to fail
1270                 silently if inode pointer is NULL (and ext2fs_bmap is
1271                 expected to read the inode itself).
1272
1273 2002-04-27  Theodore Ts'o  <tytso@mit.edu>
1274
1275         * ismounted.c (check_mntent_file, is_swap_device): Verify that the
1276                 file we are checking is a block device file before looking
1277                 at st_rdev, since it's not valid for normal files.
1278                 (is_swap_device): Move so that it is outside the
1279                 HAVE_MNTENT_H, so that it is always built.
1280
1281 2002-03-11  Theodore Tso  <tytso@mit.edu>
1282
1283         * dirblock.c (ext2fs_read_dir_block2, ext2fs_write_dir_block): New
1284                 functions which take an extra flags argument.  The flag
1285                 EXT2_DIRBLOCK_V2_STRUCT will reverse when the name_len
1286                 field is byte swampped on big-endian machines, since in
1287                 the V2 structure, name_len is a char field which is
1288                 doesn't need to be byte swapped --- except if an
1289                 old-style kernel had byte-swapped the name_len field
1290                 as part of the V1 structure.
1291
1292         * ext2_err.et.in (EXT2_ET_DIRHASH_UNSUPP): New error code
1293
1294         * dirhash.c (ext2fs_dirhash): New function which calculates the
1295                 hash for a filename in an indexed directory.
1296
1297 2002-03-08  Theodore Tso  <tytso@mit.edu>
1298
1299         * Release of E2fsprogs 1.27
1300
1301 2002-03-07  Theodore Tso  <tytso@mit.edu>
1302
1303         * ext2fs.h (ext2fs_inode_io_intern): Add missing function prototype.
1304
1305         * bmap.c, fileio.c, inode_io.c, tst_badblocks.c, 
1306                 tst_byteswap.c: Fix gcc -Wall complaints
1307
1308         * Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
1309                 (From Philipp Thomas <pthomas@suse.de>)
1310
1311 2002-02-25  Theodore Tso  <tytso@mit.edu>
1312
1313         * ext2_fs.h: Add structure definitions for the directory indexing
1314                 extension.
1315
1316 2002-02-23  Theodore Tso  <tytso@mit.edu>
1317
1318         * unix_io.c (unix_open): Fix 2.4 resource limit workaround so that
1319                 it doesn't break things on mis32, sparc32, and alpha
1320                 platforms.
1321
1322 2002-02-21  Theodore Tso  <tytso@mit.edu>
1323
1324         * ismounted.c (is_swap_device): Fix file descriptor/memory leak;
1325                 we were missing an fclose().
1326
1327 2002-02-20  Theodore Tso  <tytso@mit.edu>
1328
1329         * Makefile.in, inode_io.c, ext2fs.h, ext2_err.et.in: Add new io
1330                 abstraction interface which exports an ext2 inode.
1331
1332         * ext2fs.h, fileio.c (ext2fs_file_flush): Export ext2fs_file_flush
1333                 as a public interface.  Change void * to const void * in
1334                 ext2fs_file_write's interface.
1335
1336         * test_io.c (test_close), unix_io.c (unix_close): Remove unneeded
1337                 conditional; save a few bytes.
1338         
1339 2002-02-12  Theodore Tso  <tytso@mit.edu>
1340
1341         * Makefile.in (tst_badblocks): Add some extra .o files when
1342                 linking the debugging program tst_badblocks which are
1343                 needed if we aren't compiling with inline functions enable.
1344
1345         * kernel-list.h (__inline__): On non-gcc and non-Watcom compilers,
1346                 define away __inline__ since it may not be supported.
1347
1348         * kernel-jbd.h (jbd_debug): For systems that don't do STDC, use a
1349                 stripped down jbd_debug that doesn't use variadic
1350                 arguments.  This will cause warnings under AIX, but things
1351                 should still build.
1352
1353 2002-02-03  Theodore Tso  <tytso@thunk.org>
1354
1355         * Release of E2fsprogs 1.26
1356
1357 2002-02-03  Theodore Tso  <tytso@mit.edu>
1358
1359         * mkdir.c (ext2fs_mkdir): Change to use ext2fs_inode_alloc_stats2
1360                 so that the number of directories in use is adjusted
1361                 appropriately.
1362
1363         * alloc_stats.c (ext2fs_inode_alloc_stats2): Add new function
1364                 which optionally will modify the number of directories
1365                 count.
1366
1367 2002-01-03  Theodore Tso  <tytso@mit.edu>
1368
1369         * dir_iterate.c (ext2fs_dir_iterate2, ext2fs_process_dir_block):
1370                 Add support for a new flag, DIRENT_FLAG_INCLUDE_REMOVED,
1371                 which will return deleted directory entries.
1372                 ext2fs_dir_iterate2 takes a new callback function which
1373                 is identical with the one used by
1374                 ext2fs_dblist_dir_iterate().  If the directory entry is
1375                 deleted, the callback function will be called with the
1376                 entry paraemter set to DIRENT_DELETED_FILE.
1377
1378         * Makefile.in, alloc_stats.c (ext2fs_inode_alloc_stats,
1379                 ext2fs_block_alloc_stats): New functions which update
1380                 block/inode allocation statistics in the bitmaps, block
1381                 group descriptors, and superblock.
1382
1383         * mkjournal.c (mkjournal_proc), mkdir.c (ext2fs_mkdir),
1384                 expanddir.c (expand_dir_proc), bb_inode.c
1385                 (clear_bad_block_proc, set_bad_block_proc,
1386                 ext2fs_update_bb_inode), alloc.c (ext2fs_alloc_block):
1387                 Update to use new block/inode allocation statistics.
1388
1389 2001-12-24  Theodore Tso  <tytso@mit.edu>
1390
1391         * ismounted.c (is_swap_device): New function used by
1392                 ext2fs_check_if_mounted and ext2fs_check_mount_point which
1393                 determines whether or not the specified device is a swap
1394                 device by using /proc/swaps.  More bulletproofing for
1395                 idiotic/careless system administrators!
1396
1397         * ext2fs.h, openfs.c (ext2fs_open), initialize.c
1398                 (ext2fs_initialize), mkdir.c (ext2fs_mkdir): Add a new
1399                 field to struct_ext2_filsys, umask.  This field is
1400                 initialize to 022, and affects ext2fs_mkdir in the obvious
1401                 way.  (In the future umask should also affect new file
1402                 creation routines, but the fileio functions don't
1403                 currently support this yes.)
1404
1405         * ismounted.c (check_mntent_file): Stat all of the entries in
1406                 /etc/mtab and/or /proc/mounts in order to catch dim-witted
1407                 system administrators who might have created alias
1408                 devices.
1409  
1410 2001-12-23  Theodore Tso  <tytso@mit.edu>
1411
1412         * Makefile.in, jfs_user.h: Move linux/jbd.h to
1413                 ext2fs/kernel-jbd.h, to avoid using the system header
1414                 file version of hbd.h when using diet glibc (since it
1415                 forcibly adds /usr/include to the beginning of the
1416                 include search path.)
1417
1418         * kernel-jbd.h, kernel-list.h, jfs_compat.h: Move files from
1419                 include/linux directory.
1420
1421 2001-12-16  Theodore Tso  <tytso@mit.edu>
1422
1423         * bitops.h (ext2fs_mark_generic_bitmap, ext2fs_unmark_generic_bitmap),
1424                 ext_attr.c (ext2fs_read_ext_attr, ext2fs_write_ext_attr),
1425                 fileio.c (ext2fs_file_write): Fix gcc -Wall nits
1426
1427         * Makefile.in, jfs_user.h: linux/jfs.h has been renamed to
1428                 linux/jbd.h
1429
1430 2001-12-03  Theodore Tso  <tytso@mit.edu>
1431
1432         * unix_io.c (unix_open): Make sure the ulimit workaround works
1433                 regardless of the version of glibc which is used to
1434                 compild e2fsprogs.
1435
1436 2001-11-26  Theodore Tso  <tytso@mit.edu>
1437
1438         * unix_io.c (unix_open): Work around a bug in 2.4.10+ kernels by
1439                 trying to unset the filesize limit if at all possible,
1440                 if a block device is getting opened.  (The filesize limit
1441                 shouldn't be applied against writes to a block device, but
1442                 starting in 2.4.10, the kernel is doing this.)
1443         
1444 2001-11-05  Theodore Tso  <tytso@mit.edu>
1445
1446         * mkjournal.c (ext2fs_add_journal_inode): When creating a .journal
1447                 file on adding a journal to an already-mounted filesystem,
1448                 try to clear the ext2 file attributes on an already
1449                 existing .journal file so that we don't fail if on a
1450                 partially added journal to the filesystem.
1451
1452         * ext2_fs.h: Define a new ext2 file attribute, EXT2_NOTAIL_FL,
1453                 which signals that a particular inode should not have the
1454                 last bits of data (the "tail") be merged with another
1455                 file.  This is necessary to keep LILO happy.
1456
1457 2001-09-20  Theodore Tso  <tytso@thunk.org>
1458
1459         * Release of E2fsprogs 1.25
1460
1461 2001-09-16  Theodore Tso  <tytso@mit.edu>
1462
1463         * ext2_ext_attr.h: Remove unneeded #include of <linux/config.h>
1464                 which was breaking the build on the Hurd.  (Addresses
1465                 Debian bug #112414).
1466
1467 2001-09-13  Theodore Ts'o  <tytso@mit.edu>
1468
1469         * ismounted.c (check_mntent_file): We now validate the entry in
1470                 /etc/mtab to make sure the filesystem is really mounted,
1471                 since some broken distributions (read: Slackware) have
1472                 buggy boot scripts that don't initialize /etc/mtab before
1473                 checking non-root filesystems.  (Slackware also doesn't
1474                 check the root filesystem separately, and reboot if the
1475                 root filesystem had changes applied to it, which is
1476                 dangerous and broken.)   
1477
1478 2001-09-02  Theodore Tso  <tytso@thunk.org>
1479
1480         * Release of E2fsprogs 1.24a
1481
1482 2001-08-30  Theodore Tso  <tytso@thunk.org>
1483
1484         * Release of E2fsprogs 1.24
1485
1486 2001-08-30  Theodore Tso  <tytso@valinux.com>
1487
1488         * getsize.c (ext2fs_get_device_size): Back out BLKGETSIZE64
1489                 changes, since the ioctl number has been reused by another
1490                 unofficial patch.
1491
1492 2001-08-15  Theodore Tso  <tytso@valinux.com>
1493
1494         * Release of E2fsprogs 1.23
1495
1496 2001-08-05  Theodore Tso  <tytso@valinux.com>
1497
1498         * alloc.c (ext2fs_new_inode, ext2fs_new_block): Use the fast
1499                 version of the bitmap test routines to speed up these
1500                 routines.  (At some point I may want to make these
1501                 routines use the find_first_bit functions, but that will
1502                 add a lot of complexity since it means that these
1503                 functions will have to break the bitmap abstraction
1504                 boundary.  It's not clear it's worth it.)
1505
1506         * mkjournal.c (mkjournal_proc): Remember the last block allocated
1507                 to speed up ext2fs_new_block().
1508
1509 2001-07-29  Theodore Tso  <tytso@valinux.com>
1510
1511         * finddev.c (scan_dir): Fix memory leak; we weren't calling
1512                 closedir() when exiting the function in all cases.
1513
1514 2001-07-27  Theodore Tso  <tytso@valinux.com>
1515
1516         * mkjournal.c (ext2fs_create_journal_superblock): Set the first
1517                 block usable in the journal for external journals to be 2
1518                 or 3, depending on the blocksize, so that the existing
1519                 kernel code does the right thing.
1520
1521         * getsize.c (ext2fs_get_device_size): Add support for the
1522                 BLKGETSIZE64 ioctl.  (Ioctl defined by unofficial patches
1523                 from Ben LaHaise, but it's likely this interface won't
1524                 change.)
1525
1526         * mkjournal.c (ext2fs_add_journal_device): Use the correct block
1527                 when writing the journal superblock, too.  (Oops! Needed
1528                 to make 1k filesystems with external journal to work.)
1529
1530 2001-07-26  Theodore Tso  <tytso@valinux.com>
1531
1532         * mkjournal.c (ext2fs_add_journal_device): Use the correct block
1533                 to find the journal superblock if the blocksize is 1024.
1534
1535 2001-07-21  Theodore Tso  <tytso@valinux.com>
1536
1537         * ext2_err.et.in (EXT2_ET_LOAD_EXT_JOURNAL): Add new error code
1538
1539 2001-07-20  Theodore Tso  <tytso@valinux.com>
1540
1541         * ext_attr.c (ext2fs_write_ext_attr): When writing the extended
1542                 attribute block, set the filesystem changed bit.
1543
1544         * bitops.h (ext2fs_find_first_bit_set, ext2fs_find_next_bit_set):
1545                 Comment out these functions since we're not using them.
1546
1547 2001-07-10  Theodore Tso  <tytso@valinux.com>
1548
1549         * closefs.c (write_primary_superblock): After writing changes to
1550                 the primary superblock, update the original superblock
1551                 copy so we don't have to re-write those changes in the
1552                 future.
1553                 (ext2fs_flush): Clear the superblock dirty flag after
1554                 we've flushed out changes to disk.
1555
1556 2001-07-07  Theodore Tso  <tytso@valinux.com>
1557
1558         * bitops.h (ext2fs_find_first_bit_set): Use %esi instead of %ebx
1559                 to avoid register conflicts when compiling in PIC mode.
1560
1561 2001-07-04  Theodore Tso  <tytso@valinux.com>
1562
1563         * bitops.h (ext2fs_find_first_bit_set, ext2fs_find_next_bit_set):
1564                 Add new functions (C and in i386 assembler) which quickly
1565                 find bits set in a bitmask.
1566
1567 2001-06-23  Theodore Tso  <tytso@valinux.com>
1568
1569         * Makefile.in, ext_attr.c, ext2_attr.c, ext2fs.h: Add new files
1570                 ext2_ext_attr.h and ext_attr.c for extended attributes
1571                 support.
1572
1573         * Release of E2fsprogs 1.22
1574
1575 2001-06-22  Theodore Tso  <tytso@valinux.com>
1576
1577         * mkjournal.c (ext2fs_add_journal_inode): Move close of file
1578                 descriptor so that adding a journal to a mounted
1579                 filesystem doesn't die.  (Fixes a bug accidentally
1580                 introduced in e2fsprogs 1.21.)
1581
1582         * mkjournal.c (ext2fs_add_journal_inode): Only use fchflags if
1583                 HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has
1584                 fchflags without defining UF_NODUMP.  (Addresses Debian
1585                 bug #101361)
1586
1587         * flushb.c: Use platform independent method of defining the
1588                 BLKFLSBUF and FDFLUSH ioctl's.  Also include sys/mount.h
1589                 since on newer glibc's BLKFLSBUF is defined there.
1590
1591         * bitops.h: The C language versions of ext2fs_swab16/32 need to be
1592                 included if EXT2FS_ENABLE_SWAPFS is defined, since we need
1593                 to support byte swapping even if we don't support the
1594                 conversion functions.  (Fixes Debian bug #101686).
1595
1596         * dirblock.c (ext2fs_read_dir_block): Remove use of dir_entry_2
1597                 since the byte-swapping code all assumes the
1598                 ext2_dir_entry structure.  (It's a question of whether or
1599                 not name_len should be byte-swapped or not, and whether
1600                 it's a 16 bit or 8 bit field.)
1601
1602 2001-06-15  Theodore Tso  <tytso@valinux.com>
1603
1604         * Release of E2fsprogs 1.21
1605
1606 2001-06-15  Theodore Tso  <tytso@valinux.com>
1607
1608         * Makefile.in: Fix bug in installation of ext2_types.h.  It is a
1609                 file which is generated and is therefore found in the
1610                 build directory, not source directory.
1611
1612         * ismounted.c (check_mntent_file): Use a test file in / to check
1613                 to see if the root filesystem is mounted read-only.  This
1614                 protects against the case where /etc might not be on /, as
1615                 well as the case where /etc/mtab doesn't exist.  (Both are
1616                 should-never happen scenarios, but you never know...)
1617
1618 2001-06-14  Theodore Tso  <tytso@valinux.com>
1619
1620         * ismounted.c (ext2fs_check_if_mounted): Fix grammer in comment.
1621                 Remove unneeded #pragma argsused, since the arguments are
1622                 always used.
1623
1624 2001-06-13  Theodore Tso  <tytso@valinux.com>
1625
1626         * ext2_types.h.in: If linux/types.h has been defined, then don't
1627                 try to redefine the typedefs.
1628
1629         * Makefile.in (HFILES): Add ext2_types.h to the list of files
1630                 which should be installed.
1631
1632         * ismounted.c (check_mntent_file): Work around GNU hurd brain
1633                 damage.  Addresses Debian bug #100304.
1634
1635         * Makefile.in: Limit some .o files from being included into the
1636                 library if --disable-debugfs, --disable-swapfs,
1637                 --disable-imager, or --disable-resizer are used.
1638
1639 2001-06-12  Theodore Tso  <tytso@valinux.com>
1640
1641         * inode.c, tst_iscan.c: Stop using the compatibility badblocks
1642                 function, and use the ext2fs_badblocks_* functions
1643                 instead.
1644
1645 2001-06-11  Theodore Tso  <tytso@valinux.com>
1646
1647         * Makefile.in, gen_bitmap.c, bitops.h: Move inline functions
1648                 ext2fs_mark_generic_bitmap and
1649                 ext2fs_unmark_generic_bitmap to gen_bitmap.c as normal
1650                 functions.  (This saves space and doesn't significantly
1651                 change the speed of e2fsck on a P-III.)
1652
1653         * ext2fs.h, bitops.h, block.c, bmap.c, closefs.c, dirblock.c,
1654                 inode.c, native.c, openfs.c, rw_bitmaps.c, swapfs.c: Only
1655                 include the byte-swapping logic if ENABLE_SWAPFS is turned
1656                 on or if we're on a big-endian machine.
1657         
1658         * initialize.c (ext2fs_initialize):Use WORDS_BIGENDIAN directly to
1659                 set EXT2_FLAG_SWAP_BYTES, instead of using
1660                 ext2fs_native_flag.
1661         
1662         * native.c (ext2fs_native_flag): Use WORDS_BIGENDIAN provided by
1663                 autoconf to determine whether or not return
1664                 EXT2_FLAG_SWAP_BYTES.
1665
1666 2001-06-10  Theodore Tso  <tytso@valinux.com>
1667
1668         * Makefile.in: Remove the dependence on the libe2p library.
1669
1670         * mkjournal.c (ext2fs_add_journal_inode): Replace use of fsetflags
1671                 with direct usage of the ioctl/fchflags so that we don't
1672                 have to depend on the libe2p library.
1673
1674 2001-06-08  Theodore Tso  <tytso@valinux.com>
1675
1676         * ext2_types.h.in: Use unsigned ints in favor of unsigned longs
1677                 when trying to find a 32-bit wide type.
1678
1679         * icount.c (insert_icount_el): Fix the code used to estimate the
1680                 size of the new icount array to be more intelligent, to
1681                 avoid reallocating the array too many times.  Thanks to
1682                 Enrique Perez-Terron for pointing this out.
1683
1684 2001-06-02  Theodore Tso  <tytso@valinux.com>
1685
1686         * valid_blk.c (ext2fs_inode_has_valid_blocks): Only check i_blocks
1687                 for a symlink to determine whether it is a fast symlink.
1688
1689 2001-06-01  Theodore Tso  <tytso@valinux.com>
1690
1691         * Makefile.in, dosio.c, ext2_fs.h, ext2_types.h.in, ext2fs.h:
1692                 Move include/asm/types.h.in to lib/ext2fs/ext2_types.h.in.
1693
1694 2001-05-25  Theodore Tso  <tytso@valinux.com>
1695
1696         * Release of E2fsprogs 1.20
1697
1698 2001-05-25  Theodore Tso  <tytso@valinux.com>
1699
1700         * ismounted.c: More cleanups for ismounted.c, some from Andreas,
1701                 some to clean up Andreas's patches.  Use strncpy instead
1702                 of strcpy to save the root's mountpoint.  Clean up #ifdef
1703                 structure.  Remove uneeded variable in testing/debug driver.
1704
1705 2001-05-24  Andreas Dilger  <adilger@turbolinux.com>
1706
1707         * ismounted.c: Add check for root device which doesn't depend on
1708                 /etc/fstab or /proc/mounts to be correct.  Don't call
1709                 endmntent() before we are done with mnt struct.
1710
1711 2001-05-23  Theodore Tso  <tytso@valinux.com>
1712
1713         * ext2_err.et.in (EXT2_ET_JOURNAL_UNSUPP_VERSION): Added new error
1714                 code.
1715
1716 2001-05-21  Theodore Tso  <tytso@valinux.com>
1717
1718         * ext2_fs.h: Change assignment of EXT2_FEATURE_COMPAT_DIR_INDEX to
1719                 make room for pre-existing usage of
1720                 EXT2_FEATURE_COMPAT_EXT_ATTR.  Add flag EXT2_INDEX_FL with
1721                 the same codepoint as EXT2_BTREE_FL.
1722
1723 2001-05-20  Theodore Tso  <tytso@valinux.com>
1724
1725         * ext2fs.h: #include <> instead of "" for ext2fs and et header
1726                 files, since they will be installed in /usr/include
1727
1728 2001-05-14  Theodore Tso  <tytso@valinux.com>
1729
1730         * alloc.c, alloc_tables.c, badblocks.c, bb_compat.c, bb_inode.c,
1731                 bitmaps.c, bitops.c, block.c, bmap.c, bmove.c, brel_ma.c,
1732                 check_desc.c, closefs.c, cmp_bitmaps.c, dblist.c,
1733                 dblist_dir.c, dir_iterate.c, dirblock.c, dupfs.c,
1734                 expanddir.c, ext2_fs.h, fileio.c, finddev.c, flushb.c,
1735                 freefs.c, get_pathname.c, getsize.c, icount.c, imager.c,
1736                 initialize.c, inline.c, inode.c, irel_ma.c, ismounted.c,
1737                 link.c, lookup.c, mkdir.c, mkjournal.c, namei.c, native.c,
1738                 newdir.c, nt_io.c, openfs.c, read_bb.c, read_bb_file.c,
1739                 rs_bitmap.c, rw_bitmaps.c, swapfs.c, test_io.c,
1740                 tst_badblocks.c, tst_byteswap.c, tst_getsize.c,
1741                 tst_iscan.c, unix_io.c, unlink.c, valid_blk.c, version.c,
1742                 write_bb_file.c, ext2_fs.h: Moved file from include/linux.
1743                 Adjust all files in this directroy to include this file.
1744
1745         * mkjournal.c (ext2fs_create_journal_superblock): Remove redundant
1746                 code.
1747
1748 2001-05-05  Theodore Tso  <tytso@valinux.com>
1749
1750         * fileio.c (ext2fs_file_read): Factored out common code and
1751                 cleaned up function.  Fixed a bug where if there was an
1752                 error reading from the disk, the number of bytes read
1753                 wasn't reliably set.  (Fixes Debian bug #79163)
1754                 (ext2fs_file_write): Factored out common code and made
1755                 function more efficient; if writing a full block, don't
1756                 bother to do a read-modify-write cycle.
1757
1758 2001-05-04  Theodore Tso  <tytso@valinux.com>
1759
1760         * dirblock.c (ext2fs_read_dir_block): Check for an directory
1761                 record length which isn't a multiple four, and treat that
1762                 as an invalid.  Scan the directory and return an error
1763                 (EXT2_ET_DIR_CORRUPTED) if the directory records are
1764                 corrupted.
1765                 (ext2fs_write_dir_block): If while byte-swapping the
1766                 directory block, if there's an error, abort and return
1767                 EXT2_ET_DIR_CORRUPTED.
1768
1769 2001-05-02  Theodore Tso  <tytso@valinux.com>
1770
1771         * ext2fs.h (EXT2_FLAG_IMAGE_FILE): Add new flag, and add
1772                 image_header field in the ext2_filsys structure
1773
1774         * block.c (block_iterate_ind, block_iterate_dind, block_iterate_tind): 
1775         * inode.c (ext2fs_read_inode): 
1776         * rw_bitmaps.c (read_bitmaps): 
1777         * openfs.c (ext2fs_open): Add support for EXT2_FLAG_IMAGE_FILE
1778
1779         * imager.c (ext2fs_image_bitmap_read): Fix bug in imager to make
1780                 sure the full bitmap is saved.
1781
1782 2001-05-01  Theodore Tso  <tytso@valinux.com>
1783
1784         * e2image.h (struct ext2_image_hdr): Add space for the device name
1785                 in the image header.
1786
1787         * dir_iterate.c (ext2fs_process_dir_block): Add a double-check to
1788                 make sure the rec_len is a multiple of 4, to prevent
1789                 bus-errors on architectures which care about mis-aligned
1790                 pointer references.
1791
1792 2001-04-25  Theodore Tso  <tytso@valinux.com>
1793
1794         * getsize.c (ext2fs_get_device_size): Use an unsigned long to
1795                 query the device sizes using the BLKGETSIZE ioctl.
1796
1797 2001-04-16  Theodore Tso  <tytso@valinux.com>
1798
1799         * ismounted.c (check_mntent): Check /proc/mounts on Linux systems
1800                 before checking /etc/mtab.  The EXT2_MF_READONLY flag is
1801                 now set from the /etc/mtab options field for all
1802                 filesystems, not just the root filesystem.  Add debugging
1803                 code to make it easier to test ext2fs_check_if_mounted().
1804
1805         * mkjournal.c (ext2fs_create_journal_superblock): Add safety
1806                 check; return an error if there's an attempt to create a
1807                 journal less than 1024 filesystem blocks.
1808
1809         * ext2_err.et.in, mkjournal.c: Change EXT2_JOURNAL_NOT_BLOCK and
1810                 EXT2_NO_JOURNAL_SB to be EXT2_ET_*.
1811
1812 2001-02-20  Theodore Tso  <tytso@valinux.com>
1813
1814         * bitops.h (ext2fs_swab16, ext2fs_swab32): Add i386 assembly
1815                 inline functions.
1816
1817         * tst_byteswap.c: New function to test the byteswap functions.
1818                 Add to regression test suite.
1819
1820 2001-02-08  Theodore Tso  <tytso@valinux.com>
1821
1822         * e2image.h (struct ext2_image_hdr): Fix type for fs_hostname
1823
1824 2001-02-07  Theodore Tso  <tytso@valinux.com>
1825
1826         * mkjournal.c (ext2fs_create_journal_superblock): Fix the setting
1827                 of s_first for external devices to always be 1, since
1828                 jsb->s_first is always relative to the start of the
1829                 journal superblock.  Use htonl(1) when setting s_nr_users.
1830
1831 2001-01-17  Theodore Ts'o  <tytso@valinux.com>
1832
1833         * mkjournal.c (ext2fs_add_journal_device): Fix bug where the
1834                 device number of the filesystem (instead of the journal)
1835                 was being dropped into s_journal_dev.
1836
1837 2001-01-15  Theodore Ts'o  <tytso@valinux.com>
1838
1839         * initialize.c (ext2fs_initialize): Add support for initializing
1840                 the ext2 superblock for external journal devices.  This
1841                 basically means we don't bother to allocate any block
1842                 group descriptors.
1843
1844         * openfs.c (ext2fs_open): Only open external journal devices if
1845                 the new flag EXT2_FLAG_JOURNAL_DEV_OK is passed to
1846                 ext2fs_open.  When opening such devices, don't try to read
1847                 the block group descriptors, since they're not there.
1848
1849         * ext2_err.et.in (EXT2_NO_JOURNAL_SB): Add new error code 
1850         
1851         * mkjournal.c: Export a new function,
1852                 ext2fs_create_journal_superblock(), which allocates and
1853                 returns a buffer containing a journal superblock.  This is
1854                 needed by mke2fs to create an external journal.  Rewrote
1855                 ext2fs_add_journal_device() so that it no longer creates
1856                 the external journal, but rather adds a filesystem to an
1857                 existing external journal.  It handles all of the UUID
1858                 manipulation.
1859
1860         * ext2fs.h: List the EXT3_FEATURE_JOURNAL_DEV as a flag supported
1861                 by the library.  Define the EXT2_FLAG_JOURNAL_DEV_OK.
1862                 Changed function prototype for ext2fs_add_journal_device().
1863                 
1864 2001-01-14  Theodore Ts'o  <tytso@valinux.com>
1865
1866         * closefs.c (ext2fs_flush): Don't write out anything beyond the
1867                  primary superblock if EXT2_INCOMPAT_JOURNAL_DEV is
1868                  listed.
1869
1870 2001-01-12  Theodore Ts'o  <tytso@valinux.com>
1871
1872         * imager.c: Fix gcc -Wall complaints and a series of bugs where
1873                 retval wasn't set correctly.  (Thanks to Andreas Dilger
1874                 for pointing this out.)
1875
1876 2001-01-11    <tytso@snap.thunk.org>
1877
1878         * flushb.c (ext2fs_sync_device): New function which centralizes
1879                 all of the places which might try to use the BLKFLSBUF
1880                 or FDFLUSH ioctls (and usually failing to define them
1881                 since the system header files don't usually do this for
1882                 us, and we're trying to avoid usage of kernel include
1883                 files now).
1884
1885 2001-01-10    <tytso@snap.thunk.org>
1886
1887         * alloc.c, bb_inode.c, bitmaps.c, bitops.h, block.c, bmap.c, 
1888                 bmove.c, brel.h, cmp_bitmaps.c, dblist.c, dblist_dir.c, 
1889                 dir_iterate.c, expanddir.c, ext2fs.h, ext2fsP.h, fileio.c,
1890                 finddev.c, get_pathname.c, icount.c, inode.c, irel.h, 
1891                 irel_ma.c, ismounted.c, link.c, lookup.c, mkdir.c, 
1892                 mkjournal.c, namei.c, newdir.c, read_bb_file.c, test_io.c,
1893                 tst_iscan.c, unix_io.c, unlink.c: Change use of ino_t to
1894                 ext2_ino_t, to protect applications that attempt to
1895                 compile -D_FILE_OFFSET_BITS=64, since this inexplicably
1896                 changes ino_t(!?).  So we use ext2_ino_t  to avoid an
1897                 unexpected ABI change.
1898
1899 2001-01-05    <tytso@snap.thunk.org>
1900
1901         * dirblock.c (ext2fs_read_dir_block): Fix a potential case where
1902                 we may overrun allocated memory in case of a corrupted
1903                 filesystem (or an e2fsck test case :-) when byte-swapping
1904                 the directory block.
1905
1906         * ext2fs.h: Indent the #warning to fix gcc -Wall complaint.
1907
1908         * mkjournal.c (ext2fs_add_journal_device): Fix various gcc -Wall
1909                 complaints including a missing return 0 at the end of
1910                 ext2fs_add_journal_device.
1911
1912 2001-01-03    <tytso@snap.thunk.org>
1913
1914         * Makefile.in: Link in libe2p when creating libext2fs as a shared
1915                 library, since mkjournal.c now references fsetflags().
1916
1917         * mkjournal.c (ext2fs_add_journal_inode): Folded in Andreas
1918                 Dilger's changes (with fixups) to allow on-line creation
1919                 of a journal file.
1920
1921         * ext2fs.h, closefs.c (ext2fs_flush): Add new flag,
1922                 EXT2_FLAG_SUPER_ONLY, which the close routines to only
1923                 update the superblock, and not the group descriptors.
1924
1925 2000-12-30  Andreas Dilger  <adilger@turbolinux.com>
1926
1927         * ismounted.c: add ext2fs_check_mount_point() function, which will
1928                 optionally return the mount point of a device if mounted
1929
1930 2000-12-14  Andreas Dilger  <adilger@turbolinux.com>
1931
1932         * mkjournal.c: rename ext2fs_add_journal_fs() to the more descriptive
1933                 ext2fs_add_journal_inode()
1934
1935 2001-01-01    <tytso@snap.thunk.org>
1936
1937         * ext2fs.h: Remove definition of ext2fs_sb.  Note: this may break
1938                 source (but not binary) compatibility of some users of the
1939                 ext2 library.  They should just simply do a global search
1940                 and replace of struct ext2fs_sb with struct
1941                 ext2_super_block, and use their own private copy of
1942                 ext2_fs.h if they aren't already.
1943
1944         * closefs.c, initialize.c, link.c, newdir.c, openfs.c, swapfs.c:
1945                 Replace use of ext2fs_sb with ext2_super_block.
1946
1947 2000-12-31    <tytso@snap.thunk.org>
1948
1949         * ext2fs.h: Cleaned up header file by removing definitions of
1950                 feature flags that might not have been defined in older
1951                 ext2 header files.  Now that we're using our own
1952                 include/linux/ext2fs.h header file, this can never happen.
1953
1954         * jfs_dat.h: Removed old header file which is no longer needed.
1955
1956 2000-12-13  Theodore Ts'o  <tytso@valinux.com>
1957
1958         * closefs.c (ext2fs_update_dynamic_rev): New function suggested
1959                 by Andreas Dilger to update the filesystem revision to
1960                 EXT2_DYNAMIC_REV.
1961
1962         * swapfs.c (ext2fs_swap_super): Add byte swapping for the journal
1963                 fields.
1964
1965 2000-12-09    <tytso@snap.thunk.org>
1966
1967         * ext2fs.h, mkjournal.c (ext2fs_add_journal_inode,
1968                 ext2fs_add_journal_device): Add a new argument to the APIs
1969                 of these function, which is a flags word.  This is used to
1970                 allow the creation of a V1 superblock for those folks who
1971                 are using ext3 0.3b in production.  Note, the user-land
1972                 interface for getting at this flag won't be documented, as
1973                 the V1 superblock is deprecated.
1974
1975         * mkjournal.c (init_journal_superblock): Sync Stephen's changes
1976                 which creates a V2 superblock instead of a V1 superblock.
1977
1978 2000-11-21    <tytso@snap.thunk.org>
1979
1980         * test_io.c (test_write_blk, test_write_byte): Fix typos pointed
1981                 out by Andreas Dilger.
1982
1983 2000-11-05    <tytso@snap.thunk.org>
1984
1985         * imager.c (ext2fs_image_{inode,super,bitmap}_{read,write},
1986                 ext2_fs.h, Makefile.in: New file that has routines that
1987                 save ext2fs metadata to a file.
1988
1989         * ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned.
1990
1991         * e2image.h: New file which defines the file format for the ext2
1992                 image file.  (Saved copy of ext2 metadata to a file as a
1993                 saving throw against worst-case damage.)
1994
1995 2000-11-01    <tytso@snap.thunk.org>
1996
1997         * inode.c (ext2fs_flush_icache): Add new function
1998                 ext2fs_flush_icache() which flushes the internal inode
1999                 cache.  Applications which modify the inode table blocks
2000                 directly must call this function.
2001
2002 2000-10-26    <tytso@snap.thunk.org>
2003
2004         * mkjournal.c: Add #include of netinet/in.h, since Solaris
2005                 requires it for ntohl().
2006
2007         * ext2_io.h (io_channel_write_byte): Add new interface to allow
2008                 callers to write specific byte ranges.  This is an
2009                 optional interface, which not all IO channels may
2010                 implement.
2011
2012         * unix_io.c (unix_write_byte):
2013         * test_io.c (test_write_byte): Add implementation of the
2014                 write_byte function.
2015
2016         * closefs.c (write_primary_superblock, ext2fs_flush): Add a new
2017                 function which writes the primary superblock.  If the IO
2018                 channel supports writing raw bytes directly, only fields
2019                 which were modified are written to the disk.  This makes
2020                 it safe(r) to use utilities like tune2fs on a mounted
2021                 filesystem. 
2022
2023         * freefs.c (ext2fs_free): Free the original superblock if it is
2024                 available. 
2025
2026         * openfs.c (ext2fs_open): Store a copy of the original superblock
2027                 when opening it.
2028
2029         * ext2fs.h: Add a field to store the original superblock in the
2030                 ext2 context structure.
2031
2032 2000-10-24    <tytso@snap.thunk.org>
2033
2034         * llseek.c: Add #ifdef's for IA64 (it's a 64-bit platform, so we
2035                 don't need to use llseek).
2036
2037 2000-10-24    <tytso@valinux.com>
2038
2039         * Makefile.in, ext2fs.h, jfs_dat.h, mkjournal.c: Add functions for
2040                 creating an ext3 journal on a filesystem.
2041
2042 2000-08-21    <tytso@valinux.com>
2043
2044         * ext2_err.et.in (EXT2_JOURNAL_NOT_BLOCK): Add new error code.
2045
2046 2000-08-22    <tytso@valinux.com>
2047
2048         * unix_io.c: Make massive changes to support a multiple block
2049                 writethrough cacheing.
2050
2051         * ext2_io.h: Added flags field to the io_channel structure.
2052
2053 2000-08-19    <tytso@valinux.com>
2054
2055         * finddev.c, ext2fs.h, Makefile.in: Add new file, finddev.c, which
2056                 provides the function ext2fs_find_block_device().  This
2057                 function returns the pathname to a block device, given its
2058                 device number.
2059
2060 2000-07-13    <tytso@valinux.com>
2061
2062         * Release of E2fsprogs 1.19
2063
2064 2000-07-07  Theodore Ts'o  <tytso@valinux.com>
2065
2066         * ext2fs.h (EXT2_LIB_FEATURE_INCOMPAT_SUPP): Add
2067                 EXT3_FEATURE_INCOMPAT_RECOVER (aka needs_recovery) to the
2068                 list of filesystem flags supported by the library.
2069
2070 2000-07-04  Theodore Ts'o  <tytso@valinux.com>
2071
2072         * ext2fs.h: Update to include latest journalling additions to the
2073                 superblock.
2074
2075         * dll/jump.funcs: Add new jumptable entries for
2076                 ext2fs_write_bb_FILE, ext2fs_read_bb_FILE2, and
2077                 ext2fs_badblocks_equal.
2078
2079         * tst_badblocks.c: Update test program to test
2080                 ext2fs_read_bb_FILE2 and ext2fs_write_FILE.
2081
2082         * write_bb_file.c (ext2fs_write_bb_FILE): New function which
2083                 writes out bad blocks list to a file.
2084
2085         * read_bb_file.c (ext2fs_read_bb_FILE2): Add new function which
2086                 changes the callback function to take two additional
2087                 arguments; a private blind pointer supplied by the caller,
2088                 and pointer to a char * containing a pointer to the
2089                 invalid string.
2090
2091         * badblocks.c (ext2fs_badblocks_equal): Add new function which
2092                 returns true if two badblocks list are equal.
2093
2094         * Makefile.in: Remove explicit link of -lc in the shared library.
2095                 (It shouldn't be necessary, and is harmful in some cases).
2096
2097 2000-06-10  Theodore Ts'o  <tytso@valinux.com>
2098
2099         * getsize.c (main): Add debugging code under #ifdef DEBUG
2100
2101 2000-05-27  Theodore Ts'o  <tytso@valinux.com>
2102
2103         * mkdir.c (ext2fs_mkdir): Read the parent directory's inode
2104                 earlier, so that if there's an error reading it, we can
2105                 more cleanly back out of the operation.
2106
2107 2000-05-25    <tytso@snap.thunk.org>
2108
2109         * getsize.c (ext2fs_get_device_size): Use open64() instead of
2110                 open() if it exists.  Under linux, manually define the
2111                 ioctl for BLKGETSIZE if it isn't already defined and it's
2112                 safe to do so.
2113
2114         * unix_io.c (unix_open): Use open64() instead of open() if it
2115                 exists. 
2116
2117         * llseek.c: Simplify header includes of unistd.h.  If lseek64 is
2118                 available (and prototypes are defined) use it in
2119                 preference to llseek.
2120
2121         * Makefile: Add hack dependency rule so that parallel makes work
2122                 correctly. 
2123
2124 2000-05-18  Theodore Ts'o  <tytso@valinux.com>
2125
2126         * ext2fs.h: Add appropriate ifdef's to support C++ compilation.
2127
2128 2000-04-03  Theodore Ts'o  <tytso@valinux.com>
2129
2130         * block.c: Readibility tweak in conditionals involving
2131                 ctx->fs->flags.
2132
2133         * ext2fs.h: Use AUTOCONF SIZEOF_* macros if available to determine
2134                 how to define __s64 and __u64.  Turn off "compression is
2135                 experimental" warning if the cpp macro
2136                 I_KNOW_THAT_COMPRESSION_IS_EXPERIMENTAL is defined.
2137
2138 2000-02-11    <tytso@snap.thunk.org>
2139
2140         * ext2fs.h: Define EXT2FS_COMPRESSED_BLKADDR and HOLE_BLKADDR.
2141                 Conditionally include Compression as a supported type if
2142                 ENABLE_COMPRESSION (via --enable-compression) is turned on.
2143
2144         * swapfs.c (ext2fs_swap_super): Swap the compression usage bitmap.
2145
2146 2000-02-08    <tytso@snap.thunk.org>
2147
2148         * bitops.h (ext2fs_mark_generic_bitmap, ext2fs_unmark_generic_bitmap,
2149                 ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap,
2150                 ext2fs_mark_inode_bitmap, ext2fs_unmark_inode_bitmap):
2151                 Change to return the previous state of the bit that is
2152                 being marked or unmarked.  For speed optimization.
2153         
2154 2000-02-02  Theodore Ts'o  <tytso@valinux.com>
2155
2156         * getsize.c, ismounted.c: Remove unneeded include of linux/fs.h
2157
2158         * swapfs.c: Remove #ifdef HAVE_EXT2_INODE_VERSION since it's not
2159                 needed any more; we know it will always be i_generation.
2160                 Add support for swapping the high bits of the uid and gid.
2161
2162 1999-11-19    <tytso@valinux.com>
2163
2164         * mkdir.c (ext2fs_mkdir): Only update the parent's inode link
2165                 counts if the link was successful.  Patch suggested by
2166                 jeremy@goop.org.
2167
2168         * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
2169                 the source directory.
2170
2171 1999-11-10    <tytso@valinux.com>
2172
2173         * Release of E2fsprogs 1.18
2174
2175 1999-11-08    <tytso@valinux.com>
2176
2177         * Makefile.in (tst_badblocks): Add freefs.o to the object list,
2178                 since ext2fs_badblocks_list_free was moved to freefs.c.
2179
2180         * tst_badblocks.c: Use the newer badblocks API names.  Add
2181                 duplicate blocks to the test inputs to test dealing with
2182                 adding blocks which are already in the badblocks list.
2183
2184         * badblocks.c (ext2fs_badblocks_list_add): If appending to the end
2185                 of the list, use a shortcut O(1) operations instead of an
2186                 O(n) operation.  (Idea suggested by David Beattie.)
2187
2188         * freefs.c (ext2fs_free): Use ext2fs_badblocks_list_free() instead
2189                 of badblocks_list_free(), to save a procedure call.
2190
2191 1999-10-26    <tytso@valinux.com>
2192
2193         * Release of E2fsprogs 1.17
2194
2195 1999-10-26    <tytso@valinux.com>
2196
2197         * ext2fs.h: Add kludge to deal with the fact that egcs cpp doesn't
2198                 seem to handle ~0UL the same way as they used to.
2199
2200 1999-10-25    <tytso@valinux.com>
2201
2202         * nt_io.c (_OpenNtName): Open the device using
2203                 FILE_SYNCHRONOUS_IO_NONALERT instead of
2204                 FILE_SYNCHRONOUS_IO_ALERT
2205                 (nt_open): At the end of the device open routine, unlock 
2206                 the drive but do not dismount it.
2207
2208         * initialize.c (CREATOR_OS): Use __GNU__ instead of __gnu__ to
2209                 detect the Hurd OS.
2210
2211 1999-10-22    <tytso@valinux.com>
2212
2213         * Release of E2fsprogs 1.16
2214
2215 1999-10-22    <tytso@valinux.com>
2216
2217         * mkdir.c (ext2fs_mkdir): Pass EXT2_FT_DIR flag to ext2fs_link().
2218
2219         * link.c (ext2fs_link): This call now uses the low three bits of
2220                 the flags parameter to pass the directory filetype
2221                 information; it will set the directory entry FILETYPE
2222                 information if the filesystem supports it.
2223
2224         * newdir.c (ext2fs_new_dir_block): If the FILETYPE superblock
2225                 option is set, then create the '.' and '..' entries with
2226                 the filetype set to EXT2_FT_DIR.
2227
2228 1999-09-24    <tytso@valinux.com>
2229
2230         * nt_io.c: New file which supports I/O under Windows NT.
2231
2232 1999-09-07    <tytso@valinux.com>
2233
2234         * ext2fs.h: Add new fields for journalling and define new
2235                 feature bits used by newer filesystems: IMAGIC_INODES,
2236                 HAS_JOURNAL, RECOVER.
2237
2238         * expanddir.c (ext2fs_expand_dir, expand_dir_proc): Change where
2239                 we update the inode block count and size files so that the
2240                 block count field is updated correctly when we create an
2241                 indirect block.
2242
2243 1999-07-18  Theodore Ts'o  <tytso@valinux.com>
2244
2245         * Release of E2fsprogs 1.15
2246
2247 1999-06-23    <tytso@valinux.com>
2248
2249         * swapfs.c (ext2fs_swap_inode): Add compatibility for Linux 2.3
2250                 kernels that use i_generation instead of i_version.  Patch
2251                 supplied by Jon Bright <sircus@sircus.demon.co.uk>.
2252
2253 1999-06-21    <tytso@valinux.com>
2254
2255         * dir_iterate.c (ext2fs_process_dir_block): Check for corrupted
2256                 directory entry before calling the callback function.
2257                 This should prevent some core dumps of insufficiently
2258                 paranoid callback functions.
2259
2260 1999-05-29    <tytso@rsts-11.mit.edu>
2261
2262         * ext2fs.h: Add feature definition for AFS IMAGIC inodes.
2263
2264         * fileio.c (ext2fs_file_open): Remove obsolete comment stating
2265                 that we don't handle writing yet (we do).  Fixed bug where
2266                 we weren't allocating a big enough buffer for ext2_bmap.
2267
2268 1999-05-03    <tytso@rsts-11.mit.edu>
2269
2270         * openfs.c (ext2fs_open): Check to make sure that the number of
2271                 blocks per group is not zero --- if so, it must be a bad
2272                 superblock!
2273
2274 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2275
2276         * Release of E2fsprogs 1.14
2277
2278 1999-01-07  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2279
2280         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Check to see if
2281                 the inode number is zero; if it's zero, return
2282                 EXT2_ET_BAD_INODE_NUM.
2283
2284 1998-12-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2285
2286         * initialize.c (ext2fs_initialize): Use EXT2_FIRST_INODE instead
2287                 of EXT2_FIRST_INO to ensure compatibility with Linux 1.2
2288                 header files.
2289
2290 Mon Jan  4 02:32:09 1999  Theodore Y. Ts'o  <tytso@mit.edu>
2291
2292         * llseek.c (ext2fs_llseek): Change ext2fs_llseek() in the
2293                 non-Linux case to use EINVAL by default, unless it isn't
2294                 defined, in which case we use EXT2_ET_INVALID_ARGUMENT
2295                 instead.
2296
2297 1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2298
2299         * Release of E2fsprogs 1.13
2300
2301 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2302
2303         * Makefile.in: Updated dependencies.
2304
2305 1998-09-22  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2306
2307         * initialize.c (ext2fs_initialize): Make sure that we allocate
2308                 enough inodes so that we can make a valid filesystem.
2309
2310 1998-09-02  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2311
2312         * rw_bitmaps.c: Fixed signed/unsigned warnings.
2313
2314         * fileio.c (ext2fs_file_set_size): Remove unneeded extern from the
2315                 function declaration.
2316
2317         * dblist.c (make_dblist): Add safety check in case the dblist
2318                 pointer passed in is null (in which case, assign it to
2319                 fs->dblist).  Fixed some signed/unsigned warnings.
2320
2321         * bmap.c: Make addr_per_block be of type blk_t to avoid
2322                 signed/unsigned warnings.
2323
2324         * namei.c (ext2fs_follow_link): Remove uneeded extern from the
2325                 function declaration.
2326
2327         * get_pathname.c (get_pathname_proc): Use return value from
2328                 ext2fs_get_mem, instead of checking if &gp->name is
2329                 NULL.
2330
2331         * dir_iterate.c (ext2fs_process_dir_block): 
2332         * dblist_dir.c (ext2fs_dblist_dir_iterate): Remove uneeded extern
2333                 from the function declaration.
2334
2335         * block.c (ext2fs_block_iterate2): If the read_inode call fails,
2336                 return the error directly instead of jumping to the
2337                 cleanup routine, since we don't need to do any cleanup.
2338
2339         * alloc_table.c (ext2fs_allocate_group_table): Make this
2340                 function take a dgrp_t for its group argument.
2341
2342         * ext2fs.h: Make dgrp_t an __u32 type, and make
2343                 fs->desc_group_count be of type dgrp_t.
2344
2345 1998-07-27  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2346
2347         * badblocks.c (ext2fs_badblocks_list_add): Use a bigger increment
2348                 than 10 blocks when we need to expand the size of the
2349                 badblocks list.
2350
2351 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2352
2353         * Release of E2fsprogs 1.12
2354
2355 1998-06-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2356
2357         * closefs.c (ext2fs_flush): Update the s_block_group_nr field as
2358                 appropriate for all of the block group copies, so that
2359                 it's clear where the beginning of the filesystem is on the
2360                 disk.  (For when the partition table gets scrod.)
2361
2362         * ext2fs.h: Change the name of the feature from
2363                 EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE to
2364                 EXT2_FEATURE_INCOMPAT_FILESIZE (to match with the kernel).
2365
2366 1998-06-18  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2367
2368         * inode.c (get_next_blockgroup): Fix bug where if
2369                 get_next_blockgroup() is called early because of a missing
2370                 inode table in a block group, the current_inode counter
2371                 wasn't incremented correctly.
2372
2373 1998-06-16  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2374
2375         * read_bb.c (ext2fs_read_bb_inode): Make function more robust
2376                 against a completely trashed bad block inode.
2377
2378 1998-06-10  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2379
2380         * alloc_tables.c (ext2fs_allocate_group_table): Fix bug so that if
2381                 the stride length hits a bad value, we retry the block
2382                 allocation starting at the beginning of the block group.
2383
2384         * ext2fs.h, bb_inode.c, block.c, bmove.c, dir_iterate.c,
2385                 expanddir.c, ext2fsP.h, read_bb.c: Change blkcnt_t to be
2386                 e2_blkcnt_t to avoid collision with LFS API.
2387
2388 1998-05-01  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2389
2390         * initialize.c (ext2fs_initialize): Initialize s_inodes_count in a
2391                 way that avoids overflows on disk sizes greater than 4GB.
2392
2393 1998-04-28  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2394
2395         * ext2fs.h: Define EXT2_QSORT_TYPE appropriately for the
2396                 return type for comparison functions for qsort.
2397
2398         * dblist.c (dir_block_cmp): Use EXT2_QSORT_TYPE in function
2399                 declaration.
2400
2401 1998-04-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2402
2403         * ext2fs.h, bitops.h: Add support for the Watcom C compiler to do
2404                 inline functions.
2405
2406         * ext2fs.h, dosio.c: Use asm/types.h instead of linux/types.h to
2407                 evade a potential problem with glibc's header files trying
2408                 to spike out linux/types.h.
2409
2410         * ext2fs.h (ext2fs_resize_mem): Change the function prototype to
2411                 include the old size of the memory, which is needed for
2412                 some braindamaged memory allocation systems that don't
2413                 support realloc().
2414
2415         * badblocks.c (ext2fs_badblocks_list_add):
2416           bb_inode.c (clear_bad_block_proc):
2417           dblist.c (ext2fs_add_dir_block):
2418           icount.c (insert_icount_el):
2419           irel_ma.c (ima_put):
2420           rs_bitmap.c (ext2fs_resize_generic_bitmap): Update functions to
2421                   pass the old size of the memory to be resized to
2422                   ext2fs_resize_mem(). 
2423
2424 1998-03-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2425
2426         * Makefile.in: Change to use new installation directory variables
2427                 convention.  Fix uninstall rules to take $(DESTDIR) into
2428                 account.
2429
2430 1998-03-29  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2431
2432         * ext2fs.h: If __STRICT_ANSI__ is defined and we're on a platform
2433                 with 32 bit longs, then we need to manually define __s64
2434                 and __u64, since the current kernel header files don't
2435                 define these if __STRICT_ANSI__ is defined.  This is a
2436                 problem if we are compiling with full GCC warnings, since
2437                 we do need 64 bit support.
2438         
2439         * Makefile.in (OBJS): Remove bmove.o from files to be built,
2440                 since we're not using ext2fs_move_blocks() and there
2441                 is some question as to its usefulness in its current
2442                 form.
2443
2444         * bmap.c (block_bmap): Remove unused function.
2445
2446         * bmove.c (process_block): Fix -Wall warning.
2447
2448 1998-03-23  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2449
2450         * block.c (ext2fs_block_iterate3): Make the ref_offset field
2451                 contain the offset into the inode.i_blocks array when
2452                 ref_block is zero.  Since we haven't done a formal
2453                 release of e2fsprogs since block_iterate2 was first
2454                 introduced, I removed block_iterate2, and renamed
2455                 block_iterate3 to be block_iterate2.
2456
2457         * bb_inode.c, bmove.c, dblist_dir.c, dir_iterate.c,
2458                 expanddir.c, ext2fs.h, ext2fsP.h, read_bb.c: Change
2459                 use of block_iterate and block_iterate2 to
2460                 block_iterate2 with the new prototype for the
2461                 interator function.  (using blkcnt_t forr blockcount)
2462
2463 1998-03-21  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2464
2465         * ext2fs.h: Add new superblock fields (s_algorithm_usage_bitmap, 
2466                 s_prealloc_blocks, s_prealloc_dir_blocks).  Added
2467                 conditional defines of new features COMPAT_DIR_PREALLOC,
2468                 RO_COMPAT_LARGE_FILE RO_COMPAT_BTREE_DIR,
2469                 INCOMPAT_COMPRESSION, INCOMPAT_DIRNAME_SIZE.  Changed
2470                 the library to declare that we support COMPAT_DIR_PREALLOC, 
2471                 INCOMPAT_DIRNAME_SIZE, RO_COMPAT_LARGE_FILE.
2472
2473         * fileio.c: Rename function ext2fs_file_llseek to be
2474                 ext2fs_file_lseek, which is more accurate.
2475
2476         * block.c: Add new function ext2fs_block_iterate3 which calls
2477                 the iterator function with the blockcount argument of
2478                 type blkcnt_t.  This version of the function is
2479                 allowed to handle large files; the other fucntions are
2480                 not.
2481
2482         * ext2fs.h: Add new type blkcnt_t
2483
2484         * ext2_err.et.in: Add error code EXT2_ET_FILE_TOO_BIG
2485
2486         * block.c (ext2fs_block_iterate2): Fix bug where the block count
2487                 field wasn't getting correctly incremented for sparse
2488                 files when the indirect or doubly-indirect block
2489                 specified in the inode was zero.
2490
2491 Sun Mar  8 22:42:47 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2492
2493         * unlink.c (unlink_proc): 
2494         * lookup.c (lookup_proc): 
2495         * link.c (link_proc): 
2496         * get_pathname.c (get_pathname_proc): 
2497         * dir_iterate.c (ext2fs_process_dir_block): Mask off high 8 bits
2498                 from dirent->name_len, so it can be used for other
2499                 purposes.
2500
2501         * ext2fs.h: Add definition of EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE,
2502                 and indicate that we have support for this incompatible
2503                 option.
2504
2505 Mon Feb 23 08:46:33 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2506
2507         * ext2_err.et.in: Added new error code, EXT2_ET_CANCEL_REQUESTED.
2508
2509 Fri Feb 20 23:58:01 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2510
2511         * dblist.c (ext2fs_get_num_dirs): Improve the estimation of the
2512                 number of directories when the block group information is
2513                 unreliable.
2514
2515 1998-02-20  Theodore Y. Ts'o  <tytso@edt.mit.edu>
2516
2517         * inode.c (ext2fs_get_next_inode): Always do the check to see if the
2518                 inode table is missing so that we catch the case where the
2519                 first block group is missing.
2520
2521         * getsize.c, ismounted.c, unix_io.c: #include errno.h since it's
2522                 needed.
2523
2524 Mon Feb 16 16:16:00 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2525
2526         * ext2_io.h, ext2fs.h: Protect against being included multiple times.
2527
2528         * bmove.c: #include ext2fsP.h instead of "ext2fs/ext2fs.h"
2529
2530         * test_io.c (test_flush): Add a debugging printf when the flush
2531                 method is called.
2532
2533         * rw_bitmaps.c (ext2fs_read_bitmaps): If the bitmaps are already
2534                 read in, return right away.
2535
2536 Sun Feb  1 08:20:24 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2537
2538         * bitops.h: Don't try to do i386 inline asm functions if the
2539                 compiler isn't GCC.
2540
2541         * ext2fs.h: If EXT2_FLAT_INCLUDES is defined, #include e2_types.h,
2542                 instead of linux/types.h, and e2_bitops.h instead of
2543                 ext2fs/bitops.h.
2544
2545         * icount.c, version.c: Don't #include <et/com_err.h>, as it isn't
2546                 necessary. 
2547
2548 Sat Jan 17 13:13:31 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2549
2550         * inode.c (ext2fs_open_inode_scan): Initialize the group variables
2551                 so that we don't need to call get_next_blockgroup() the
2552                 first time around.  Saves a bit of time, and prevents us
2553                 from needing to assign -1 to current_group (which is an
2554                 unsigned value).
2555
2556         * icount.c (insert_icount_el): Cast the estimated number of inodes
2557                 from a float to an ino_t.
2558
2559         * alloc.c, alloc_tables.c, badlbocks.c, bb_compat.c, bb_inode.c,
2560                 bitmaps.c, bitops.c, block.c, bmap.c, bmove.c, brel_ma.c,
2561                 check_desc.c, closefs.c, cmp_bitmaps.c, dblist.c,
2562                 dblist_dir.c, dir_iterate.c, dirblock.c, dupfs.c,
2563                 expanddir.c, ext2fs.h, fileio.c, freefs.c,
2564                 get_pathname.c, getsize.c, icount.c, initialize.c,
2565                 inline.c, inode.c, irel_ma.c, ismounted.c, link.c,
2566                 lookup.c, mkdir.c, namei.c, native.c, newdir.c,
2567                 openfs.c, read_bb.c, read_bb_file.c, rs_bitmap.c,
2568                 rw_bitmaps.c, swapfs.c, test_io.c, tst_badblocks.c,
2569                 tst_getsize.c, tst_iscan.c, unix_io.c, unlink.c,
2570                 valid_blk.c, version.c: If EXT2_FLAT_INCLUDES is
2571                 defined, then assume all of the
2572                 ext2-specific header files are in a flat directory.
2573
2574         * block.c, bmove.c, dirblock.c, fileio.c: Explicitly cast
2575                 all assignments from void * to be compatible with C++.
2576
2577 Tue Jan  6 11:28:15 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2578
2579         * closefs.c (ext2fs_flush): Add a call to io_channel_flush() to
2580                 make sure the contents of the disk are flushed to disk.
2581
2582 Mon Dec 29 14:39:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2583
2584         * dblist.c (ext2fs_add_dir_block): Change new to be new_entry to
2585                 avoid C++ namespace clash.
2586
2587         * bitmaps.c (ext2fs_copy_bitmap): Change new to be new_map to
2588                 avoid C++ namespace clash.
2589
2590         * ext2fs.h, bb_inode.c, block.c, bmove.c, brel.h, brel_ma.c,
2591                 irel.h, irel_ma.c, dblist.c, dblist_dir.c, dir_iterate.c,
2592                 ext2fsP.h, expanddir.c, get_pathname.c, inode.c, link.c,
2593                 unlink.c: Change private to be priv_data (to avoid C++
2594                 namespace clash)
2595
2596 Fri Nov 28 09:26:31 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2597
2598         * dblist.c (ext2fs_get_num_dirs): Make ext2fs_get_num_dirs more
2599                 paranoid about validating the directory counts from the
2600                 block group information.
2601
2602         * all files: Don't include stdlib.h anymore; include it in
2603                 ext2_fs.h, since that file requires stdlib.h
2604
2605 Thu Nov 20 16:07:38 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2606
2607         * expanddir.c (ext2fs_expand_dir): Check to make sure the block
2608                 bitmap is loaded, and return an error if it is not.
2609                 (expand_dir_proc): Only use ext2fs_write_dir_block when
2610                 writing a directory block, not when writing out a fresh
2611                 indirect block.
2612
2613 Tue Nov 11 22:46:45 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2614
2615         * Makefile.in, tst_getsize.c: Added new file which is used to test
2616                 the ext2fs_get_device_size function.
2617
2618         * ext2_err.et.in (EXT2_ET_UNIMPLEMENTED): Added new error code.
2619
2620 Sun Nov  2 20:36:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2621
2622         * ext2fs.h: Make ext2fs_get_mem take an unsigned argument.
2623
2624         * fileio.c (ext2fs_file_get_size, ext2fs_file_set_size,
2625                 ext2fs_file_get_fs): New functions added.
2626
2627
2628 Fri Oct 31 12:16:52 1997    <tytso@EDT.MIT.EDU>
2629
2630         * bitops.c (ext2fs_warn_bitmap, ext2fs_warn_bitmap2): Don't call
2631                 com_err if OMIT_COM_ERR is defined.
2632
2633 Thu Oct 30 11:33:57 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2634
2635         * Rename new error codes to _ET_ in them for consistency.
2636
2637 Sat Oct 25 00:06:58 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2638
2639         * [all files, basically]: Added definition of ext2fs_get_mem, 
2640                 ext2fs_free_mem, and ext2fs_resize_mem in ext2fs.h, and
2641                 changed all library routines to use these wrapper functions.
2642
2643         * dblist.c, mkdir.c: use EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND
2644                 instead of the system error messages.
2645         
2646         * ext2_err.et.in: Added new error messages EXT2_DIR_EXISTS and
2647                 EXT2_DB_NOT_FOUND
2648
2649         * ext2fs.h: Added function declarations and constants for bmap.c
2650                 and fileio.c.
2651
2652         * ext2_err.et.in: Added new error messages EXT2_FILE_RO and
2653                 EXT2_ET_MAGIC_EXT2_FILE
2654
2655         * Makefile.in: Added files bmap.c and fileio.c, and temporarily
2656                 commented out brel_ma.c and irel_ma.c
2657
2658         * bmap.c: New file which maps a file's logical block number to its
2659                 physical block number.
2660
2661         * fileio.c: New file which implements simple file reading and
2662                 writing primitives.
2663
2664         * alloc.c (ext2fs_alloc_block): New function which allocates a
2665                 block, zeros it, and updates the filesystem accounting
2666                 records appropriately.
2667
2668 Wed Oct 22 16:47:27 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2669
2670         * ext2_err.et.in: Added new error codes: EXT2_NO_MEMORY,
2671                 EXT2_INVALID_ARGUMENT, EXT2_BLOCK_ALLOC_FAIL,
2672                 EXT2_INODE_ALLOC_FAIL, EXT2_NOT_DIRECTORY
2673
2674         * Change various library files to use these functions instead of
2675                 EINVAL, ENOENT, etc.
2676
2677 Mon Oct 20 19:32:40 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2678
2679         * llseek.c: Check HAVE_LLSEEK_PROTOTYPE to see whether or not we
2680                 need to declare llseek().
2681
2682 Sun Oct 19 18:56:22 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2683
2684         * Rename io.h to be ext2_io.h (avoid namespace collisions)
2685
2686         * Add #ifdef's for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H
2687
2688 Fri Oct  3 13:35:59 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2689
2690         * llseek.c (ext2fs_llseek): Fix type error for ext2fs_llseek()
2691
2692         * icount.c (ext2fs_icount_validate): 
2693         * bmove.c (process_block): Fix lint error in type for fprintf().
2694
2695 Mon Sep 15 11:45:09 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2696
2697         * inode.c (ext2fs_check_directory): Add support for the callback
2698                 to return the error code EXT2_ET_CALLBACK_NOTHANDLED.
2699
2700 Thu Sep  4 12:28:22 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2701
2702         * bitmaps.c (ext2fs_set_bitmap_padding): New function which sets the
2703                 padding of the bitmap to be all one's.
2704
2705 Wed Sep  3 14:27:30 1997  Theodore Y. Ts'o  <tytso@edt.mit.edu>
2706
2707         * llseek.c: Added missing semicolon to glibc fixup declaration of
2708         llseek().
2709
2710         * bmove.c: Add #include of errno.h
2711
2712 Sat Aug 23 22:47:46 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2713
2714         * Makefile.in (ELF_SO_VERSION): Bump version to be 2.4 since we've
2715                 added a new field to the io_channel (app_data).
2716
2717         * io.h: Add a new element to the io_channel structure, app_data.
2718
2719         * initialize.c, openfs.c: Set io->app_data to point at the
2720                 filesystem handle.
2721
2722 Thu Aug 14 08:14:17 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2723
2724         * io.h: Change the prototype of ext2fs_llseek() to use int's
2725                 instead of unsigned int's.
2726
2727         * llseek.c: Change to allow PIC and !HAVE_LLSEEK.  Add a prototype
2728                 to make life easer for GNU Libc 2.
2729
2730         * rw_bitmaps.c: On the PowerPC, the big-endian variant of the ext2
2731                 filesystem has its bitmaps stored as 32-bit words with bit
2732                 0 as the LSB of each word.  Thus a bitmap with only bit 0
2733                 set would be, as a string of bytes, 00 00 00 01 00 ...  To
2734                 cope with this, we byte-reverse each word of a bitmap if
2735                 we have a big-endian filesystem, that is, if we are *not*
2736                 byte-swapping other word-sized numbers.
2737
2738 Mon Aug 11 03:30:48 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2739
2740         * dosio.c: New file to do DOS/BIOS disk accesses.
2741
2742         * namei.c (open_namei): Make pathlen be of type size_t.
2743
2744         * llseek.c: Always #include stdlib.h since it's need to define
2745                 size_t.  
2746
2747         * io.h: Use errcode_t for magic numbers.
2748
2749         * icount.c (get_icount_el): Use size_t where appropriate
2750         
2751         * dupfs.c (ext2fs_dup_handle): 
2752         * dblist.c (dir_block_cmp): Use size_t where appropriate.
2753
2754         * read_bb.c (ext2fs_read_bb_inode): 
2755         * cmp_bitmaps.c (ext2fs_compare_inode_bitmap): Use blk_t, ino_t
2756                 and size_t where appropriate.
2757
2758         * closefs.c (ext2fs_flush): Use dgrp_t instead of int where
2759                 appropriate.
2760
2761         * openfs.c (ext2fs_open): 
2762         * check_desc.c (ext2fs_check_desc): Use blk_t instead of int where
2763                 appropriate.
2764
2765         * rw_bitmaps.c (read_bitmaps): 
2766         * irel_ma.c: 
2767         * inode.c (ext2fs_write_inode): 
2768         * initialize.c (ext2fs_initialize):
2769         * brel_ma.c: Fix to make be 16-bit safe.
2770
2771         * link.c (ext2fs_link): 
2772         * unlink.c (ext2fs_unlink):
2773         * lookup.c (lookup_proc): 
2774         * ismounted.c (ext2fs_check_if_mounted): 
2775         * block.c (xlate_func): Add #pragma argsused for Turbo C.
2776
2777 Sun Aug 10 10:05:22 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2778
2779         * block.c (ext2fs_block_iterate2): Use retval which is a errcode_t
2780                 type.
2781
2782         * bitmaps.c (make_bitmap): Use size_t instead of int where
2783                 appropriate.
2784
2785         * bb_inode.c (set_bad_block_proc): Add #pragma argsused for Turbo C.
2786
2787         * alloc.c (ext2fs_new_inode): Use ino_t instead of int for the
2788                 group number.
2789
2790         * get_pathname.c: Use ino_t instead of int where appropriate.
2791
2792         * ext2fs.h: Make the magic structure element be errcode_t instead
2793                 of int.
2794
2795         * alloc.c alloc_tables.c badblocks.c bb_compat.c bb_inode.c
2796                 bitmaps.c block.c bmove.c brel_ma.c check_desc.c closefs.c
2797                 cmp_bitmaps.c dblist.c dblist_dir.c dir_iterate.c
2798                 dirblock.c dupfs.c expanddir.c freefs.c get_pathname.c
2799                 icount.c initialize.c inline.c inode.c irel_ma.c link.c
2800                 llseek.c lookup.c mkdir.c namei.c newdir.c read_bb.c
2801                 read_bb_file.c rs_bitmap.c rw_bitmaps.c swapfs.c 
2802                 test_io.c tst_badblocks.c tst_iscan.c unix_io.c unlink.c
2803                 valid_blk.c version.c: Add an #ifdef for HAVE_UNISTD_H
2804
2805 Tue Jun 17 01:33:20 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2806
2807         * unix_io.c (unix_read_blk): If ext2fs_llseek() fails, but errno
2808                 is zero, then return EXT2_IO_LLSEEK_FAILED.
2809
2810         * ext2_err.et.in: Add a new error code, EXT2_IO_LLSEEK_FAILED.
2811
2812         * Release of E2fsprogs 1.11
2813
2814 Mon Jun 16 23:53:06 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2815
2816         * dblist.c (ext2fs_dblist_count): Added new function which returns
2817                 the number of directory blocks in dblist.
2818
2819 Sat Jun 14 01:39:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2820
2821         * unix_io.c (unix_flush): Make the io_channel flush function do a
2822                 fsync to flush the kernel buffers to disk.
2823
2824 Wed Jun 11 18:25:31 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2825
2826         * inode.c (ext2fs_inode_scan_goto_blockgroup): Fix bug; the
2827                 current inode number wasn't being set by the
2828                 goto_blockgroup function.
2829
2830 Mon Jun  9 10:45:48 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2831
2832         * bmove.c (ext2fs_move_blocks): New function which takes a bitmap
2833                 of blocks which need to be moved, and moves those blocks
2834                 to another location in the filesystem.
2835
2836         * rs_bitmap.c (ext2fs_resize_generic_bitmap): When expanding a
2837                 bitmap, make sure all of the new parts of the bitmap are
2838                 zero. 
2839
2840 Sun Jun  8 16:24:39 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2841
2842         * bitmaps.c (ext2fs_copy_bitmap): Fix bug; the destination bitmap
2843                 wasn't being returned to the caller.
2844
2845         * alloc_tables.c (ext2fs_allocate_group_table): Add new function
2846                 ext2fs_allocate_group_table() which sets the group tables
2847                 for a particular block group.  The relevant code was
2848                 factored out of ext2fs_allocate_tables().
2849
2850         * dblist.c (make_dblist): Adjust the initial size of the directory
2851                 block list to be a bit more realistic (ten plus twice the
2852                 number of directories in the filesystem).
2853
2854 Thu May  8 22:19:09 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2855
2856         * badblocks.c (ext2fs_badblocks_list_test): Fix bug where
2857                 ext2fs_badblocks_list_test would test the list (and exceed
2858                 array boundaries) if there were no bad blocks on the bad
2859                 blocks list.  (Showed up when user tried: mke2fs -c -b 4096).
2860
2861 Thu Apr 24 12:16:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
2862
2863         * Release of E2fsprogs version 1.10
2864
2865 Thu Apr 24 10:13:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
2866
2867         * alloc_tables.c (ext2fs_allocate_tables): Correctly place the
2868                 inode and block bitmaps based on the RAID 0 stride
2869                 parameter (which is passed by mke2fs).
2870
2871         * ext2fs.h: Add "stride" parameter to ext2_filsys, to be used by
2872                 mke2fs to communicate the stride length to
2873                 ext2fs_allocate_tables()
2874
2875 Wed Apr 23 21:50:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
2876
2877         * initialize.c (ext2fs_initialize): Fix to compile under Linux 1.2
2878                 systems.  (We can't assume that the new filesystem types
2879                 are supported.)
2880
2881 Wed Apr 23 18:40:53 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2882
2883         * alloc_tables.c (ext2fs_allocate_tables): Make sure that we
2884                 allocate the inode and block bitmaps inside block group at
2885                 all times.
2886
2887 Mon Apr 21 00:06:28 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2888
2889         * alloc.c (ext2fs_new_block): Fix bug where if goal==0 and the
2890                 filesystem has no free blocks, ext2fs_new_block would loop
2891                 forever.
2892
2893         * dupfs.c (ext2fs_dup_handle): Duplicate an ext2 filesystem handle
2894
2895         * freefs.c (ext2fs_free_inode_cache): Decrement refcount and only
2896                 free if refcount goes to zero.
2897
2898         * inode.c (create_icache): Initialize refcount to 1.
2899
2900         * ext2fsP.h: Added refcount to ext2_inode_cache
2901
2902         * dblist.c (ext2fs_copy_dblist): New function to copy a directory
2903                 block list.
2904
2905         * badblocks.c (ext2fs_badblocks_copy): New function to copy a
2906                 badblocks structure.
2907
2908 Sun Apr 20 23:19:51 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2909
2910         * bitmaps.c (ext2fs_copy_bitmap): New function to copy a bitmap.
2911
2912         * unix_io.c, test_io.c (unix_open, test_open): Initialize the
2913                 refcount to 1.
2914                 (unix_close, test_close): Decrement the refcount and only
2915                 close the io_channel if the refcount goes to 0.
2916
2917         * io.h: Add refcount to the io_channel structure.  Add new macro
2918                 interface io_channel_bumpcount() to bump the refcount.
2919
2920 Thu Apr 17 20:25:03 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2921
2922         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Use the inode
2923                 cache in the filesystem handle, instead of the inode cache
2924                 in a static variable.
2925
2926         * freefs.c: Added static function to free the inode cache (called by
2927                 ext2fs_free). 
2928
2929         * ext2fsP.h: Added definition of the ext2_inode_cache structures.
2930
2931         * ext2fs.h: Added pointer to the inode_cache structure.
2932
2933         * block.c (block_iterate_ind, block_iterate_dind, 
2934                 block_iterate_tind): If there are holes in the indirect,
2935                 doubly indirect, or triply indirect blocks, increment the
2936                 block count field automatically.
2937
2938 Thu Apr 17 12:23:38 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2939
2940         * Release of E2fsprogs version 1.09
2941
2942 Mon Apr 14 20:38:56 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2943
2944         * version.c (ext2fs_parse_version_string): Check the passed in
2945                 version string (instead of the hard-coded one).
2946
2947         * alloc_tables.c (ext2fs_allocate_tables): If the last block is
2948                 greater filesystem size, clamp it to prevent allocating a
2949                 block or inode bitmap beyond the filesystem.
2950
2951         * initialize.c (ext2fs_initialize): Fix bug where the metatdata
2952                 overhead calculation was accidentally removed.
2953
2954 Fri Apr 11 18:56:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2955
2956         * Release of E2fsprogs version 1.08
2957
2958 Thu Apr 10 13:15:15 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2959
2960         * dblist.c (ext2fs_set_dir_block): New function which sets the
2961                 block of a dblist entry, given the directory inode and
2962                 blockcnt.
2963
2964 Sat Apr  5 12:42:42 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2965
2966         * alloc_tables.c (ext2fs_allocate_tables): Allocate the bitmap and
2967                 inode bitmaps at staggered locations across the block
2968                 groups, to avoid concentrating the bitmaps on a small
2969                 number of disks when using striped RAID arrays.
2970
2971         * initialize.c (ext2fs_initialize): By default, choose the maximum
2972                 possible number of blocks per group (based on the size of
2973                 the bitmaps in the blocksize).
2974
2975 Fri Apr  4 11:28:16 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
2976
2977         * initialize.c (ext2fs_initialize): Add support for
2978                 EXT2_COMPAT_SPARSE_SUPER feature.
2979
2980         * closefs.c (ext2fs_bg_has_super): New function to determine
2981                 whether or a particular block group should have a
2982                 superblock and block group descriptor.  Used for the
2983                 EXT2_COMPAT_SPARSE_SUPER feature is turned on.
2984                 (ext2fs_flush):  Check ext2fs_bg_has_super to see whether
2985                 or not the superblock should be written out for the block
2986                 group. 
2987
2988         * ext2fs.h (EXT2_COMPAT_SPARSE_SUPER): Define compatibility flag
2989                 for sparse duplicate superblocks.
2990
2991         * version.c (ext2fs_get_library_version): New function which
2992                 returns the library version.
2993
2994         * version.c (ext2fs_parse_version_string): New function which
2995                 parses a version string and returns a version number,
2996                 so application programs can compare version numbers as
2997                 integers.
2998
2999 Wed Mar 26 00:43:52 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3000
3001         * icount.c (ext2fs_create_icount): Change function so that it also
3002                 takes a new argument which contains a "hint" icount
3003                 structure.  This "hint" icount allows the create function
3004                 to set up the sorted list in advance.  This reduces
3005                 significantly the amount of data moving needed to insert
3006                 these inodes into the list later.
3007         
3008         * icount.c (ext2fs_icount_validate): New function which validates
3009                 that the icount structure's rep invariant.
3010
3011         * icount.c (get_icount_el): Completely revamped implementation
3012                 to subsume put_icount_el().  Put_icount_el() used to
3013                 use an O(N) implementation to insert in the middle
3014                 of the icount list.  It now uses a O(ln N) to search
3015                 for where the icount should be inserted, and then uses
3016                 a memcpy to move the list down (instead of a for loop).
3017         
3018         * icount.c (ext2fs_icount_fetch, ext2fs_icount_store,
3019                 ext2fs_icount_increment, ext2fs_icount_decrement): Check
3020                 to see if the inode is within bounds; if it isn't, return
3021                 EINVAL.
3022
3023         * bitops.h (ext2fs_test_generic_bitmap): Fix error message given
3024                 when a bad inode number is passed to test_generic_bitmap
3025                 to be EXT2FS_TEST_ERROR instead of the wrong
3026                 EXT2FS_UNMARK_ERROR.
3027
3028 Wed Mar 12 13:32:05 1997  Theodore Y. Ts'o  <tytso@mit.edu>
3029
3030         * Release of E2fsprogs version 1.07
3031
3032 Sun Mar  2 16:46:18 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3033
3034         * Makefile.in (ELF_VERSION): Change version to be 2.2
3035
3036 Tue Feb 11 14:54:02 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3037
3038         * alloc.c (ext2fs_get_free_blocks): Change routine to use
3039                 ext2fs_fast_test_block_bitmap_range().
3040
3041         * bitops.h (ext2fs_fast_test_block_bitmap_range,
3042                 ext2fs_test_block_bitmap_range: New inline functions which
3043                 test to see whether a contiguous range of blocks is
3044                 available.
3045
3046 Thu Feb  6 10:00:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3047
3048         * badblocks.c (ext2fs_badblocks_list_create): Rename sybmols to use
3049                 use ext2fs_badblocks_* instead of badblocks_*
3050
3051         * bb_compat.c: New file which translates between old badblocks_*()
3052                 names to ext2fs_badblocks_*()
3053
3054         * unlink.c (ext2fs_unlink): New file, moved ext2fs_unlink() from
3055                 link.c (since e2fsck doesn't use ext2fs_unlink()).
3056
3057         * rs_bitmap.c (ext2fs_resize_generic_bitmap): New file, contains
3058                 bitmap resizing routine moved from bitmaps.c, since e2fsck
3059                 doesn't need to use this function.
3060
3061         * lookup.c (ext2fs_lookup): Moved ext2fs_lookup to its own file,
3062                 since e2fsck only needs ext2fs_lookup.
3063
3064 Mon Feb  3 10:11:40 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3065
3066         * inode.c (ext2fs_open_inode_scan): Set fs->badblocks if it is not
3067                 already set; this is needed so that programs like dump
3068                 which use the inode scan functions will deal with
3069                 filesystems that have bad blocks in the inode table.
3070
3071 Sun Feb  2 00:17:36 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3072
3073         * ext2fs.h (struct_badblocks_list, struct_badblocks_iterate): 
3074                 Moved to ext2fsP.h, since it doesn't need to be part of
3075                 the public interface.
3076
3077         * dir_iterate.c: Move ext2_dir_iterate out of namei.c.
3078
3079 Sat Feb  1 10:14:55 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3080
3081         * dblist.c (ext2fs_get_num_dirs): New file, which implements a
3082                 directory block list abstraction.  (Code moved from
3083                 e2fsck).
3084
3085         * ext2fs.h, inode.c: Moved definition of ext2_struct_inode_scan to
3086                 to inode.c (since no one else should be peeking inside it!)
3087
3088         * valid_blk.c (ext2_inode_has_valid_blocks): New function.
3089
3090         * openfs.c (ext2fs_open): Check the feature set in the ext2
3091                 superblock, and refuse to open filesystems if they contain
3092                 incompatible features.  (Can be overriden with the
3093                 EXT2_FLAG_FORCE 
3094
3095 Sun Jan 12 11:31:46 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3096
3097         * block.c (ext2fs_block_iterate2): Added new function
3098                 ext2fs_block_iterate2 which changes the function
3099                 signature of the callback function to include the
3100                 referencing block and offset.
3101
3102         * inode.c (ext2fs_inode_scan_goto_blockgroup): Added new function
3103                 ext2fs_inode_scan_goto_blockgroup which allows an
3104                 application to jump to a particular block group while
3105                 doing an inode scan.
3106
3107 Wed Jan  1 23:50:12 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3108
3109         * dirblock.c: Include string.h, since we use memcpy().
3110
3111 Tue Dec  3 12:27:29 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3112
3113         * getsize.c (ext2fs_get_device_size): The ioctl BLKGETSIZE returns
3114                 a long not an int; this doesn't matter on i386 machines,
3115                 but it does on Alpha's.
3116         
3117 Fri Nov 29 20:57:37 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3118
3119         * inode.c (ext2fs_write_inode, ext2fs_read_inode): If the inode
3120                 table pointer is NULL, then return an error indicating
3121                 that the inode table is missing.
3122                 (get_next_blockgroup, get_next_blocks,
3123                 ext2fs_get_next_inode): Don't treat a missing inode table
3124                 as permanent error.  Return MISSING_INODE_TABLE, but as an
3125                 advisory error code, much like BAD_BLOCK_IN_INODE_TABLE.
3126
3127         * rw_bitmaps.c (ext2fs_write_block_bitmap,
3128                 ext2fs_write_inode_bitmap): If the inode or block bitmap
3129                 block is zero, then don't write out the inode or block
3130                 bitmap.  The idea here is to avoid stomping on the
3131                 superblock.
3132                 (read_bitmaps): If the inode or block bitmap block is
3133                 zero, then fill in that portion of the inode or block
3134                 bitmap with all zeros.
3135
3136         * inode.c (ext2fs_get_next_inode): Fix bug in handling of bad
3137                 blocks in inode table when the inode table size is
3138                 non-standard (and can therefore span blocks).
3139
3140 Tue Oct 29 20:13:14 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3141
3142         * alloc.c (ext2fs_new_block): Fix fencepost error in
3143                 ext2fs_new_block; make sure we don't try to allocate the
3144                 first block beyond the end of the filesystem.
3145
3146 Mon Oct 14 11:00:48 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3147
3148         * inode.c (check_for_inode_bad_blocks): New function called by
3149                 get_next_blocks() to avoid reading in bad blocks marked in
3150                 fs->badblocks.  Inodes located in bad blocks are returned
3151                 by ext2fs_get_next_inode() returns the error code 
3152                 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE.
3153         
3154         * alloc_tables.c (ext2fs_allocate_tables): New function which
3155                 performs the part of mke2fs's job of allocating the 
3156                 filesystem tables.
3157
3158         * test_io.c (test_close): IO manager which is used for testing
3159                 purposes.
3160
3161 Sun Oct 13 04:31:57 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3162
3163         * inode.c (ext2fs_get_next_inode): Separate out the function of
3164                 setting up for a new block group to get_next_blockgroup().
3165                 Separate out the function of reading in blocks of the
3166                 inode table to get_next_blocks().
3167
3168         * ext2fs.h: Add the badblocks list to the ext2_filsys entry
3169
3170         * badblocks.c (badblocks_list_add, badblocks_list_test): Add
3171                 blocks to the badblock list in sorted order.  This allows
3172                 badblocks_list_test to be coded using a binary search for
3173                 speed.
3174
3175 Tue Oct  8 02:02:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3176
3177         * Release of E2fsprogs version 1.06
3178
3179 Mon Oct  7 00:44:17 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3180
3181         * ext2fs.h, block.c, closefs.c, dirblock.c, inode.c, native.c,
3182                 open.c: Change EXT2_SWAP to EXT2_FLAG_SWAP for
3183                 consistency's sake.
3184         
3185         * closefs.c (ext2fs_flush): If the flag EXT2_MASTER_SB_ONLY is
3186                 set, then only write out the master superblock.
3187
3188 Sun Oct  6 21:45:26 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3189
3190         * block.c (ext2fs_block_iterate): Fixed bug which caused
3191                 block_iterate to fail to handle HURD created filesystems;
3192                 it tested the inode translator field before the inode was
3193                 loaded.
3194
3195 Tue Sep 17 14:08:24 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3196
3197         * initialize.c (ext2fs_initialize): Make sure the description for
3198                 the inode bitmap is set correctly.
3199
3200         * bitmaps.c (ext2fs_allocate_generic_bitmap): Fix minor type typo.
3201
3202 Thu Sep 12 15:23:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3203
3204         * Release of E2fsprogs version 1.05
3205
3206 Sat Sep  7 07:36:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3207
3208         * initialize.c: Override the kernel's idea of default
3209                 checkinterval from 0 (never) to 180 days.
3210
3211 Wed Aug 28 03:20:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3212
3213         * namei.c (ext2fs_namei_follow): New function which follows
3214                 symbolic link (if any) at the target.
3215
3216 Tue Aug 27 01:48:43 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3217
3218         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Add support
3219                 for shortcut function fs->read_inode() and fs->write_inode().
3220                 Added inode_cache to reduce CPU time spent in doing
3221                 byte swapping.
3222
3223         * swapfs.c (ext2fs_swap_super): Swap the new fields in a V2
3224                 superblock.
3225
3226         * namei.c (ext2fs_follow_link): New function.
3227                 (ext2fs_namei): Extended to have support for chasing
3228                 symbolic links.  ext2fs_namei() still returns an inode
3229                 which is a symbolic link.  Symbolic links are only chased
3230                 while resolving the containing directory.  To chase
3231                 symbolic links of the final result, use
3232                 ext2fs_follow_link().
3233
3234 Mon Aug 26 23:46:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3235
3236         * ext2_err.et.in: Added new error code EXT2_ET_SYMLINK_LOOP.
3237
3238         * bitops.h (ext2fs_set_bit, ext2fs_celar_bit): Use asm inlines
3239                 provided by Pete A. Zaitcev (zaitcev@lab.sun.mcst.ru).
3240
3241 Thu Aug 22 00:40:18 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3242
3243         * initialize.c (ext2fs_initialize): On systems where the byte
3244                 order is not i386 compatible, set the swap_byte flag.
3245
3246         * inode.c (inocpy_with_swap): Check to see if inode contains a
3247                 fast symlink before swapping the inode block fields.  This
3248                 required adding a new argument to inocpy_with_swap to
3249                 determine whether the mode field is in host order or not.
3250
3251 Wed Aug 21 00:45:42 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3252
3253         * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit): On
3254                 the sparc, if EXT2_STD_BITOPS set, use the standard
3255                 i386-compatible bitmask operations, instead on the
3256                 non-standard native bitmask operators.
3257
3258 Fri Aug  9 11:11:35 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3259
3260         * block.c (ext2fs_block_iterate): Cause block iterator to return
3261                 the HURD translator block (along with everything else).
3262                 If the flag BLOCK_FLAG_DATA_ONLY is passed to the block
3263                 iterator, then don't return any meta data blocks
3264                 (including the HURD translator).
3265
3266 Wed Jul 17 17:13:34 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3267
3268         * gen_uuid.c: New file, which generates DCE-compatible UUIDs.
3269
3270         * uuid.c: New file, containing UUID utility functions.
3271
3272 Tue Jul 16 10:19:16 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3273
3274         * ext2fs.h: Add a definition of the "real" ext2 superblock.
3275
3276 Fri May 24 14:54:55 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3277
3278         * ext2fs.h: Fix erroneous ino_t type used in block_bitmap type.
3279
3280 Sun May 19 15:39:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3281
3282         * openfs.c (ext2fs_open): If the blocksize in the superblock is
3283                 zero, return the error EXT2_ET_CORRUPT_SUPERBLOCK, since
3284                 that's a basic value that must be correct for the rest of
3285                 the library to work.
3286
3287         * ext2_err.et.in (EXT2_ET_CORRUPT_SUPERBLOCK): Added new error
3288                 code.
3289
3290 Thu May 16 11:12:30 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
3291
3292         * Release of E2fsprogs version 1.04
3293
3294 Wed Mar 27 00:33:40 1996    <tytso@rsts-11.mit.edu>
3295
3296         * Release of E2fsprogs version 1.03
3297
3298 Tue Mar 26 12:06:32 1996    <tytso@rsts-11.mit.edu>
3299
3300         * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit):
3301                 Change the m68k bit numbering for bitmasks to match with
3302                 the bit numbering used by all other ext2 implementations.
3303
3304 Thu Mar  7 03:37:00 1996    <tytso@rsts-11.mit.edu>
3305
3306         * inode.c (ext2fs_get_next_inode, ext2fs_close_inode_scan, 
3307         ext2fs_open_inode_scan): Support dynamically-sized inodes.
3308
3309 Wed Mar  6 12:26:29 1996    <tytso@rsts-11.mit.edu>
3310
3311         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Support
3312                 dynamically-sized inodes.
3313
3314         * openfs.c (ext2fs_open): Allow dynamic revision filesystem to be
3315                 loaded.
3316
3317 Tue Mar  5 03:49:37 1996    <tytso@rsts-11.mit.edu>
3318
3319         * initialize.c (ext2fs_initialize): Catch an error condition where
3320                 the passed in size is *really* too small.
3321
3322         * alloc.c (ext2fs_new_inode): 
3323         * ext2fs.h (EXT2_FIRST_INODE): Add support for dynamic revision to
3324                 get first inode.
3325
3326 Wed Feb 21 15:56:17 1996    <tytso@rsts-11.mit.edu>
3327
3328         * getsize.c (ext2fs_get_device_size): Open the device read-only
3329                 when trying to determine its size.
3330
3331 Wed Jan 31 11:06:08 1996    <tytso@rsts-11.mit.edu>
3332
3333         * Release of E2fsprogs version 1.02
3334
3335 Sat Dec  9 09:57:50 1995    <tytso@rsts-11.mit.edu>
3336
3337         * rw_bitops.c (ext2fs_write_block_bitmap):
3338         * bitops.c (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit):
3339         * bitops.h (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit):
3340                 Rename {test,set,clear}_bit to ext2fs_{test,set,clear}_bit, 
3341                 to avoid conflicts with with kernel include files.  Also
3342                 rename ADDR and CONST_ADDR to EXT2FS_ADDR and
3343                 EXT2FS_CONST_ADDR. 
3344
3345 Thu Oct 26 12:09:16 1995    <tytso@rsts-11.mit.edu>
3346
3347         * ext2_err.et: Updated message in EXT2_ET_BASE to say version 0.5c
3348
3349         * swapfs.c (ext2fs_swap_super): Put an #ifdef check around
3350                 s_def_resuid and s_def_resgid for backwards compatibility.
3351
3352 Fri Oct 20 23:33:31 1995    <tytso@rsts-11.mit.edu>
3353
3354         * bitops.h: Added #ifdef's for Sparc.
3355
3356 Wed Sep  6 22:14:46 1995    <tytso@rsts-11.mit.edu>
3357
3358         * getsize.c: #include <sys/ioctl.h> under Linux to pick up ioctl()
3359                 declaration
3360
3361         * closefs.c: #include <string.h> to pick up memset() declaration
3362
3363 Mon Sep  4 21:45:29 1995  Remy Card  <card@bbj>
3364
3365         * Makefile.in: Added support for BSD shared libraries.
3366
3367         * initialize.c (ext2fs_initialize): Correctly set the s_creator_os
3368                 flag.
3369
3370 Mon Sep  4 09:55:30 1995    <tytso@rsts-11.mit.edu>
3371
3372         * unix_io.c (unix_open): Add a double check; if the passed in name
3373                 is NULL, return EXT2_ET_BAD_DEVICE_NAME.
3374
3375         * ext2_err.et (EXT2_ET_BAD_DEVICE_NAME): Added new error code
3376
3377 Wed Aug 16 15:44:10 1995    <tytso@rsts-11.mit.edu>
3378
3379         * inode.c (ext2fs_check_directory): Use LINUX_S_ISDIR instead of
3380                 S_ISDIR.
3381
3382 Tue Aug 15 13:08:36 1995    <tytso@rsts-11.mit.edu>
3383
3384         * getsize.c (ext2fs_get_device_size): Add support for reading the
3385                 partition size from a BSD disk label.
3386
3387 Thu Aug 10 09:33:26 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
3388
3389         * getsize.c (ext2fs_get_device_size): New function that determins
3390                 the size of a device.  Used by mke2fs and e2fsck.
3391
3392 Sat Aug 12 03:09:54 1995  Remy Card  <card@bbj>
3393
3394         * Makefile.in (install): Install static libraries in $(ulibdir)
3395                 (/usr/lib on Linux) instead of $(libdir) (/lib on Linux).
3396
3397 Wed Aug  9 17:04:23 1995  Theodore Y. Ts'o  <tytso@dcl>
3398
3399         * bitmaps.c (ext2fs_free_inode_bitmap, ext2fs_free_block_bitmap):
3400                 Move these functions to freefs.c.
3401
3402         * closefs.c (ext2fs_flush): If swapping blocks, clear the group
3403                 descriptors shadow memory to keep purify quiet.  (This
3404                 also has the nice benefit that the unused portion of the
3405                 shadow descriptors are zeroed out.)
3406
3407         * dirblock.c (ext2fs_write_dir_block): We need to use
3408                 dirent->rec_len *before* it's byteswapped to find the
3409                 location of the next directory structure!
3410
3411         * alloc.c (ext2fs_new_inode): Fix bug which could potentially
3412                 cause ext2fs_new_inode to loop infinitely if we're trying
3413                 to allocate an inode in group #0 and there are no free
3414                 inodes at all in the system.
3415
3416         * closefs.c: #include <errno.h> if it exists.
3417
3418 Sun Aug  6 13:27:50 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
3419
3420         * ext2fs.h (BLOCK_FLAG_HOLE): Added new definition for
3421                 BLOCK_FLAG_APPEND.  Added documentation for the block
3422                 interator flags.
3423
3424 Sat Aug  5 11:44:05 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
3425
3426         * Makefile.in (DLL_INSTALL_DIR, ELF_INSTALL_DIR): Set the
3427                 installation directories correctly.
3428
3429 Tue Jul 18 09:27:38 1995    <tytso@rsx-11.mit.edu>
3430
3431         * namei.c (process_dir_block): 
3432         * mkdir.c (ext2fs_mkdir): 
3433         * expanddir.c (expand_dir_proc): Use ext2fs_{read,write}_dir_block
3434                 to read/write the directory block.
3435
3436         * dirblock.c (ext2fs_read_dir_block), ext2fs_write_dir_block): New
3437                 file containing functions for reading and writing
3438                 directory blocks (byte swapping if necesssary)
3439
3440         * block.c (block_iterate_ind, block_iterate_dind, 
3441                 block_iterate_tind): Byte swap the block addresses if
3442                 EXT2_SWAP_BYTES is set (and swap them back before writing
3443                 them out.)
3444
3445         * inode.c (inocpy_with_swap): New function.
3446         (ext2fs_get_next_inode, ext2fs_read_inode, ext2fs_write_inode):
3447                 Call inocpy_with_swap if EXT2_SWAP_BYTES if set.
3448
3449         * closefs.c (ext2fs_flush): If EXT2_SWAP_BYTES is set, then swap
3450                 the superblock and group descriptors before writing it out.
3451
3452         * openfs.c (ext2fs_open): If the magic number is byte-swapped,
3453                 then set the EXT2_SWAP_BYTES and byte-swap the superblock
3454                 and group descriptors.
3455
3456         * swapfs.c (ext2fs_swap_super, ext2fs_swap_group_desc): New functions
3457                 to desp ext2 filesystem structures.
3458
3459         * bitops.c (set_bit, clear_bit, test_bit): Use modifications
3460                 supplied by Pete A. Zaitcev so that the C language
3461                 versions of these functions are more portable.  They will
3462                 now work on both little and big endian systems, and the
3463                 assumption that 32-bit integers are used is gone.
3464
3465         * bitops.h (ext2_swab16, ext2_swab32): Added new functions for
3466                 doing byte swapping.
3467
3468         * ext2fs.h (EXT2_SWAP_BYTES): Add new flag which indicates that
3469                 byte swapping should take place.
3470
3471 Sun Jul 16 06:21:43 1995    <tytso@rsx-11.mit.edu>
3472
3473         * Makefile.in, cmp_bitmaps.c (ext2fs_compare_block_bitmap_end,
3474                 ext2fs_compare_inode_bitmap_end): Added new file
3475                 containing routines to compare bitmaps.
3476
3477         * ext2_err.et (EXT2_ET_NEQ_BLOCK_BITMAP, EXT2_ET_NEQ_INODE_BITMAP): 
3478                 Added new error codes.
3479
3480 Sat Jul 15 04:23:37 1995    <tytso@rsx-11.mit.edu>
3481
3482         * inode.c (ext2fs_get_next_inode): Don't check scan->inode_buffer;
3483                 if the magic number is correct, it will be allocated.
3484
3485 Fri Jul 14 19:02:59 1995    <tytso@rsx-11.mit.edu>
3486
3487         * block.c (block_iterate_ind, block_iterate_dind, 
3488                 block_iterate_tind): Don't recompute block_nr each loop;
3489                 just increment it!  Factor check of BLOCK_FLAG_APPEND out
3490                 of the loop.  Factor mask of BLOCK_CHANGED into changed
3491                 variable out of the loop.  (block_iterate_ind, in
3492                 particular, gets called a lot, so every little
3493                 optimization helps.)
3494
3495 Thu Jul 13 08:02:45 1995    <tytso@rsx-11.mit.edu>
3496
3497         * block.c (block_iterate_ind, block_iterate_dind, 
3498                 block_iterate_tind): Precompute limit of loop to speed up
3499                 block_iterate_ind and company.
3500
3501         * bitops.h (ext2fs_fast_mark_block_bitmap, 
3502                 ext2fs_fast_unmark_block_bitmap, ext2fs_fast_test_block_bitmap,
3503                 ext2fs_fast_mark_inode_bitmap, ext2fs_fast_unmark_inode_bitmap,
3504                 ext2fs_fast_test_inode_bitmap): Add fast version of these
3505                 functions, which don't do range checking.
3506
3507         * bitops.h (ext2fs_get_block_bitmap_start, 
3508                 ext2fs_get_inode_bitmap_start, ext2fs_get_block_bitmap_end,
3509                 ext2fs_get_inode_bitmap_end): Add new accessor functions
3510                 which return the start and end points of the bitmaps.
3511
3512 Tue Jul 11 18:59:41 1995    <tytso@rsx-11.mit.edu>
3513
3514         * llseek.c (ext2_llseek): If the offset is small enough, use lseek
3515                 instead of llseek.  The errno if the offset is too large
3516                 and lseek is not supported should be EINVAL, not -EINVAL.
3517
3518 Thu Jun 15 23:43:02 1995  Remy Card  <card@bbj>
3519
3520         * Makefile.in: Added support for ELF shared libraries.
3521                 Fixed typos in the compilation rules.
3522                 (distclean): Added Makefile.
3523
3524         * llseek.c (llseek): New function, if llseek() does not exist in the
3525         C library.
3526         (ext2_llseek): Changed to call llseek().
3527
3528 Mon Jun 12 08:29:07 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
3529
3530         * ext2fs.h: Use __u32 to define blk_t, instead of unsigned long.
3531
3532 Sun Jun 11 15:02:54 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
3533
3534         * mkdir.c (ext2fs_mkdir): Use LINUX_S_IFDIR instead of S_IFDIR.
3535
3536         * ext2fs.h (LINUX_S_IFDIR): Define a linux specific versions of
3537                 the S_*, which are normally defined in <sys/stat.h>.  This
3538                 allows us to compile e2fsprogs on a non-Linux system,
3539                 which may have a different value for S_IFDIR.
3540
3541 Sat Jun 10 23:47:05 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
3542
3543         * bitops.c (clear_bit, set_bit): Remove calls to cli() and sti();
3544                 this is a user-mode application!
3545
3546 Thu Jun  8 13:13:22 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
3547
3548         * llseek.c: Put the include of <linux/unistd.h> inside the #ifdef
3549         __linux__ so that non-linux systems won't see it.
3550
3551         * alloc.c: Include <errno.h> if possible.
3552         * badblocks.c: Ditto.
3553         * bb_inode.c: Ditto.
3554         * bitmaps.c: Ditto.
3555         * block.c: Ditto.
3556         * expanddir.c: Ditto.
3557         * get_pathname.c: Ditto.
3558         * initialize.c: Ditto.
3559         * inode.c: Ditto.
3560         * llseek.c: Ditto.
3561         * mkdir.c: Ditto.
3562         * namei.c: Ditto.
3563         * newdir.c: Ditto.
3564         * openfs.c: Ditto.
3565         * rw_bitmaps.c: Ditto.
3566         * unix_io.c: Ditto.
3567
3568         * Makefile.in: Rewritten to conform to GNU coding standards and
3569         support separate compilation directories.
3570
3571 Thu May 11 04:13:12 1995    <tytso@rsx-11.mit.edu>
3572
3573         * initialize.c (ext2fs_initialize): Don't allow more than one
3574                 bitmaps's worth of inodes in a group.
3575
3576 Sat Mar 11 14:07:11 1995  Theodore Y. Ts'o  <tytso@localhost>
3577
3578         * llseek.c (ext2_llseek): Added error checking to the llseek()
3579                 compat code to protect against overflow.  This only
3580                 applies to 1.0 and early 1.1 kernels, which don't support
3581                 the llseek() system call.
3582
3583 Thu Nov 24 16:29:00 1994  Theodore Y. Ts'o  (tytso@rt-11)
3584
3585         * unix_io.c (unix_open): Initialize the read_error and write_error
3586                 io_channel pointers to be null.
3587
3588         * bb_inode.c (clear_bad_block_proc): If an illegal block number is
3589                 found, clear it but don't try to update the filesystem
3590                 accounting information, since that's hopeless anyway.
3591
3592         * block.c (bloblock_iterate_ind, bloblock_iterate_dind,
3593         bloblock_iterate_tind): Check to see if the indirect blocks are
3594                 valid before trying to read them.
3595
3596         * ext2_err.et (EXT2_ET_BAD_IND_BLOCK, EX2_ET_BAD_DIND_BLOCK,
3597         EXT2_ET_BAD_TIND_BLOCK): Add new error codes.
3598
3599         * bitops.h (ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap,
3600         ext2fs_test_block_bitmap, ext2fs_mark_inode_bitmap,
3601         ext2fs_unmark_inode_bitmap, ext2fs_test_inode_bitmap):  If an
3602                 illegal block or inode number is passed in, return instead
3603                 of trying to test, set, or clear the bit.
3604
3605 Mon Nov  7 21:32:33 1994  Remy Card  <card@bbj>
3606
3607         * Makefile: Added a dummy install target in case shared libraries
3608                 are not built.
3609
3610 Mon Oct 24 14:11:44 1994    (tytso@rsx-11)
3611
3612         * bitmaps.c (ext2fs_allocate_block_bitmap): Fix calculation of how
3613                 the real last block of the bitmap should be calculated.
3614
3615 Wed Sep  7 10:05:36 1994    (tytso@rsx-11)
3616
3617         * bitmaps.c (ext2fs_fudge_inode_bitmap_end, 
3618                 ext2fs_fudge_block_bitmap_end, ext2fs_clear_inode_bitmap,
3619                 ext2fs_clear_block_bitmap, ext2fs_free_inode_bitmap,
3620                 ext2fs_free_block_bitmap): Add magic number checking for
3621                 the inode and block bitmaps.
3622
3623         * bitmaps.c (ext2fs_allocate_block_bitmap): Fix to set the correct
3624                 magic number for a block bitmap instead of an inode bitmap.
3625
3626         * inode.c (ext2fs_close_inode_scan, ext2fs_get_next_inode):  Add
3627                 magic number checking for the inode_scan structure.
3628
3629         * badblocks.c (badblocks_list_free, badblocks_list_add, 
3630                 badblocks_list_test, badblocks_list_iterate_begin,
3631                 badblocks_list_iterate, badblocks_list_iterate_end): Add
3632                 magic number checking for the badblocks_list and
3633                 badblocks_iterate structures.
3634
3635         * ext2_err.et (EXT2_ET_MAGIC_UNIX_IO_CHANNEL): 
3636         * unix_io.c (unix_open, unix_close, unix_set_blksize, unix_read_blk,
3637                 unix_write_blk, unix_flush): Add magic number checking
3638                 both for io_channel structure and unix_private_data
3639                 structure.
3640
3641         * openfs.c (ext2fs_open): Add check for io_manager structure's
3642                 magic number.
3643
3644         * rw_bitmaps.c (ext2fs_write_inode_bitmap, ext2fs_write_block_bitmap,
3645                 ext2fs_read_inode_bitmap, ext2fs_read_block_bitmap,
3646                 ext2fs_read_bitmaps, ext2fs_write_bitmaps): 
3647         * read_bb.c (ext2fs_read_bb_inode): 
3648         * read_bb_file.c (ext2fs_read_bb_FILE): 
3649         * newdir.c (ext2fs_new_dir_block): 
3650         * namei.c (ext2fs_dir_iterate, ext2fs_lookup, ext2fs_namei): 
3651         * link.c (ext2fs_link, ext2fs_unlink): 
3652         * inode.c (ext2fs_open_inode_scan, ext2fs_read_inode,
3653                 ext2fs_write_inode, ext2fs_get_blocks, 
3654                 ext2fs_check_directory): 
3655         * get_pathname.c (ext2fs_get_pathname): 
3656         * expanddir.c (ext2fs_expand_dir): 
3657         * block.c (ext2fs_block_iterate): 
3658         * bitmaps.c (ext2fs_allocate_inode_bitmap, 
3659                 ext2fs_allocate_block_bitmap): 
3660         * bb_inode.c (ext2fs_update_bb_inode): 
3661         * alloc.c (ext2fs_new_inode,ext2fs_new_block,ext2fs_get_free_blocks): 
3662         * check_desc.c (ext2fs_check_desc): 
3663         * closefs.c (ext2fs_close, ext2fs_flush): 
3664         * freefs.c (ext2fs_free): Add check for ext2_filsys magic number.
3665
3666         * Makefile:
3667         * ext2fs.h:
3668         * openfs.c:
3669         * check_desc.c (ext2fs_check_desc): Move ext2fs_check_desc from
3670         openfs.c into its own file.
3671
3672         * ext2fs.h (EXT2_CHECK_MAGIC): Added macro for checking for
3673         structure magic numbers.
3674
3675         * closefs.c (ext2fs_flush): Folded in Remy Card's changes to clear
3676         the EXT2_VALID_FS flag in the backup superblock blocks, so that if
3677         someone uses the -b option to specify the use of the backup
3678         superblock --- this usually means that the main superblock is
3679         toast.  :-)
3680
3681         * ext2fs.h: 
3682         * ext2_err.et (EXT2_ET_REV_TOO_HIGH): 
3683         * openfs.c (ext2fs_open): Folded in Remy Card's changes to add a
3684         revision level to the superblock.
3685
3686 Sun Aug 21 00:50:08 1994  Theodore Y. Ts'o  (tytso@rt-11)
3687
3688         * ext2fs.h:
3689         * bitmaps.c:
3690         * bitops.c
3691         * bitops.h:
3692         * openfs.c:
3693         * initialize.c: Completely revamped the inode and block bitmap
3694         structures, so that they can be better chance of being extensible
3695         in a shared library.  They are now their own type, instead of
3696         being a char *.  Also, the function signatures of
3697         ext2fs_test_block_bitmap, ext2fs_mark_block_bitmap,
3698         ext2fs_unmark_block_bitmap, ext2fs_test_inode_bitmap,
3699         ext2fs_mark_inode_bitmap, and ext2fs_unmark_inode_bitmap were
3700         changed to eliminate the ext2_filsys argument, since it is no
3701         longer necessary.
3702
3703 Wed Aug 17 21:46:44 1994  Remy Card  (card@bbj)
3704
3705         * unix_io.c (unix_read_blk and unix_write_blk): use the llseek
3706         system call if available.
3707
3708         * llseek.c: new file.  This is the stub calling the llseek system
3709         call which allows supports for 2GB+ file systems.
3710
3711         * initialize.c (ext2fs_initialize): Ext2fs_initialize now stores
3712         the creator operating system.
3713
3714 Wed Aug 17 10:03:24 1994  Theodore Y. Ts'o  (tytso@rt-11)
3715
3716         * initialize.c (ext2fs_initialize): Ext2fs_initialize now sets up
3717         the group descriptor statistics in addition to everything else.
3718         This relieves mke2fs of the responsibility of doing it.
3719
3720         * bitops.c, bitops.h: Add assembly inline functions for the 68000.
3721         Added a new #define, _EXT2_HAVE_ASM_BITOPS_ to control whether or
3722         not the generic C function equivalents should be included or not.
3723
3724         * openfs.c (ext2fs_open): If a superblock is specified, then use
3725         the backup group descriptors that go along with this superblock,
3726         instead of using the primary group descriptors.  This allows
3727         e2fsck to recover filesystems where the primary group descriptors
3728         have been trashed.
3729
3730