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