Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / lib / ext2fs / ChangeLog
1 2000-07-04  Theodore Ts'o  <tytso@valinux.com>
2
3         * dll/jump.funcs: Add new jumptable entries for
4                 ext2fs_write_bb_FILE, ext2fs_read_bb_FILE2, and
5                 ext2fs_badblocks_equal.
6
7         * tst_badblocks.c: Update test program to test
8                 ext2fs_read_bb_FILE2 and ext2fs_write_FILE.
9
10         * write_bb_file.c (ext2fs_write_bb_FILE): New function which
11                 writes out bad blocks list to a file.
12
13         * read_bb_file.c (ext2fs_read_bb_FILE2): Add new function which
14                 changes the callback function to take two additional
15                 arguments; a private blind pointer supplied by the caller,
16                 and pointer to a char * containing a pointer to the
17                 invalid string.
18
19         * badblocks.c (ext2fs_badblocks_equal): Add new function which
20                 returns true if two badblocks list are equal.
21
22         * Makefile.in: Remove explicit link of -lc in the shared library.
23                 (It shouldn't be necessary, and is harmful in some cases).
24
25 2000-06-10  Theodore Ts'o  <tytso@valinux.com>
26
27         * getsize.c (main): Add debugging code under #ifdef DEBUG
28
29 2000-05-27  Theodore Ts'o  <tytso@valinux.com>
30
31         * mkdir.c (ext2fs_mkdir): Read the parent directory's inode
32                 earlier, so that if there's an error reading it, we can
33                 more cleanly back out of the operation.
34
35 2000-05-25    <tytso@snap.thunk.org>
36
37         * getsize.c (ext2fs_get_device_size): Use open64() instead of
38                 open() if it exists.  Under linux, manually define the
39                 ioctl for BLKGETSIZE if it isn't already defined and it's
40                 safe to do so.
41
42         * unix_io.c (unix_open): Use open64() instead of open() if it
43                 exists. 
44
45         * llseek.c: Simplify header includes of unistd.h.  If lseek64 is
46                 available (and prototypes are defined) use it in
47                 preference to llseek.
48
49         * Makefile: Add hack dependency rule so that parallel makes work
50                 correctly. 
51
52 2000-05-18  Theodore Ts'o  <tytso@valinux.com>
53
54         * ext2fs.h: Add appropriate ifdef's to support C++ compilation.
55
56 2000-04-03  Theodore Ts'o  <tytso@valinux.com>
57
58         * block.c: Readibility tweak in conditionals involving
59                 ctx->fs->flags.
60
61         * ext2fs.h: Use AUTOCONF SIZEOF_* macros if available to determine
62                 how to define __s64 and __u64.  Turn off "compression is
63                 experimental" warning if the cpp macro
64                 I_KNOW_THAT_COMPRESSION_IS_EXPERIMENTAL is defined.
65
66 2000-02-11    <tytso@snap.thunk.org>
67
68         * ext2fs.h: Define EXT2FS_COMPRESSED_BLKADDR and HOLE_BLKADDR.
69                 Conditionally include Compression as a supported type if
70                 ENABLE_COMPRESSION (via --enable-compression) is turned on.
71
72         * swapfs.c (ext2fs_swap_super): Swap the compression usage bitmap.
73
74 2000-02-08    <tytso@snap.thunk.org>
75
76         * bitops.h (ext2fs_mark_generic_bitmap, ext2fs_unmark_generic_bitmap,
77                 ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap,
78                 ext2fs_mark_inode_bitmap, ext2fs_unmark_inode_bitmap):
79                 Change to return the previous state of the bit that is
80                 being marked or unmarked.  For speed optimization.
81         
82 2000-02-02  Theodore Ts'o  <tytso@valinux.com>
83
84         * getsize.c, ismounted.c: Remove unneeded include of linux/fs.h
85
86         * swapfs.c: Remove #ifdef HAVE_EXT2_INODE_VERSION since it's not
87                 needed any more; we know it will always be i_generation.
88                 Add support for swapping the high bits of the uid and gid.
89
90 1999-11-19    <tytso@valinux.com>
91
92         * mkdir.c (ext2fs_mkdir): Only update the parent's inode link
93                 counts if the link was successful.  Patch suggested by
94                 jeremy@goop.org.
95
96         * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
97                 the source directory.
98
99 1999-11-10    <tytso@valinux.com>
100
101         * Release of E2fsprogs 1.18
102
103 1999-11-08    <tytso@valinux.com>
104
105         * Makefile.in (tst_badblocks): Add freefs.o to the object list,
106                 since ext2fs_badblocks_list_free was moved to freefs.c.
107
108         * tst_badblocks.c: Use the newer badblocks API names.  Add
109                 duplicate blocks to the test inputs to test dealing with
110                 adding blocks which are already in the badblocks list.
111
112         * badblocks.c (ext2fs_badblocks_list_add): If appending to the end
113                 of the list, use a shortcut O(1) operations instead of an
114                 O(n) operation.  (Idea suggested by David Beattie.)
115
116         * freefs.c (ext2fs_free): Use ext2fs_badblocks_list_free() instead
117                 of badblocks_list_free(), to save a procedure call.
118
119 1999-10-26    <tytso@valinux.com>
120
121         * Release of E2fsprogs 1.17
122
123 1999-10-26    <tytso@valinux.com>
124
125         * ext2fs.h: Add kludge to deal with the fact that egcs cpp doesn't
126                 seem to handle ~0UL the same way as they used to.
127
128 1999-10-25    <tytso@valinux.com>
129
130         * nt_io.c (_OpenNtName): Open the device using
131                 FILE_SYNCHRONOUS_IO_NONALERT instead of
132                 FILE_SYNCHRONOUS_IO_ALERT
133                 (nt_open): At the end of the device open routine, unlock 
134                 the drive but do not dismount it.
135
136         * initialize.c (CREATOR_OS): Use __GNU__ instead of __gnu__ to
137                 detect the Hurd OS.
138
139 1999-10-22    <tytso@valinux.com>
140
141         * Release of E2fsprogs 1.16
142
143 1999-10-22    <tytso@valinux.com>
144
145         * mkdir.c (ext2fs_mkdir): Pass EXT2_FT_DIR flag to ext2fs_link().
146
147         * link.c (ext2fs_link): This call now uses the low three bits of
148                 the flags parameter to pass the directory filetype
149                 information; it will set the directory entry FILETYPE
150                 information if the filesystem supports it.
151
152         * newdir.c (ext2fs_new_dir_block): If the FILETYPE superblock
153                 option is set, then create the '.' and '..' entries with
154                 the filetype set to EXT2_FT_DIR.
155
156 1999-09-24    <tytso@valinux.com>
157
158         * nt_io.c: New file which supports I/O under Windows NT.
159
160 1999-09-07    <tytso@valinux.com>
161
162         * ext2fs.h: Add new fields for journalling and define new
163                 feature bits used by newer filesystems: IMAGIC_INODES,
164                 HAS_JOURNAL, RECOVER.
165
166         * expanddir.c (ext2fs_expand_dir, expand_dir_proc): Change where
167                 we update the inode block count and size files so that the
168                 block count field is updated correctly when we create an
169                 indirect block.
170
171 1999-07-18  Theodore Ts'o  <tytso@valinux.com>
172
173         * Release of E2fsprogs 1.15
174
175 1999-06-23    <tytso@valinux.com>
176
177         * swapfs.c (ext2fs_swap_inode): Add compatibility for Linux 2.3
178                 kernels that use i_generation instead of i_version.  Patch
179                 supplied by Jon Bright <sircus@sircus.demon.co.uk>.
180
181 1999-06-21    <tytso@valinux.com>
182
183         * dir_iterate.c (ext2fs_process_dir_block): Check for corrupted
184                 directory entry before calling the callback function.
185                 This should prevent some core dumps of insufficiently
186                 paranoid callback functions.
187
188 1999-05-29    <tytso@rsts-11.mit.edu>
189
190         * ext2fs.h: Add feature definition for AFS IMAGIC inodes.
191
192         * fileio.c (ext2fs_file_open): Remove obsolete comment stating
193                 that we don't handle writing yet (we do).  Fixed bug where
194                 we weren't allocating a big enough buffer for ext2_bmap.
195
196 1999-05-03    <tytso@rsts-11.mit.edu>
197
198         * openfs.c (ext2fs_open): Check to make sure that the number of
199                 blocks per group is not zero --- if so, it must be a bad
200                 superblock!
201
202 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
203
204         * Release of E2fsprogs 1.14
205
206 1999-01-07  Theodore Ts'o  <tytso@rsts-11.mit.edu>
207
208         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Check to see if
209                 the inode number is zero; if it's zero, return
210                 EXT2_ET_BAD_INODE_NUM.
211
212 1998-12-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
213
214         * initialize.c (ext2fs_initialize): Use EXT2_FIRST_INODE instead
215                 of EXT2_FIRST_INO to ensure compatibility with Linux 1.2
216                 header files.
217
218 Mon Jan  4 02:32:09 1999  Theodore Y. Ts'o  <tytso@mit.edu>
219
220         * llseek.c (ext2fs_llseek): Change ext2fs_llseek() in the
221                 non-Linux case to use EINVAL by default, unless it isn't
222                 defined, in which case we use EXT2_ET_INVALID_ARGUMENT
223                 instead.
224
225 1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
226
227         * Release of E2fsprogs 1.13
228
229 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
230
231         * Makefile.in: Updated dependencies.
232
233 1998-09-22  Theodore Ts'o  <tytso@rsts-11.mit.edu>
234
235         * initialize.c (ext2fs_initialize): Make sure that we allocate
236                 enough inodes so that we can make a valid filesystem.
237
238 1998-09-02  Theodore Ts'o  <tytso@rsts-11.mit.edu>
239
240         * rw_bitmaps.c: Fixed signed/unsigned warnings.
241
242         * fileio.c (ext2fs_file_set_size): Remove unneeded extern from the
243                 function declaration.
244
245         * dblist.c (make_dblist): Add safety check in case the dblist
246                 pointer passed in is null (in which case, assign it to
247                 fs->dblist).  Fixed some signed/unsigned warnings.
248
249         * bmap.c: Make addr_per_block be of type blk_t to avoid
250                 signed/unsigned warnings.
251
252         * namei.c (ext2fs_follow_link): Remove uneeded extern from the
253                 function declaration.
254
255         * get_pathname.c (get_pathname_proc): Use return value from
256                 ext2fs_get_mem, instead of checking if &gp->name is
257                 NULL.
258
259         * dir_iterate.c (ext2fs_process_dir_block): 
260         * dblist_dir.c (ext2fs_dblist_dir_iterate): Remove uneeded extern
261                 from the function declaration.
262
263         * block.c (ext2fs_block_iterate2): If the read_inode call fails,
264                 return the error directly instead of jumping to the
265                 cleanup routine, since we don't need to do any cleanup.
266
267         * alloc_table.c (ext2fs_allocate_group_table): Make this
268                 function take a dgrp_t for its group argument.
269
270         * ext2fs.h: Make dgrp_t an __u32 type, and make
271                 fs->desc_group_count be of type dgrp_t.
272
273 1998-07-27  Theodore Ts'o  <tytso@rsts-11.mit.edu>
274
275         * badblocks.c (ext2fs_badblocks_list_add): Use a bigger increment
276                 than 10 blocks when we need to expand the size of the
277                 badblocks list.
278
279 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
280
281         * Release of E2fsprogs 1.12
282
283 1998-06-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
284
285         * closefs.c (ext2fs_flush): Update the s_block_group_nr field as
286                 appropriate for all of the block group copies, so that
287                 it's clear where the beginning of the filesystem is on the
288                 disk.  (For when the partition table gets scrod.)
289
290         * ext2fs.h: Change the name of the feature from
291                 EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE to
292                 EXT2_FEATURE_INCOMPAT_FILESIZE (to match with the kernel).
293
294 1998-06-18  Theodore Ts'o  <tytso@rsts-11.mit.edu>
295
296         * inode.c (get_next_blockgroup): Fix bug where if
297                 get_next_blockgroup() is called early because of a missing
298                 inode table in a block group, the current_inode counter
299                 wasn't incremented correctly.
300
301 1998-06-16  Theodore Ts'o  <tytso@rsts-11.mit.edu>
302
303         * read_bb.c (ext2fs_read_bb_inode): Make function more robust
304                 against a completely trashed bad block inode.
305
306 1998-06-10  Theodore Ts'o  <tytso@rsts-11.mit.edu>
307
308         * alloc_tables.c (ext2fs_allocate_group_table): Fix bug so that if
309                 the stride length hits a bad value, we retry the block
310                 allocation starting at the beginning of the block group.
311
312         * ext2fs.h, bb_inode.c, block.c, bmove.c, dir_iterate.c,
313                 expanddir.c, ext2fsP.h, read_bb.c: Change blkcnt_t to be
314                 e2_blkcnt_t to avoid collision with LFS API.
315
316 1998-05-01  Theodore Ts'o  <tytso@rsts-11.mit.edu>
317
318         * initialize.c (ext2fs_initialize): Initialize s_inodes_count in a
319                 way that avoids overflows on disk sizes greater than 4GB.
320
321 1998-04-28  Theodore Ts'o  <tytso@rsts-11.mit.edu>
322
323         * ext2fs.h: Define EXT2_QSORT_TYPE appropriately for the
324                 return type for comparison functions for qsort.
325
326         * dblist.c (dir_block_cmp): Use EXT2_QSORT_TYPE in function
327                 declaration.
328
329 1998-04-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
330
331         * ext2fs.h, bitops.h: Add support for the Watcom C compiler to do
332                 inline functions.
333
334         * ext2fs.h, dosio.c: Use asm/types.h instead of linux/types.h to
335                 evade a potential problem with glibc's header files trying
336                 to spike out linux/types.h.
337
338         * ext2fs.h (ext2fs_resize_mem): Change the function prototype to
339                 include the old size of the memory, which is needed for
340                 some braindamaged memory allocation systems that don't
341                 support realloc().
342
343         * badblocks.c (ext2fs_badblocks_list_add):
344           bb_inode.c (clear_bad_block_proc):
345           dblist.c (ext2fs_add_dir_block):
346           icount.c (insert_icount_el):
347           irel_ma.c (ima_put):
348           rs_bitmap.c (ext2fs_resize_generic_bitmap): Update functions to
349                   pass the old size of the memory to be resized to
350                   ext2fs_resize_mem(). 
351
352 1998-03-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
353
354         * Makefile.in: Change to use new installation directory variables
355                 convention.  Fix uninstall rules to take $(DESTDIR) into
356                 account.
357
358 1998-03-29  Theodore Ts'o  <tytso@rsts-11.mit.edu>
359
360         * ext2fs.h: If __STRICT_ANSI__ is defined and we're on a platform
361                 with 32 bit longs, then we need to manually define __s64
362                 and __u64, since the current kernel header files don't
363                 define these if __STRICT_ANSI__ is defined.  This is a
364                 problem if we are compiling with full GCC warnings, since
365                 we do need 64 bit support.
366         
367         * Makefile.in (OBJS): Remove bmove.o from files to be built,
368                 since we're not using ext2fs_move_blocks() and there
369                 is some question as to its usefulness in its current
370                 form.
371
372         * bmap.c (block_bmap): Remove unused function.
373
374         * bmove.c (process_block): Fix -Wall warning.
375
376 1998-03-23  Theodore Ts'o  <tytso@rsts-11.mit.edu>
377
378         * block.c (ext2fs_block_iterate3): Make the ref_offset field
379                 contain the offset into the inode.i_blocks array when
380                 ref_block is zero.  Since we haven't done a formal
381                 release of e2fsprogs since block_iterate2 was first
382                 introduced, I removed block_iterate2, and renamed
383                 block_iterate3 to be block_iterate2.
384
385         * bb_inode.c, bmove.c, dblist_dir.c, dir_iterate.c,
386                 expanddir.c, ext2fs.h, ext2fsP.h, read_bb.c: Change
387                 use of block_iterate and block_iterate2 to
388                 block_iterate2 with the new prototype for the
389                 interator function.  (using blkcnt_t forr blockcount)
390
391 1998-03-21  Theodore Ts'o  <tytso@rsts-11.mit.edu>
392
393         * ext2fs.h: Add new superblock fields (s_algorithm_usage_bitmap, 
394                 s_prealloc_blocks, s_prealloc_dir_blocks).  Added
395                 conditional defines of new features COMPAT_DIR_PREALLOC,
396                 RO_COMPAT_LARGE_FILE RO_COMPAT_BTREE_DIR,
397                 INCOMPAT_COMPRESSION, INCOMPAT_DIRNAME_SIZE.  Changed
398                 the library to declare that we support COMPAT_DIR_PREALLOC, 
399                 INCOMPAT_DIRNAME_SIZE, RO_COMPAT_LARGE_FILE.
400
401         * fileio.c: Rename function ext2fs_file_llseek to be
402                 ext2fs_file_lseek, which is more accurate.
403
404         * block.c: Add new function ext2fs_block_iterate3 which calls
405                 the iterator function with the blockcount argument of
406                 type blkcnt_t.  This version of the function is
407                 allowed to handle large files; the other fucntions are
408                 not.
409
410         * ext2fs.h: Add new type blkcnt_t
411
412         * ext2_err.et.in: Add error code EXT2_ET_FILE_TOO_BIG
413
414         * block.c (ext2fs_block_iterate2): Fix bug where the block count
415                 field wasn't getting correctly incremented for sparse
416                 files when the indirect or doubly-indirect block
417                 specified in the inode was zero.
418
419 Sun Mar  8 22:42:47 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
420
421         * unlink.c (unlink_proc): 
422         * lookup.c (lookup_proc): 
423         * link.c (link_proc): 
424         * get_pathname.c (get_pathname_proc): 
425         * dir_iterate.c (ext2fs_process_dir_block): Mask off high 8 bits
426                 from dirent->name_len, so it can be used for other
427                 purposes.
428
429         * ext2fs.h: Add definition of EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE,
430                 and indicate that we have support for this incompatible
431                 option.
432
433 Mon Feb 23 08:46:33 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
434
435         * ext2_err.et.in: Added new error code, EXT2_ET_CANCEL_REQUESTED.
436
437 Fri Feb 20 23:58:01 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
438
439         * dblist.c (ext2fs_get_num_dirs): Improve the estimation of the
440                 number of directories when the block group information is
441                 unreliable.
442
443 1998-02-20  Theodore Y. Ts'o  <tytso@edt.mit.edu>
444
445         * inode.c (ext2fs_get_next_inode): Always do the check to see if the
446                 inode table is missing so that we catch the case where the
447                 first block group is missing.
448
449         * getsize.c, ismounted.c, unix_io.c: #include errno.h since it's
450                 needed.
451
452 Mon Feb 16 16:16:00 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
453
454         * ext2_io.h, ext2fs.h: Protect against being included multiple times.
455
456         * bmove.c: #include ext2fsP.h instead of "ext2fs/ext2fs.h"
457
458         * test_io.c (test_flush): Add a debugging printf when the flush
459                 method is called.
460
461         * rw_bitmaps.c (ext2fs_read_bitmaps): If the bitmaps are already
462                 read in, return right away.
463
464 Sun Feb  1 08:20:24 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
465
466         * bitops.h: Don't try to do i386 inline asm functions if the
467                 compiler isn't GCC.
468
469         * ext2fs.h: If EXT2_FLAT_INCLUDES is defined, #include e2_types.h,
470                 instead of linux/types.h, and e2_bitops.h instead of
471                 ext2fs/bitops.h.
472
473         * icount.c, version.c: Don't #include <et/com_err.h>, as it isn't
474                 necessary. 
475
476 Sat Jan 17 13:13:31 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
477
478         * inode.c (ext2fs_open_inode_scan): Initialize the group variables
479                 so that we don't need to call get_next_blockgroup() the
480                 first time around.  Saves a bit of time, and prevents us
481                 from needing to assign -1 to current_group (which is an
482                 unsigned value).
483
484         * icount.c (insert_icount_el): Cast the estimated number of inodes
485                 from a float to an ino_t.
486
487         * alloc.c, alloc_tables.c, badlbocks.c, bb_compat.c, bb_inode.c,
488                 bitmaps.c, bitops.c, block.c, bmap.c, bmove.c, brel_ma.c,
489                 check_desc.c, closefs.c, cmp_bitmaps.c, dblist.c,
490                 dblist_dir.c, dir_iterate.c, dirblock.c, dupfs.c,
491                 expanddir.c, ext2fs.h, fileio.c, freefs.c,
492                 get_pathname.c, getsize.c, icount.c, initialize.c,
493                 inline.c, inode.c, irel_ma.c, ismounted.c, link.c,
494                 lookup.c, mkdir.c, namei.c, native.c, newdir.c,
495                 openfs.c, read_bb.c, read_bb_file.c, rs_bitmap.c,
496                 rw_bitmaps.c, swapfs.c, test_io.c, tst_badblocks.c,
497                 tst_getsize.c, tst_iscan.c, unix_io.c, unlink.c,
498                 valid_blk.c, version.c: If EXT2_FLAT_INCLUDES is
499                 defined, then assume all of the
500                 ext2-specific header files are in a flat directory.
501
502         * block.c, bmove.c, dirblock.c, fileio.c: Explicitly cast
503                 all assignments from void * to be compatible with C++.
504
505 Tue Jan  6 11:28:15 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
506
507         * closefs.c (ext2fs_flush): Add a call to io_channel_flush() to
508                 make sure the contents of the disk are flushed to disk.
509
510 Mon Dec 29 14:39:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
511
512         * dblist.c (ext2fs_add_dir_block): Change new to be new_entry to
513                 avoid C++ namespace clash.
514
515         * bitmaps.c (ext2fs_copy_bitmap): Change new to be new_map to
516                 avoid C++ namespace clash.
517
518         * ext2fs.h, bb_inode.c, block.c, bmove.c, brel.h, brel_ma.c,
519                 irel.h, irel_ma.c, dblist.c, dblist_dir.c, dir_iterate.c,
520                 ext2fsP.h, expanddir.c, get_pathname.c, inode.c, link.c,
521                 unlink.c: Change private to be priv_data (to avoid C++
522                 namespace clash)
523
524 Fri Nov 28 09:26:31 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
525
526         * dblist.c (ext2fs_get_num_dirs): Make ext2fs_get_num_dirs more
527                 paranoid about validating the directory counts from the
528                 block group information.
529
530         * all files: Don't include stdlib.h anymore; include it in
531                 ext2_fs.h, since that file requires stdlib.h
532
533 Thu Nov 20 16:07:38 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
534
535         * expanddir.c (ext2fs_expand_dir): Check to make sure the block
536                 bitmap is loaded, and return an error if it is not.
537                 (expand_dir_proc): Only use ext2fs_write_dir_block when
538                 writing a directory block, not when writing out a fresh
539                 indirect block.
540
541 Tue Nov 11 22:46:45 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
542
543         * Makefile.in, tst_getsize.c: Added new file which is used to test
544                 the ext2fs_get_device_size function.
545
546         * ext2_err.et.in (EXT2_ET_UNIMPLEMENTED): Added new error code.
547
548 Sun Nov  2 20:36:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
549
550         * ext2fs.h: Make ext2fs_get_mem take an unsigned argument.
551
552         * fileio.c (ext2fs_file_get_size, ext2fs_file_set_size,
553                 ext2fs_file_get_fs): New functions added.
554
555
556 Fri Oct 31 12:16:52 1997    <tytso@EDT.MIT.EDU>
557
558         * bitops.c (ext2fs_warn_bitmap, ext2fs_warn_bitmap2): Don't call
559                 com_err if OMIT_COM_ERR is defined.
560
561 Thu Oct 30 11:33:57 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
562
563         * Rename new error codes to _ET_ in them for consistency.
564
565 Sat Oct 25 00:06:58 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
566
567         * [all files, basically]: Added definition of ext2fs_get_mem, 
568                 ext2fs_free_mem, and ext2fs_resize_mem in ext2fs.h, and
569                 changed all library routines to use these wrapper functions.
570
571         * dblist.c, mkdir.c: use EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND
572                 instead of the system error messages.
573         
574         * ext2_err.et.in: Added new error messages EXT2_DIR_EXISTS and
575                 EXT2_DB_NOT_FOUND
576
577         * ext2fs.h: Added function declarations and constants for bmap.c
578                 and fileio.c.
579
580         * ext2_err.et.in: Added new error messages EXT2_FILE_RO and
581                 EXT2_ET_MAGIC_EXT2_FILE
582
583         * Makefile.in: Added files bmap.c and fileio.c, and temporarily
584                 commented out brel_ma.c and irel_ma.c
585
586         * bmap.c: New file which maps a file's logical block number to its
587                 physical block number.
588
589         * fileio.c: New file which implements simple file reading and
590                 writing primitives.
591
592         * alloc.c (ext2fs_alloc_block): New function which allocates a
593                 block, zeros it, and updates the filesystem accounting
594                 records appropriately.
595
596 Wed Oct 22 16:47:27 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
597
598         * ext2_err.et.in: Added new error codes: EXT2_NO_MEMORY,
599                 EXT2_INVALID_ARGUMENT, EXT2_BLOCK_ALLOC_FAIL,
600                 EXT2_INODE_ALLOC_FAIL, EXT2_NOT_DIRECTORY
601
602         * Change various library files to use these functions instead of
603                 EINVAL, ENOENT, etc.
604
605 Mon Oct 20 19:32:40 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
606
607         * llseek.c: Check HAVE_LLSEEK_PROTOTYPE to see whether or not we
608                 need to declare llseek().
609
610 Sun Oct 19 18:56:22 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
611
612         * Rename io.h to be ext2_io.h (avoid namespace collisions)
613
614         * Add #ifdef's for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H
615
616 Fri Oct  3 13:35:59 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
617
618         * llseek.c (ext2fs_llseek): Fix type error for ext2fs_llseek()
619
620         * icount.c (ext2fs_icount_validate): 
621         * bmove.c (process_block): Fix lint error in type for fprintf().
622
623 Mon Sep 15 11:45:09 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
624
625         * inode.c (ext2fs_check_directory): Add support for the callback
626                 to return the error code EXT2_ET_CALLBACK_NOTHANDLED.
627
628 Thu Sep  4 12:28:22 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
629
630         * bitmaps.c (ext2fs_set_bitmap_padding): New function which sets the
631                 padding of the bitmap to be all one's.
632
633 Wed Sep  3 14:27:30 1997  Theodore Y. Ts'o  <tytso@edt.mit.edu>
634
635         * llseek.c: Added missing semicolon to glibc fixup declaration of
636         llseek().
637
638         * bmove.c: Add #include of errno.h
639
640 Sat Aug 23 22:47:46 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
641
642         * Makefile.in (ELF_SO_VERSION): Bump version to be 2.4 since we've
643                 added a new field to the io_channel (app_data).
644
645         * io.h: Add a new element to the io_channel structure, app_data.
646
647         * initialize.c, openfs.c: Set io->app_data to point at the
648                 filesystem handle.
649
650 Thu Aug 14 08:14:17 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
651
652         * io.h: Change the prototype of ext2fs_llseek() to use int's
653                 instead of unsigned int's.
654
655         * llseek.c: Change to allow PIC and !HAVE_LLSEEK.  Add a prototype
656                 to make life easer for GNU Libc 2.
657
658         * rw_bitmaps.c: On the PowerPC, the big-endian variant of the ext2
659                 filesystem has its bitmaps stored as 32-bit words with bit
660                 0 as the LSB of each word.  Thus a bitmap with only bit 0
661                 set would be, as a string of bytes, 00 00 00 01 00 ...  To
662                 cope with this, we byte-reverse each word of a bitmap if
663                 we have a big-endian filesystem, that is, if we are *not*
664                 byte-swapping other word-sized numbers.
665
666 Mon Aug 11 03:30:48 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
667
668         * dosio.c: New file to do DOS/BIOS disk accesses.
669
670         * namei.c (open_namei): Make pathlen be of type size_t.
671
672         * llseek.c: Always #include stdlib.h since it's need to define
673                 size_t.  
674
675         * io.h: Use errcode_t for magic numbers.
676
677         * icount.c (get_icount_el): Use size_t where appropriate
678         
679         * dupfs.c (ext2fs_dup_handle): 
680         * dblist.c (dir_block_cmp): Use size_t where appropriate.
681
682         * read_bb.c (ext2fs_read_bb_inode): 
683         * cmp_bitmaps.c (ext2fs_compare_inode_bitmap): Use blk_t, ino_t
684                 and size_t where appropriate.
685
686         * closefs.c (ext2fs_flush): Use dgrp_t instead of int where
687                 appropriate.
688
689         * openfs.c (ext2fs_open): 
690         * check_desc.c (ext2fs_check_desc): Use blk_t instead of int where
691                 appropriate.
692
693         * rw_bitmaps.c (read_bitmaps): 
694         * irel_ma.c: 
695         * inode.c (ext2fs_write_inode): 
696         * initialize.c (ext2fs_initialize):
697         * brel_ma.c: Fix to make be 16-bit safe.
698
699         * link.c (ext2fs_link): 
700         * unlink.c (ext2fs_unlink):
701         * lookup.c (lookup_proc): 
702         * ismounted.c (ext2fs_check_if_mounted): 
703         * block.c (xlate_func): Add #pragma argsused for Turbo C.
704
705 Sun Aug 10 10:05:22 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
706
707         * block.c (ext2fs_block_iterate2): Use retval which is a errcode_t
708                 type.
709
710         * bitmaps.c (make_bitmap): Use size_t instead of int where
711                 appropriate.
712
713         * bb_inode.c (set_bad_block_proc): Add #pragma argsused for Turbo C.
714
715         * alloc.c (ext2fs_new_inode): Use ino_t instead of int for the
716                 group number.
717
718         * get_pathname.c: Use ino_t instead of int where appropriate.
719
720         * ext2fs.h: Make the magic structure element be errcode_t instead
721                 of int.
722
723         * alloc.c alloc_tables.c badblocks.c bb_compat.c bb_inode.c
724                 bitmaps.c block.c bmove.c brel_ma.c check_desc.c closefs.c
725                 cmp_bitmaps.c dblist.c dblist_dir.c dir_iterate.c
726                 dirblock.c dupfs.c expanddir.c freefs.c get_pathname.c
727                 icount.c initialize.c inline.c inode.c irel_ma.c link.c
728                 llseek.c lookup.c mkdir.c namei.c newdir.c read_bb.c
729                 read_bb_file.c rs_bitmap.c rw_bitmaps.c swapfs.c 
730                 test_io.c tst_badblocks.c tst_iscan.c unix_io.c unlink.c
731                 valid_blk.c version.c: Add an #ifdef for HAVE_UNISTD_H
732
733 Tue Jun 17 01:33:20 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
734
735         * unix_io.c (unix_read_blk): If ext2fs_llseek() fails, but errno
736                 is zero, then return EXT2_IO_LLSEEK_FAILED.
737
738         * ext2_err.et.in: Add a new error code, EXT2_IO_LLSEEK_FAILED.
739
740         * Release of E2fsprogs 1.11
741
742 Mon Jun 16 23:53:06 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
743
744         * dblist.c (ext2fs_dblist_count): Added new function which returns
745                 the number of directory blocks in dblist.
746
747 Sat Jun 14 01:39:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
748
749         * unix_io.c (unix_flush): Make the io_channel flush function do a
750                 fsync to flush the kernel buffers to disk.
751
752 Wed Jun 11 18:25:31 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
753
754         * inode.c (ext2fs_inode_scan_goto_blockgroup): Fix bug; the
755                 current inode number wasn't being set by the
756                 goto_blockgroup function.
757
758 Mon Jun  9 10:45:48 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
759
760         * bmove.c (ext2fs_move_blocks): New function which takes a bitmap
761                 of blocks which need to be moved, and moves those blocks
762                 to another location in the filesystem.
763
764         * rs_bitmap.c (ext2fs_resize_generic_bitmap): When expanding a
765                 bitmap, make sure all of the new parts of the bitmap are
766                 zero. 
767
768 Sun Jun  8 16:24:39 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
769
770         * bitmaps.c (ext2fs_copy_bitmap): Fix bug; the destination bitmap
771                 wasn't being returned to the caller.
772
773         * alloc_tables.c (ext2fs_allocate_group_table): Add new function
774                 ext2fs_allocate_group_table() which sets the group tables
775                 for a particular block group.  The relevant code was
776                 factored out of ext2fs_allocate_tables().
777
778         * dblist.c (make_dblist): Adjust the initial size of the directory
779                 block list to be a bit more realistic (ten plus twice the
780                 number of directories in the filesystem).
781
782 Thu May  8 22:19:09 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
783
784         * badblocks.c (ext2fs_badblocks_list_test): Fix bug where
785                 ext2fs_badblocks_list_test would test the list (and exceed
786                 array boundaries) if there were no bad blocks on the bad
787                 blocks list.  (Showed up when user tried: mke2fs -c -b 4096).
788
789 Thu Apr 24 12:16:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
790
791         * Release of E2fsprogs version 1.10
792
793 Thu Apr 24 10:13:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
794
795         * alloc_tables.c (ext2fs_allocate_tables): Correctly place the
796                 inode and block bitmaps based on the RAID 0 stride
797                 parameter (which is passed by mke2fs).
798
799         * ext2fs.h: Add "stride" parameter to ext2_filsys, to be used by
800                 mke2fs to communicate the stride length to
801                 ext2fs_allocate_tables()
802
803 Wed Apr 23 21:50:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
804
805         * initialize.c (ext2fs_initialize): Fix to compile under Linux 1.2
806                 systems.  (We can't assume that the new filesystem types
807                 are supported.)
808
809 Wed Apr 23 18:40:53 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
810
811         * alloc_tables.c (ext2fs_allocate_tables): Make sure that we
812                 allocate the inode and block bitmaps inside block group at
813                 all times.
814
815 Mon Apr 21 00:06:28 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
816
817         * alloc.c (ext2fs_new_block): Fix bug where if goal==0 and the
818                 filesystem has no free blocks, ext2fs_new_block would loop
819                 forever.
820
821         * dupfs.c (ext2fs_dup_handle): Duplicate an ext2 filesystem handle
822
823         * freefs.c (ext2fs_free_inode_cache): Decrement refcount and only
824                 free if refcount goes to zero.
825
826         * inode.c (create_icache): Initialize refcount to 1.
827
828         * ext2fsP.h: Added refcount to ext2_inode_cache
829
830         * dblist.c (ext2fs_copy_dblist): New function to copy a directory
831                 block list.
832
833         * badblocks.c (ext2fs_badblocks_copy): New function to copy a
834                 badblocks structure.
835
836 Sun Apr 20 23:19:51 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
837
838         * bitmaps.c (ext2fs_copy_bitmap): New function to copy a bitmap.
839
840         * unix_io.c, test_io.c (unix_open, test_open): Initialize the
841                 refcount to 1.
842                 (unix_close, test_close): Decrement the refcount and only
843                 close the io_channel if the refcount goes to 0.
844
845         * io.h: Add refcount to the io_channel structure.  Add new macro
846                 interface io_channel_bumpcount() to bump the refcount.
847
848 Thu Apr 17 20:25:03 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
849
850         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Use the inode
851                 cache in the filesystem handle, instead of the inode cache
852                 in a static variable.
853
854         * freefs.c: Added static function to free the inode cache (called by
855                 ext2fs_free). 
856
857         * ext2fsP.h: Added definition of the ext2_inode_cache structures.
858
859         * ext2fs.h: Added pointer to the inode_cache structure.
860
861         * block.c (block_iterate_ind, block_iterate_dind, 
862                 block_iterate_tind): If there are holes in the indirect,
863                 doubly indirect, or triply indirect blocks, increment the
864                 block count field automatically.
865
866 Thu Apr 17 12:23:38 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
867
868         * Release of E2fsprogs version 1.09
869
870 Mon Apr 14 20:38:56 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
871
872         * version.c (ext2fs_parse_version_string): Check the passed in
873                 version string (instead of the hard-coded one).
874
875         * alloc_tables.c (ext2fs_allocate_tables): If the last block is
876                 greater filesystem size, clamp it to prevent allocating a
877                 block or inode bitmap beyond the filesystem.
878
879         * initialize.c (ext2fs_initialize): Fix bug where the metatdata
880                 overhead calculation was accidentally removed.
881
882 Fri Apr 11 18:56:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
883
884         * Release of E2fsprogs version 1.08
885
886 Thu Apr 10 13:15:15 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
887
888         * dblist.c (ext2fs_set_dir_block): New function which sets the
889                 block of a dblist entry, given the directory inode and
890                 blockcnt.
891
892 Sat Apr  5 12:42:42 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
893
894         * alloc_tables.c (ext2fs_allocate_tables): Allocate the bitmap and
895                 inode bitmaps at staggered locations across the block
896                 groups, to avoid concentrating the bitmaps on a small
897                 number of disks when using striped RAID arrays.
898
899         * initialize.c (ext2fs_initialize): By default, choose the maximum
900                 possible number of blocks per group (based on the size of
901                 the bitmaps in the blocksize).
902
903 Fri Apr  4 11:28:16 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
904
905         * initialize.c (ext2fs_initialize): Add support for
906                 EXT2_COMPAT_SPARSE_SUPER feature.
907
908         * closefs.c (ext2fs_bg_has_super): New function to determine
909                 whether or a particular block group should have a
910                 superblock and block group descriptor.  Used for the
911                 EXT2_COMPAT_SPARSE_SUPER feature is turned on.
912                 (ext2fs_flush):  Check ext2fs_bg_has_super to see whether
913                 or not the superblock should be written out for the block
914                 group. 
915
916         * ext2fs.h (EXT2_COMPAT_SPARSE_SUPER): Define compatibility flag
917                 for sparse duplicate superblocks.
918
919         * version.c (ext2fs_get_library_version): New function which
920                 returns the library version.
921
922         * version.c (ext2fs_parse_version_string): New function which
923                 parses a version string and returns a version number,
924                 so application programs can compare version numbers as
925                 integers.
926
927 Wed Mar 26 00:43:52 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
928
929         * icount.c (ext2fs_create_icount): Change function so that it also
930                 takes a new argument which contains a "hint" icount
931                 structure.  This "hint" icount allows the create function
932                 to set up the sorted list in advance.  This reduces
933                 significantly the amount of data moving needed to insert
934                 these inodes into the list later.
935         
936         * icount.c (ext2fs_icount_validate): New function which validates
937                 that the icount structure's rep invariant.
938
939         * icount.c (get_icount_el): Completely revamped implementation
940                 to subsume put_icount_el().  Put_icount_el() used to
941                 use an O(N) implementation to insert in the middle
942                 of the icount list.  It now uses a O(ln N) to search
943                 for where the icount should be inserted, and then uses
944                 a memcpy to move the list down (instead of a for loop).
945         
946         * icount.c (ext2fs_icount_fetch, ext2fs_icount_store,
947                 ext2fs_icount_increment, ext2fs_icount_decrement): Check
948                 to see if the inode is within bounds; if it isn't, return
949                 EINVAL.
950
951         * bitops.h (ext2fs_test_generic_bitmap): Fix error message given
952                 when a bad inode number is passed to test_generic_bitmap
953                 to be EXT2FS_TEST_ERROR instead of the wrong
954                 EXT2FS_UNMARK_ERROR.
955
956 Wed Mar 12 13:32:05 1997  Theodore Y. Ts'o  <tytso@mit.edu>
957
958         * Release of E2fsprogs version 1.07
959
960 Sun Mar  2 16:46:18 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
961
962         * Makefile.in (ELF_VERSION): Change version to be 2.2
963
964 Tue Feb 11 14:54:02 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
965
966         * alloc.c (ext2fs_get_free_blocks): Change routine to use
967                 ext2fs_fast_test_block_bitmap_range().
968
969         * bitops.h (ext2fs_fast_test_block_bitmap_range,
970                 ext2fs_test_block_bitmap_range: New inline functions which
971                 test to see whether a contiguous range of blocks is
972                 available.
973
974 Thu Feb  6 10:00:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
975
976         * badblocks.c (ext2fs_badblocks_list_create): Rename sybmols to use
977                 use ext2fs_badblocks_* instead of badblocks_*
978
979         * bb_compat.c: New file which translates between old badblocks_*()
980                 names to ext2fs_badblocks_*()
981
982         * unlink.c (ext2fs_unlink): New file, moved ext2fs_unlink() from
983                 link.c (since e2fsck doesn't use ext2fs_unlink()).
984
985         * rs_bitmap.c (ext2fs_resize_generic_bitmap): New file, contains
986                 bitmap resizing routine moved from bitmaps.c, since e2fsck
987                 doesn't need to use this function.
988
989         * lookup.c (ext2fs_lookup): Moved ext2fs_lookup to its own file,
990                 since e2fsck only needs ext2fs_lookup.
991
992 Mon Feb  3 10:11:40 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
993
994         * inode.c (ext2fs_open_inode_scan): Set fs->badblocks if it is not
995                 already set; this is needed so that programs like dump
996                 which use the inode scan functions will deal with
997                 filesystems that have bad blocks in the inode table.
998
999 Sun Feb  2 00:17:36 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1000
1001         * ext2fs.h (struct_badblocks_list, struct_badblocks_iterate): 
1002                 Moved to ext2fsP.h, since it doesn't need to be part of
1003                 the public interface.
1004
1005         * dir_iterate.c: Move ext2_dir_iterate out of namei.c.
1006
1007 Sat Feb  1 10:14:55 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1008
1009         * dblist.c (ext2fs_get_num_dirs): New file, which implements a
1010                 directory block list abstraction.  (Code moved from
1011                 e2fsck).
1012
1013         * ext2fs.h, inode.c: Moved definition of ext2_struct_inode_scan to
1014                 to inode.c (since no one else should be peeking inside it!)
1015
1016         * valid_blk.c (ext2_inode_has_valid_blocks): New function.
1017
1018         * openfs.c (ext2fs_open): Check the feature set in the ext2
1019                 superblock, and refuse to open filesystems if they contain
1020                 incompatible features.  (Can be overriden with the
1021                 EXT2_FLAG_FORCE 
1022
1023 Sun Jan 12 11:31:46 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1024
1025         * block.c (ext2fs_block_iterate2): Added new function
1026                 ext2fs_block_iterate2 which changes the function
1027                 signature of the callback function to include the
1028                 referencing block and offset.
1029
1030         * inode.c (ext2fs_inode_scan_goto_blockgroup): Added new function
1031                 ext2fs_inode_scan_goto_blockgroup which allows an
1032                 application to jump to a particular block group while
1033                 doing an inode scan.
1034
1035 Wed Jan  1 23:50:12 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1036
1037         * dirblock.c: Include string.h, since we use memcpy().
1038
1039 Tue Dec  3 12:27:29 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1040
1041         * getsize.c (ext2fs_get_device_size): The ioctl BLKGETSIZE returns
1042                 a long not an int; this doesn't matter on i386 machines,
1043                 but it does on Alpha's.
1044         
1045 Fri Nov 29 20:57:37 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1046
1047         * inode.c (ext2fs_write_inode, ext2fs_read_inode): If the inode
1048                 table pointer is NULL, then return an error indicating
1049                 that the inode table is missing.
1050                 (get_next_blockgroup, get_next_blocks,
1051                 ext2fs_get_next_inode): Don't treat a missing inode table
1052                 as permanent error.  Return MISSING_INODE_TABLE, but as an
1053                 advisory error code, much like BAD_BLOCK_IN_INODE_TABLE.
1054
1055         * rw_bitmaps.c (ext2fs_write_block_bitmap,
1056                 ext2fs_write_inode_bitmap): If the inode or block bitmap
1057                 block is zero, then don't write out the inode or block
1058                 bitmap.  The idea here is to avoid stomping on the
1059                 superblock.
1060                 (read_bitmaps): If the inode or block bitmap block is
1061                 zero, then fill in that portion of the inode or block
1062                 bitmap with all zeros.
1063
1064         * inode.c (ext2fs_get_next_inode): Fix bug in handling of bad
1065                 blocks in inode table when the inode table size is
1066                 non-standard (and can therefore span blocks).
1067
1068 Tue Oct 29 20:13:14 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1069
1070         * alloc.c (ext2fs_new_block): Fix fencepost error in
1071                 ext2fs_new_block; make sure we don't try to allocate the
1072                 first block beyond the end of the filesystem.
1073
1074 Mon Oct 14 11:00:48 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1075
1076         * inode.c (check_for_inode_bad_blocks): New function called by
1077                 get_next_blocks() to avoid reading in bad blocks marked in
1078                 fs->badblocks.  Inodes located in bad blocks are returned
1079                 by ext2fs_get_next_inode() returns the error code 
1080                 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE.
1081         
1082         * alloc_tables.c (ext2fs_allocate_tables): New function which
1083                 performs the part of mke2fs's job of allocating the 
1084                 filesystem tables.
1085
1086         * test_io.c (test_close): IO manager which is used for testing
1087                 purposes.
1088
1089 Sun Oct 13 04:31:57 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1090
1091         * inode.c (ext2fs_get_next_inode): Separate out the function of
1092                 setting up for a new block group to get_next_blockgroup().
1093                 Separate out the function of reading in blocks of the
1094                 inode table to get_next_blocks().
1095
1096         * ext2fs.h: Add the badblocks list to the ext2_filsys entry
1097
1098         * badblocks.c (badblocks_list_add, badblocks_list_test): Add
1099                 blocks to the badblock list in sorted order.  This allows
1100                 badblocks_list_test to be coded using a binary search for
1101                 speed.
1102
1103 Tue Oct  8 02:02:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1104
1105         * Release of E2fsprogs version 1.06
1106
1107 Mon Oct  7 00:44:17 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1108
1109         * ext2fs.h, block.c, closefs.c, dirblock.c, inode.c, native.c,
1110                 open.c: Change EXT2_SWAP to EXT2_FLAG_SWAP for
1111                 consistency's sake.
1112         
1113         * closefs.c (ext2fs_flush): If the flag EXT2_MASTER_SB_ONLY is
1114                 set, then only write out the master superblock.
1115
1116 Sun Oct  6 21:45:26 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1117
1118         * block.c (ext2fs_block_iterate): Fixed bug which caused
1119                 block_iterate to fail to handle HURD created filesystems;
1120                 it tested the inode translator field before the inode was
1121                 loaded.
1122
1123 Tue Sep 17 14:08:24 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1124
1125         * initialize.c (ext2fs_initialize): Make sure the description for
1126                 the inode bitmap is set correctly.
1127
1128         * bitmaps.c (ext2fs_allocate_generic_bitmap): Fix minor type typo.
1129
1130 Thu Sep 12 15:23:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1131
1132         * Release of E2fsprogs version 1.05
1133
1134 Sat Sep  7 07:36:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1135
1136         * initialize.c: Override the kernel's idea of default
1137                 checkinterval from 0 (never) to 180 days.
1138
1139 Wed Aug 28 03:20:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1140
1141         * namei.c (ext2fs_namei_follow): New function which follows
1142                 symbolic link (if any) at the target.
1143
1144 Tue Aug 27 01:48:43 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1145
1146         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Add support
1147                 for shortcut function fs->read_inode() and fs->write_inode().
1148                 Added inode_cache to reduce CPU time spent in doing
1149                 byte swapping.
1150
1151         * swapfs.c (ext2fs_swap_super): Swap the new fields in a V2
1152                 superblock.
1153
1154         * namei.c (ext2fs_follow_link): New function.
1155                 (ext2fs_namei): Extended to have support for chasing
1156                 symbolic links.  ext2fs_namei() still returns an inode
1157                 which is a symbolic link.  Symbolic links are only chased
1158                 while resolving the containing directory.  To chase
1159                 symbolic links of the final result, use
1160                 ext2fs_follow_link().
1161
1162 Mon Aug 26 23:46:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1163
1164         * ext2_err.et.in: Added new error code EXT2_ET_SYMLINK_LOOP.
1165
1166         * bitops.h (ext2fs_set_bit, ext2fs_celar_bit): Use asm inlines
1167                 provided by Pete A. Zaitcev (zaitcev@lab.sun.mcst.ru).
1168
1169 Thu Aug 22 00:40:18 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1170
1171         * initialize.c (ext2fs_initialize): On systems where the byte
1172                 order is not i386 compatible, set the swap_byte flag.
1173
1174         * inode.c (inocpy_with_swap): Check to see if inode contains a
1175                 fast symlink before swapping the inode block fields.  This
1176                 required adding a new argument to inocpy_with_swap to
1177                 determine whether the mode field is in host order or not.
1178
1179 Wed Aug 21 00:45:42 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1180
1181         * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit): On
1182                 the sparc, if EXT2_STD_BITOPS set, use the standard
1183                 i386-compatible bitmask operations, instead on the
1184                 non-standard native bitmask operators.
1185
1186 Fri Aug  9 11:11:35 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1187
1188         * block.c (ext2fs_block_iterate): Cause block iterator to return
1189                 the HURD translator block (along with everything else).
1190                 If the flag BLOCK_FLAG_DATA_ONLY is passed to the block
1191                 iterator, then don't return any meta data blocks
1192                 (including the HURD translator).
1193
1194 Wed Jul 17 17:13:34 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1195
1196         * gen_uuid.c: New file, which generates DCE-compatible UUIDs.
1197
1198         * uuid.c: New file, containing UUID utility functions.
1199
1200 Tue Jul 16 10:19:16 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1201
1202         * ext2fs.h: Add a definition of the "real" ext2 superblock.
1203
1204 Fri May 24 14:54:55 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1205
1206         * ext2fs.h: Fix erroneous ino_t type used in block_bitmap type.
1207
1208 Sun May 19 15:39:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1209
1210         * openfs.c (ext2fs_open): If the blocksize in the superblock is
1211                 zero, return the error EXT2_ET_CORRUPT_SUPERBLOCK, since
1212                 that's a basic value that must be correct for the rest of
1213                 the library to work.
1214
1215         * ext2_err.et.in (EXT2_ET_CORRUPT_SUPERBLOCK): Added new error
1216                 code.
1217
1218 Thu May 16 11:12:30 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1219
1220         * Release of E2fsprogs version 1.04
1221
1222 Wed Mar 27 00:33:40 1996    <tytso@rsts-11.mit.edu>
1223
1224         * Release of E2fsprogs version 1.03
1225
1226 Tue Mar 26 12:06:32 1996    <tytso@rsts-11.mit.edu>
1227
1228         * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit):
1229                 Change the m68k bit numbering for bitmasks to match with
1230                 the bit numbering used by all other ext2 implementations.
1231
1232 Thu Mar  7 03:37:00 1996    <tytso@rsts-11.mit.edu>
1233
1234         * inode.c (ext2fs_get_next_inode, ext2fs_close_inode_scan, 
1235         ext2fs_open_inode_scan): Support dynamically-sized inodes.
1236
1237 Wed Mar  6 12:26:29 1996    <tytso@rsts-11.mit.edu>
1238
1239         * inode.c (ext2fs_read_inode, ext2fs_write_inode): Support
1240                 dynamically-sized inodes.
1241
1242         * openfs.c (ext2fs_open): Allow dynamic revision filesystem to be
1243                 loaded.
1244
1245 Tue Mar  5 03:49:37 1996    <tytso@rsts-11.mit.edu>
1246
1247         * initialize.c (ext2fs_initialize): Catch an error condition where
1248                 the passed in size is *really* too small.
1249
1250         * alloc.c (ext2fs_new_inode): 
1251         * ext2fs.h (EXT2_FIRST_INODE): Add support for dynamic revision to
1252                 get first inode.
1253
1254 Wed Feb 21 15:56:17 1996    <tytso@rsts-11.mit.edu>
1255
1256         * getsize.c (ext2fs_get_device_size): Open the device read-only
1257                 when trying to determine its size.
1258
1259 Wed Jan 31 11:06:08 1996    <tytso@rsts-11.mit.edu>
1260
1261         * Release of E2fsprogs version 1.02
1262
1263 Sat Dec  9 09:57:50 1995    <tytso@rsts-11.mit.edu>
1264
1265         * rw_bitops.c (ext2fs_write_block_bitmap):
1266         * bitops.c (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit):
1267         * bitops.h (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit):
1268                 Rename {test,set,clear}_bit to ext2fs_{test,set,clear}_bit, 
1269                 to avoid conflicts with with kernel include files.  Also
1270                 rename ADDR and CONST_ADDR to EXT2FS_ADDR and
1271                 EXT2FS_CONST_ADDR. 
1272
1273 Thu Oct 26 12:09:16 1995    <tytso@rsts-11.mit.edu>
1274
1275         * ext2_err.et: Updated message in EXT2_ET_BASE to say version 0.5c
1276
1277         * swapfs.c (ext2fs_swap_super): Put an #ifdef check around
1278                 s_def_resuid and s_def_resgid for backwards compatibility.
1279
1280 Fri Oct 20 23:33:31 1995    <tytso@rsts-11.mit.edu>
1281
1282         * bitops.h: Added #ifdef's for Sparc.
1283
1284 Wed Sep  6 22:14:46 1995    <tytso@rsts-11.mit.edu>
1285
1286         * getsize.c: #include <sys/ioctl.h> under Linux to pick up ioctl()
1287                 declaration
1288
1289         * closefs.c: #include <string.h> to pick up memset() declaration
1290
1291 Mon Sep  4 21:45:29 1995  Remy Card  <card@bbj>
1292
1293         * Makefile.in: Added support for BSD shared libraries.
1294
1295         * initialize.c (ext2fs_initialize): Correctly set the s_creator_os
1296                 flag.
1297
1298 Mon Sep  4 09:55:30 1995    <tytso@rsts-11.mit.edu>
1299
1300         * unix_io.c (unix_open): Add a double check; if the passed in name
1301                 is NULL, return EXT2_ET_BAD_DEVICE_NAME.
1302
1303         * ext2_err.et (EXT2_ET_BAD_DEVICE_NAME): Added new error code
1304
1305 Wed Aug 16 15:44:10 1995    <tytso@rsts-11.mit.edu>
1306
1307         * inode.c (ext2fs_check_directory): Use LINUX_S_ISDIR instead of
1308                 S_ISDIR.
1309
1310 Tue Aug 15 13:08:36 1995    <tytso@rsts-11.mit.edu>
1311
1312         * getsize.c (ext2fs_get_device_size): Add support for reading the
1313                 partition size from a BSD disk label.
1314
1315 Thu Aug 10 09:33:26 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1316
1317         * getsize.c (ext2fs_get_device_size): New function that determins
1318                 the size of a device.  Used by mke2fs and e2fsck.
1319
1320 Sat Aug 12 03:09:54 1995  Remy Card  <card@bbj>
1321
1322         * Makefile.in (install): Install static libraries in $(ulibdir)
1323                 (/usr/lib on Linux) instead of $(libdir) (/lib on Linux).
1324
1325 Wed Aug  9 17:04:23 1995  Theodore Y. Ts'o  <tytso@dcl>
1326
1327         * bitmaps.c (ext2fs_free_inode_bitmap, ext2fs_free_block_bitmap):
1328                 Move these functions to freefs.c.
1329
1330         * closefs.c (ext2fs_flush): If swapping blocks, clear the group
1331                 descriptors shadow memory to keep purify quiet.  (This
1332                 also has the nice benefit that the unused portion of the
1333                 shadow descriptors are zeroed out.)
1334
1335         * dirblock.c (ext2fs_write_dir_block): We need to use
1336                 dirent->rec_len *before* it's byteswapped to find the
1337                 location of the next directory structure!
1338
1339         * alloc.c (ext2fs_new_inode): Fix bug which could potentially
1340                 cause ext2fs_new_inode to loop infinitely if we're trying
1341                 to allocate an inode in group #0 and there are no free
1342                 inodes at all in the system.
1343
1344         * closefs.c: #include <errno.h> if it exists.
1345
1346 Sun Aug  6 13:27:50 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1347
1348         * ext2fs.h (BLOCK_FLAG_HOLE): Added new definition for
1349                 BLOCK_FLAG_APPEND.  Added documentation for the block
1350                 interator flags.
1351
1352 Sat Aug  5 11:44:05 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1353
1354         * Makefile.in (DLL_INSTALL_DIR, ELF_INSTALL_DIR): Set the
1355                 installation directories correctly.
1356
1357 Tue Jul 18 09:27:38 1995    <tytso@rsx-11.mit.edu>
1358
1359         * namei.c (process_dir_block): 
1360         * mkdir.c (ext2fs_mkdir): 
1361         * expanddir.c (expand_dir_proc): Use ext2fs_{read,write}_dir_block
1362                 to read/write the directory block.
1363
1364         * dirblock.c (ext2fs_read_dir_block), ext2fs_write_dir_block): New
1365                 file containing functions for reading and writing
1366                 directory blocks (byte swapping if necesssary)
1367
1368         * block.c (block_iterate_ind, block_iterate_dind, 
1369                 block_iterate_tind): Byte swap the block addresses if
1370                 EXT2_SWAP_BYTES is set (and swap them back before writing
1371                 them out.)
1372
1373         * inode.c (inocpy_with_swap): New function.
1374         (ext2fs_get_next_inode, ext2fs_read_inode, ext2fs_write_inode):
1375                 Call inocpy_with_swap if EXT2_SWAP_BYTES if set.
1376
1377         * closefs.c (ext2fs_flush): If EXT2_SWAP_BYTES is set, then swap
1378                 the superblock and group descriptors before writing it out.
1379
1380         * openfs.c (ext2fs_open): If the magic number is byte-swapped,
1381                 then set the EXT2_SWAP_BYTES and byte-swap the superblock
1382                 and group descriptors.
1383
1384         * swapfs.c (ext2fs_swap_super, ext2fs_swap_group_desc): New functions
1385                 to desp ext2 filesystem structures.
1386
1387         * bitops.c (set_bit, clear_bit, test_bit): Use modifications
1388                 supplied by Pete A. Zaitcev so that the C language
1389                 versions of these functions are more portable.  They will
1390                 now work on both little and big endian systems, and the
1391                 assumption that 32-bit integers are used is gone.
1392
1393         * bitops.h (ext2_swab16, ext2_swab32): Added new functions for
1394                 doing byte swapping.
1395
1396         * ext2fs.h (EXT2_SWAP_BYTES): Add new flag which indicates that
1397                 byte swapping should take place.
1398
1399 Sun Jul 16 06:21:43 1995    <tytso@rsx-11.mit.edu>
1400
1401         * Makefile.in, cmp_bitmaps.c (ext2fs_compare_block_bitmap_end,
1402                 ext2fs_compare_inode_bitmap_end): Added new file
1403                 containing routines to compare bitmaps.
1404
1405         * ext2_err.et (EXT2_ET_NEQ_BLOCK_BITMAP, EXT2_ET_NEQ_INODE_BITMAP): 
1406                 Added new error codes.
1407
1408 Sat Jul 15 04:23:37 1995    <tytso@rsx-11.mit.edu>
1409
1410         * inode.c (ext2fs_get_next_inode): Don't check scan->inode_buffer;
1411                 if the magic number is correct, it will be allocated.
1412
1413 Fri Jul 14 19:02:59 1995    <tytso@rsx-11.mit.edu>
1414
1415         * block.c (block_iterate_ind, block_iterate_dind, 
1416                 block_iterate_tind): Don't recompute block_nr each loop;
1417                 just increment it!  Factor check of BLOCK_FLAG_APPEND out
1418                 of the loop.  Factor mask of BLOCK_CHANGED into changed
1419                 variable out of the loop.  (block_iterate_ind, in
1420                 particular, gets called a lot, so every little
1421                 optimization helps.)
1422
1423 Thu Jul 13 08:02:45 1995    <tytso@rsx-11.mit.edu>
1424
1425         * block.c (block_iterate_ind, block_iterate_dind, 
1426                 block_iterate_tind): Precompute limit of loop to speed up
1427                 block_iterate_ind and company.
1428
1429         * bitops.h (ext2fs_fast_mark_block_bitmap, 
1430                 ext2fs_fast_unmark_block_bitmap, ext2fs_fast_test_block_bitmap,
1431                 ext2fs_fast_mark_inode_bitmap, ext2fs_fast_unmark_inode_bitmap,
1432                 ext2fs_fast_test_inode_bitmap): Add fast version of these
1433                 functions, which don't do range checking.
1434
1435         * bitops.h (ext2fs_get_block_bitmap_start, 
1436                 ext2fs_get_inode_bitmap_start, ext2fs_get_block_bitmap_end,
1437                 ext2fs_get_inode_bitmap_end): Add new accessor functions
1438                 which return the start and end points of the bitmaps.
1439
1440 Tue Jul 11 18:59:41 1995    <tytso@rsx-11.mit.edu>
1441
1442         * llseek.c (ext2_llseek): If the offset is small enough, use lseek
1443                 instead of llseek.  The errno if the offset is too large
1444                 and lseek is not supported should be EINVAL, not -EINVAL.
1445
1446 Thu Jun 15 23:43:02 1995  Remy Card  <card@bbj>
1447
1448         * Makefile.in: Added support for ELF shared libraries.
1449                 Fixed typos in the compilation rules.
1450                 (distclean): Added Makefile.
1451
1452         * llseek.c (llseek): New function, if llseek() does not exist in the
1453         C library.
1454         (ext2_llseek): Changed to call llseek().
1455
1456 Mon Jun 12 08:29:07 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1457
1458         * ext2fs.h: Use __u32 to define blk_t, instead of unsigned long.
1459
1460 Sun Jun 11 15:02:54 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1461
1462         * mkdir.c (ext2fs_mkdir): Use LINUX_S_IFDIR instead of S_IFDIR.
1463
1464         * ext2fs.h (LINUX_S_IFDIR): Define a linux specific versions of
1465                 the S_*, which are normally defined in <sys/stat.h>.  This
1466                 allows us to compile e2fsprogs on a non-Linux system,
1467                 which may have a different value for S_IFDIR.
1468
1469 Sat Jun 10 23:47:05 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1470
1471         * bitops.c (clear_bit, set_bit): Remove calls to cli() and sti();
1472                 this is a user-mode application!
1473
1474 Thu Jun  8 13:13:22 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
1475
1476         * llseek.c: Put the include of <linux/unistd.h> inside the #ifdef
1477         __linux__ so that non-linux systems won't see it.
1478
1479         * alloc.c: Include <errno.h> if possible.
1480         * badblocks.c: Ditto.
1481         * bb_inode.c: Ditto.
1482         * bitmaps.c: Ditto.
1483         * block.c: Ditto.
1484         * expanddir.c: Ditto.
1485         * get_pathname.c: Ditto.
1486         * initialize.c: Ditto.
1487         * inode.c: Ditto.
1488         * llseek.c: Ditto.
1489         * mkdir.c: Ditto.
1490         * namei.c: Ditto.
1491         * newdir.c: Ditto.
1492         * openfs.c: Ditto.
1493         * rw_bitmaps.c: Ditto.
1494         * unix_io.c: Ditto.
1495
1496         * Makefile.in: Rewritten to conform to GNU coding standards and
1497         support separate compilation directories.
1498
1499 Thu May 11 04:13:12 1995    <tytso@rsx-11.mit.edu>
1500
1501         * initialize.c (ext2fs_initialize): Don't allow more than one
1502                 bitmaps's worth of inodes in a group.
1503
1504 Sat Mar 11 14:07:11 1995  Theodore Y. Ts'o  <tytso@localhost>
1505
1506         * llseek.c (ext2_llseek): Added error checking to the llseek()
1507                 compat code to protect against overflow.  This only
1508                 applies to 1.0 and early 1.1 kernels, which don't support
1509                 the llseek() system call.
1510
1511 Thu Nov 24 16:29:00 1994  Theodore Y. Ts'o  (tytso@rt-11)
1512
1513         * unix_io.c (unix_open): Initialize the read_error and write_error
1514                 io_channel pointers to be null.
1515
1516         * bb_inode.c (clear_bad_block_proc): If an illegal block number is
1517                 found, clear it but don't try to update the filesystem
1518                 accounting information, since that's hopeless anyway.
1519
1520         * block.c (bloblock_iterate_ind, bloblock_iterate_dind,
1521         bloblock_iterate_tind): Check to see if the indirect blocks are
1522                 valid before trying to read them.
1523
1524         * ext2_err.et (EXT2_ET_BAD_IND_BLOCK, EX2_ET_BAD_DIND_BLOCK,
1525         EXT2_ET_BAD_TIND_BLOCK): Add new error codes.
1526
1527         * bitops.h (ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap,
1528         ext2fs_test_block_bitmap, ext2fs_mark_inode_bitmap,
1529         ext2fs_unmark_inode_bitmap, ext2fs_test_inode_bitmap):  If an
1530                 illegal block or inode number is passed in, return instead
1531                 of trying to test, set, or clear the bit.
1532
1533 Mon Nov  7 21:32:33 1994  Remy Card  <card@bbj>
1534
1535         * Makefile: Added a dummy install target in case shared libraries
1536                 are not built.
1537
1538 Mon Oct 24 14:11:44 1994    (tytso@rsx-11)
1539
1540         * bitmaps.c (ext2fs_allocate_block_bitmap): Fix calculation of how
1541                 the real last block of the bitmap should be calculated.
1542
1543 Wed Sep  7 10:05:36 1994    (tytso@rsx-11)
1544
1545         * bitmaps.c (ext2fs_fudge_inode_bitmap_end, 
1546                 ext2fs_fudge_block_bitmap_end, ext2fs_clear_inode_bitmap,
1547                 ext2fs_clear_block_bitmap, ext2fs_free_inode_bitmap,
1548                 ext2fs_free_block_bitmap): Add magic number checking for
1549                 the inode and block bitmaps.
1550
1551         * bitmaps.c (ext2fs_allocate_block_bitmap): Fix to set the correct
1552                 magic number for a block bitmap instead of an inode bitmap.
1553
1554         * inode.c (ext2fs_close_inode_scan, ext2fs_get_next_inode):  Add
1555                 magic number checking for the inode_scan structure.
1556
1557         * badblocks.c (badblocks_list_free, badblocks_list_add, 
1558                 badblocks_list_test, badblocks_list_iterate_begin,
1559                 badblocks_list_iterate, badblocks_list_iterate_end): Add
1560                 magic number checking for the badblocks_list and
1561                 badblocks_iterate structures.
1562
1563         * ext2_err.et (EXT2_ET_MAGIC_UNIX_IO_CHANNEL): 
1564         * unix_io.c (unix_open, unix_close, unix_set_blksize, unix_read_blk,
1565                 unix_write_blk, unix_flush): Add magic number checking
1566                 both for io_channel structure and unix_private_data
1567                 structure.
1568
1569         * openfs.c (ext2fs_open): Add check for io_manager structure's
1570                 magic number.
1571
1572         * rw_bitmaps.c (ext2fs_write_inode_bitmap, ext2fs_write_block_bitmap,
1573                 ext2fs_read_inode_bitmap, ext2fs_read_block_bitmap,
1574                 ext2fs_read_bitmaps, ext2fs_write_bitmaps): 
1575         * read_bb.c (ext2fs_read_bb_inode): 
1576         * read_bb_file.c (ext2fs_read_bb_FILE): 
1577         * newdir.c (ext2fs_new_dir_block): 
1578         * namei.c (ext2fs_dir_iterate, ext2fs_lookup, ext2fs_namei): 
1579         * link.c (ext2fs_link, ext2fs_unlink): 
1580         * inode.c (ext2fs_open_inode_scan, ext2fs_read_inode,
1581                 ext2fs_write_inode, ext2fs_get_blocks, 
1582                 ext2fs_check_directory): 
1583         * get_pathname.c (ext2fs_get_pathname): 
1584         * expanddir.c (ext2fs_expand_dir): 
1585         * block.c (ext2fs_block_iterate): 
1586         * bitmaps.c (ext2fs_allocate_inode_bitmap, 
1587                 ext2fs_allocate_block_bitmap): 
1588         * bb_inode.c (ext2fs_update_bb_inode): 
1589         * alloc.c (ext2fs_new_inode,ext2fs_new_block,ext2fs_get_free_blocks): 
1590         * check_desc.c (ext2fs_check_desc): 
1591         * closefs.c (ext2fs_close, ext2fs_flush): 
1592         * freefs.c (ext2fs_free): Add check for ext2_filsys magic number.
1593
1594         * Makefile:
1595         * ext2fs.h:
1596         * openfs.c:
1597         * check_desc.c (ext2fs_check_desc): Move ext2fs_check_desc from
1598         openfs.c into its own file.
1599
1600         * ext2fs.h (EXT2_CHECK_MAGIC): Added macro for checking for
1601         structure magic numbers.
1602
1603         * closefs.c (ext2fs_flush): Folded in Remy Card's changes to clear
1604         the EXT2_VALID_FS flag in the backup superblock blocks, so that if
1605         someone uses the -b option to specify the use of the backup
1606         superblock --- this usually means that the main superblock is
1607         toast.  :-)
1608
1609         * ext2fs.h: 
1610         * ext2_err.et (EXT2_ET_REV_TOO_HIGH): 
1611         * openfs.c (ext2fs_open): Folded in Remy Card's changes to add a
1612         revision level to the superblock.
1613
1614 Sun Aug 21 00:50:08 1994  Theodore Y. Ts'o  (tytso@rt-11)
1615
1616         * ext2fs.h:
1617         * bitmaps.c:
1618         * bitops.c
1619         * bitops.h:
1620         * openfs.c:
1621         * initialize.c: Completely revamped the inode and block bitmap
1622         structures, so that they can be better chance of being extensible
1623         in a shared library.  They are now their own type, instead of
1624         being a char *.  Also, the function signatures of
1625         ext2fs_test_block_bitmap, ext2fs_mark_block_bitmap,
1626         ext2fs_unmark_block_bitmap, ext2fs_test_inode_bitmap,
1627         ext2fs_mark_inode_bitmap, and ext2fs_unmark_inode_bitmap were
1628         changed to eliminate the ext2_filsys argument, since it is no
1629         longer necessary.
1630
1631 Wed Aug 17 21:46:44 1994  Remy Card  (card@bbj)
1632
1633         * unix_io.c (unix_read_blk and unix_write_blk): use the llseek
1634         system call if available.
1635
1636         * llseek.c: new file.  This is the stub calling the llseek system
1637         call which allows supports for 2GB+ file systems.
1638
1639         * initialize.c (ext2fs_initialize): Ext2fs_initialize now stores
1640         the creator operating system.
1641
1642 Wed Aug 17 10:03:24 1994  Theodore Y. Ts'o  (tytso@rt-11)
1643
1644         * initialize.c (ext2fs_initialize): Ext2fs_initialize now sets up
1645         the group descriptor statistics in addition to everything else.
1646         This relieves mke2fs of the responsibility of doing it.
1647
1648         * bitops.c, bitops.h: Add assembly inline functions for the 68000.
1649         Added a new #define, _EXT2_HAVE_ASM_BITOPS_ to control whether or
1650         not the generic C function equivalents should be included or not.
1651
1652         * openfs.c (ext2fs_open): If a superblock is specified, then use
1653         the backup group descriptors that go along with this superblock,
1654         instead of using the primary group descriptors.  This allows
1655         e2fsck to recover filesystems where the primary group descriptors
1656         have been trashed.
1657
1658