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