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