blob: 7b489b4a073b20a911cc4ba8cc3a86bbced01454 [file] [log] [blame]
Theodore Ts'o79a90bd1997-11-03 19:16:55 +00001Sun Nov 2 20:36:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
2
3 * ext2fs.h: Make ext2fs_get_mem take an unsigned argument.
4
5 * fileio.c (ext2fs_file_get_size, ext2fs_file_set_size,
6 ext2fs_file_get_fs): New functions added.
7
8
9Fri Oct 31 12:16:52 1997 <tytso@EDT.MIT.EDU>
10
11 * bitops.c (ext2fs_warn_bitmap, ext2fs_warn_bitmap2): Don't call
12 com_err if OMIT_COM_ERR is defined.
13
Theodore Ts'o1f0b6c11997-10-31 06:07:47 +000014Thu Oct 30 11:33:57 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
15
16 * Rename new error codes to _ET_ in them for consistency.
17
Theodore Ts'oc555aeb1997-10-25 04:16:53 +000018Sat Oct 25 00:06:58 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
19
Theodore Ts'o7b4e4531997-10-26 03:41:24 +000020 * [all files, basically]: Added definition of ext2fs_get_mem,
21 ext2fs_free_mem, and ext2fs_resize_mem in ext2fs.h, and
22 changed all library routines to use these wrapper functions.
23
Theodore Ts'o78d8f901997-10-26 01:53:39 +000024 * dblist.c, mkdir.c: use EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND
25 instead of the system error messages.
26
27 * ext2_err.et.in: Added new error messages EXT2_DIR_EXISTS and
28 EXT2_DB_NOT_FOUND
29
Theodore Ts'o30fab291997-10-25 22:37:42 +000030 * ext2fs.h: Added function declarations and constants for bmap.c
31 and fileio.c.
32
33 * ext2_err.et.in: Added new error messages EXT2_FILE_RO and
34 EXT2_ET_MAGIC_EXT2_FILE
35
36 * Makefile.in: Added files bmap.c and fileio.c, and temporarily
37 commented out brel_ma.c and irel_ma.c
38
39 * bmap.c: New file which maps a file's logical block number to its
40 physical block number.
41
42 * fileio.c: New file which implements simple file reading and
43 writing primitives.
44
Theodore Ts'oc555aeb1997-10-25 04:16:53 +000045 * alloc.c (ext2fs_alloc_block): New function which allocates a
Theodore Ts'o30fab291997-10-25 22:37:42 +000046 block, zeros it, and updates the filesystem accounting
47 records appropriately.
Theodore Ts'oc555aeb1997-10-25 04:16:53 +000048
49Wed Oct 22 16:47:27 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
50
51 * ext2_err.et.in: Added new error codes: EXT2_NO_MEMORY,
52 EXT2_INVALID_ARGUMENT, EXT2_BLOCK_ALLOC_FAIL,
53 EXT2_INODE_ALLOC_FAIL, EXT2_NOT_DIRECTORY
54
55 * Change various library files to use these functions instead of
56 EINVAL, ENOENT, etc.
57
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000058Mon Oct 20 19:32:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
59
60 * llseek.c: Check HAVE_LLSEEK_PROTOTYPE to see whether or not we
61 need to declare llseek().
62
Theodore Ts'o1d2ff461997-10-19 23:00:21 +000063Sun Oct 19 18:56:22 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
64
Theodore Ts'od40259f1997-10-20 00:44:26 +000065 * Rename io.h to be ext2_io.h (avoid namespace collisions)
66
Theodore Ts'o1d2ff461997-10-19 23:00:21 +000067 * Add #ifdef's for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H
68
Theodore Ts'od163b091997-10-03 17:42:28 +000069Fri Oct 3 13:35:59 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
70
71 * llseek.c (ext2fs_llseek): Fix type error for ext2fs_llseek()
72
73 * icount.c (ext2fs_icount_validate):
74 * bmove.c (process_block): Fix lint error in type for fprintf().
75
76Mon Sep 15 11:45:09 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
77
78 * inode.c (ext2fs_check_directory): Add support for the callback
79 to return the error code EXT2_ET_CALLBACK_NOTHANDLED.
80
Theodore Ts'offf876b1997-09-13 00:32:29 +000081Thu Sep 4 12:28:22 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
82
83 * bitmaps.c (ext2fs_set_bitmap_padding): New function which sets the
84 padding of the bitmap to be all one's.
85
Theodore Ts'obc75f2a1997-09-04 00:43:10 +000086Wed Sep 3 14:27:30 1997 Theodore Y. Ts'o <tytso@edt.mit.edu>
87
88 * llseek.c: Added missing semicolon to glibc fixup declaration of
89 llseek().
90
91 * bmove.c: Add #include of errno.h
92
Theodore Ts'oe9affb71997-08-24 02:57:55 +000093Sat Aug 23 22:47:46 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
94
95 * Makefile.in (ELF_SO_VERSION): Bump version to be 2.4 since we've
96 added a new field to the io_channel (app_data).
97
98 * io.h: Add a new element to the io_channel structure, app_data.
99
100 * initialize.c, openfs.c: Set io->app_data to point at the
101 filesystem handle.
102
Theodore Ts'o1c27cac1997-08-14 17:20:42 +0000103Thu Aug 14 08:14:17 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
104
105 * io.h: Change the prototype of ext2fs_llseek() to use int's
106 instead of unsigned int's.
107
108 * llseek.c: Change to allow PIC and !HAVE_LLSEEK. Add a prototype
109 to make life easer for GNU Libc 2.
110
111 * rw_bitmaps.c: On the PowerPC, the big-endian variant of the ext2
112 filesystem has its bitmaps stored as 32-bit words with bit
113 0 as the LSB of each word. Thus a bitmap with only bit 0
114 set would be, as a string of bytes, 00 00 00 01 00 ... To
115 cope with this, we byte-reverse each word of a bitmap if
116 we have a big-endian filesystem, that is, if we are *not*
117 byte-swapping other word-sized numbers.
118
Theodore Ts'o3cb6c501997-08-11 20:29:22 +0000119Mon Aug 11 03:30:48 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
120
121 * dosio.c: New file to do DOS/BIOS disk accesses.
122
123 * namei.c (open_namei): Make pathlen be of type size_t.
124
125 * llseek.c: Always #include stdlib.h since it's need to define
126 size_t.
127
128 * io.h: Use errcode_t for magic numbers.
129
130 * icount.c (get_icount_el): Use size_t where appropriate
131
132 * dupfs.c (ext2fs_dup_handle):
133 * dblist.c (dir_block_cmp): Use size_t where appropriate.
134
135 * read_bb.c (ext2fs_read_bb_inode):
136 * cmp_bitmaps.c (ext2fs_compare_inode_bitmap): Use blk_t, ino_t
137 and size_t where appropriate.
138
139 * closefs.c (ext2fs_flush): Use dgrp_t instead of int where
140 appropriate.
141
142 * openfs.c (ext2fs_open):
143 * check_desc.c (ext2fs_check_desc): Use blk_t instead of int where
144 appropriate.
145
146 * rw_bitmaps.c (read_bitmaps):
147 * irel_ma.c:
148 * inode.c (ext2fs_write_inode):
149 * initialize.c (ext2fs_initialize):
150 * brel_ma.c: Fix to make be 16-bit safe.
151
152 * link.c (ext2fs_link):
153 * unlink.c (ext2fs_unlink):
154 * lookup.c (lookup_proc):
155 * ismounted.c (ext2fs_check_if_mounted):
156 * block.c (xlate_func): Add #pragma argsused for Turbo C.
157
Theodore Ts'o4cbe8af1997-08-10 23:07:40 +0000158Sun Aug 10 10:05:22 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
159
160 * block.c (ext2fs_block_iterate2): Use retval which is a errcode_t
161 type.
162
163 * bitmaps.c (make_bitmap): Use size_t instead of int where
164 appropriate.
165
166 * bb_inode.c (set_bad_block_proc): Add #pragma argsused for Turbo C.
167
168 * alloc.c (ext2fs_new_inode): Use ino_t instead of int for the
169 group number.
170
171 * get_pathname.c: Use ino_t instead of int where appropriate.
172
173 * ext2fs.h: Make the magic structure element be errcode_t instead
174 of int.
175
176 * alloc.c alloc_tables.c badblocks.c bb_compat.c bb_inode.c
177 bitmaps.c block.c bmove.c brel_ma.c check_desc.c closefs.c
178 cmp_bitmaps.c dblist.c dblist_dir.c dir_iterate.c
179 dirblock.c dupfs.c expanddir.c freefs.c get_pathname.c
180 icount.c initialize.c inline.c inode.c irel_ma.c link.c
181 llseek.c lookup.c mkdir.c namei.c newdir.c read_bb.c
182 read_bb_file.c rs_bitmap.c rw_bitmaps.c swapfs.c
183 test_io.c tst_badblocks.c tst_iscan.c unix_io.c unlink.c
184 valid_blk.c version.c: Add an #ifdef for HAVE_UNISTD_H
185
Theodore Ts'o024996c1997-06-17 05:38:35 +0000186Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
187
Theodore Ts'oa1230b11997-07-02 02:41:59 +0000188 * unix_io.c (unix_read_blk): If ext2fs_llseek() fails, but errno
189 is zero, then return EXT2_IO_LLSEEK_FAILED.
190
191 * ext2_err.et.in: Add a new error code, EXT2_IO_LLSEEK_FAILED.
192
Theodore Ts'o024996c1997-06-17 05:38:35 +0000193 * Release of E2fsprogs 1.11
194
Theodore Ts'o549860c1997-06-17 03:55:00 +0000195Mon Jun 16 23:53:06 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
196
197 * dblist.c (ext2fs_dblist_count): Added new function which returns
198 the number of directory blocks in dblist.
199
Theodore Ts'o36f21431997-06-14 07:25:40 +0000200Sat Jun 14 01:39:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
201
202 * unix_io.c (unix_flush): Make the io_channel flush function do a
203 fsync to flush the kernel buffers to disk.
204
Theodore Ts'o9941fb71997-06-11 22:27:41 +0000205Wed Jun 11 18:25:31 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
206
207 * inode.c (ext2fs_inode_scan_goto_blockgroup): Fix bug; the
208 current inode number wasn't being set by the
209 goto_blockgroup function.
210
Theodore Ts'o1e1da291997-06-09 14:51:29 +0000211Mon Jun 9 10:45:48 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
212
213 * bmove.c (ext2fs_move_blocks): New function which takes a bitmap
214 of blocks which need to be moved, and moves those blocks
215 to another location in the filesystem.
216
217 * rs_bitmap.c (ext2fs_resize_generic_bitmap): When expanding a
218 bitmap, make sure all of the new parts of the bitmap are
219 zero.
220
221Sun Jun 8 16:24:39 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
222
223 * bitmaps.c (ext2fs_copy_bitmap): Fix bug; the destination bitmap
224 wasn't being returned to the caller.
225
226 * alloc_tables.c (ext2fs_allocate_group_table): Add new function
227 ext2fs_allocate_group_table() which sets the group tables
228 for a particular block group. The relevant code was
229 factored out of ext2fs_allocate_tables().
230
231 * dblist.c (make_dblist): Adjust the initial size of the directory
Theodore Ts'o024996c1997-06-17 05:38:35 +0000232 block list to be a bit more realistic (ten plus twice the
Theodore Ts'o1e1da291997-06-09 14:51:29 +0000233 number of directories in the filesystem).
234
Theodore Ts'of635d7f1997-05-09 02:50:16 +0000235Thu May 8 22:19:09 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
236
237 * badblocks.c (ext2fs_badblocks_list_test): Fix bug where
238 ext2fs_badblocks_list_test would test the list (and exceed
239 array boundaries) if there were no bad blocks on the bad
240 blocks list. (Showed up when user tried: mke2fs -c -b 4096).
241
Theodore Ts'oa29f4d31997-04-29 21:26:48 +0000242Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
243
244 * Release of E2fsprogs version 1.10
245
246Thu Apr 24 10:13:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
247
248 * alloc_tables.c (ext2fs_allocate_tables): Correctly place the
249 inode and block bitmaps based on the RAID 0 stride
250 parameter (which is passed by mke2fs).
251
252 * ext2fs.h: Add "stride" parameter to ext2_filsys, to be used by
253 mke2fs to communicate the stride length to
254 ext2fs_allocate_tables()
255
256Wed Apr 23 21:50:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
257
258 * initialize.c (ext2fs_initialize): Fix to compile under Linux 1.2
259 systems. (We can't assume that the new filesystem types
260 are supported.)
261
262Wed Apr 23 18:40:53 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
263
264 * alloc_tables.c (ext2fs_allocate_tables): Make sure that we
265 allocate the inode and block bitmaps inside block group at
266 all times.
267
268Mon Apr 21 00:06:28 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
269
270 * alloc.c (ext2fs_new_block): Fix bug where if goal==0 and the
271 filesystem has no free blocks, ext2fs_new_block would loop
272 forever.
273
274 * dupfs.c (ext2fs_dup_handle): Duplicate an ext2 filesystem handle
275
276 * freefs.c (ext2fs_free_inode_cache): Decrement refcount and only
277 free if refcount goes to zero.
278
279 * inode.c (create_icache): Initialize refcount to 1.
280
281 * ext2fsP.h: Added refcount to ext2_inode_cache
282
283 * dblist.c (ext2fs_copy_dblist): New function to copy a directory
284 block list.
285
286 * badblocks.c (ext2fs_badblocks_copy): New function to copy a
287 badblocks structure.
288
289Sun Apr 20 23:19:51 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
290
291 * bitmaps.c (ext2fs_copy_bitmap): New function to copy a bitmap.
292
293 * unix_io.c, test_io.c (unix_open, test_open): Initialize the
294 refcount to 1.
295 (unix_close, test_close): Decrement the refcount and only
296 close the io_channel if the refcount goes to 0.
297
298 * io.h: Add refcount to the io_channel structure. Add new macro
299 interface io_channel_bumpcount() to bump the refcount.
300
301Thu Apr 17 20:25:03 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
302
303 * inode.c (ext2fs_read_inode, ext2fs_write_inode): Use the inode
304 cache in the filesystem handle, instead of the inode cache
305 in a static variable.
306
307 * freefs.c: Added static function to free the inode cache (called by
308 ext2fs_free).
309
310 * ext2fsP.h: Added definition of the ext2_inode_cache structures.
311
312 * ext2fs.h: Added pointer to the inode_cache structure.
313
314 * block.c (block_iterate_ind, block_iterate_dind,
315 block_iterate_tind): If there are holes in the indirect,
316 doubly indirect, or triply indirect blocks, increment the
317 block count field automatically.
318
319Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
320
321 * Release of E2fsprogs version 1.09
322
Theodore Ts'o2ecc6fe1997-04-29 17:57:00 +0000323Mon Apr 14 20:38:56 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
324
325 * version.c (ext2fs_parse_version_string): Check the passed in
326 version string (instead of the hard-coded one).
327
328 * alloc_tables.c (ext2fs_allocate_tables): If the last block is
329 greater filesystem size, clamp it to prevent allocating a
330 block or inode bitmap beyond the filesystem.
331
332 * initialize.c (ext2fs_initialize): Fix bug where the metatdata
333 overhead calculation was accidentally removed.
334
335Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
336
337 * Release of E2fsprogs version 1.08
338
Theodore Ts'o521e3681997-04-29 17:48:10 +0000339Thu Apr 10 13:15:15 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
340
341 * dblist.c (ext2fs_set_dir_block): New function which sets the
342 block of a dblist entry, given the directory inode and
343 blockcnt.
344
345Sat Apr 5 12:42:42 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
346
347 * alloc_tables.c (ext2fs_allocate_tables): Allocate the bitmap and
348 inode bitmaps at staggered locations across the block
349 groups, to avoid concentrating the bitmaps on a small
350 number of disks when using striped RAID arrays.
351
352 * initialize.c (ext2fs_initialize): By default, choose the maximum
353 possible number of blocks per group (based on the size of
354 the bitmaps in the blocksize).
355
356Fri Apr 4 11:28:16 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
357
358 * initialize.c (ext2fs_initialize): Add support for
359 EXT2_COMPAT_SPARSE_SUPER feature.
360
361 * closefs.c (ext2fs_bg_has_super): New function to determine
362 whether or a particular block group should have a
363 superblock and block group descriptor. Used for the
364 EXT2_COMPAT_SPARSE_SUPER feature is turned on.
365 (ext2fs_flush): Check ext2fs_bg_has_super to see whether
366 or not the superblock should be written out for the block
367 group.
368
369 * ext2fs.h (EXT2_COMPAT_SPARSE_SUPER): Define compatibility flag
370 for sparse duplicate superblocks.
371
372 * version.c (ext2fs_get_library_version): New function which
373 returns the library version.
374
375 * version.c (ext2fs_parse_version_string): New function which
376 parses a version string and returns a version number,
377 so application programs can compare version numbers as
378 integers.
379
380Wed Mar 26 00:43:52 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
381
382 * icount.c (ext2fs_create_icount): Change function so that it also
383 takes a new argument which contains a "hint" icount
384 structure. This "hint" icount allows the create function
385 to set up the sorted list in advance. This reduces
386 significantly the amount of data moving needed to insert
387 these inodes into the list later.
388
389 * icount.c (ext2fs_icount_validate): New function which validates
390 that the icount structure's rep invariant.
391
392 * icount.c (get_icount_el): Completely revamped implementation
393 to subsume put_icount_el(). Put_icount_el() used to
394 use an O(N) implementation to insert in the middle
395 of the icount list. It now uses a O(ln N) to search
396 for where the icount should be inserted, and then uses
397 a memcpy to move the list down (instead of a for loop).
398
399 * icount.c (ext2fs_icount_fetch, ext2fs_icount_store,
400 ext2fs_icount_increment, ext2fs_icount_decrement): Check
401 to see if the inode is within bounds; if it isn't, return
402 EINVAL.
403
404 * bitops.h (ext2fs_test_generic_bitmap): Fix error message given
405 when a bad inode number is passed to test_generic_bitmap
406 to be EXT2FS_TEST_ERROR instead of the wrong
407 EXT2FS_UNMARK_ERROR.
408
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000409Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu>
410
411 * Release of E2fsprogs version 1.07
412
413Sun Mar 2 16:46:18 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
414
415 * Makefile.in (ELF_VERSION): Change version to be 2.2
416
417Tue Feb 11 14:54:02 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
418
419 * alloc.c (ext2fs_get_free_blocks): Change routine to use
420 ext2fs_fast_test_block_bitmap_range().
421
422 * bitops.h (ext2fs_fast_test_block_bitmap_range,
423 ext2fs_test_block_bitmap_range: New inline functions which
424 test to see whether a contiguous range of blocks is
425 available.
426
427Thu Feb 6 10:00:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
428
429 * badblocks.c (ext2fs_badblocks_list_create): Rename sybmols to use
430 use ext2fs_badblocks_* instead of badblocks_*
431
432 * bb_compat.c: New file which translates between old badblocks_*()
433 names to ext2fs_badblocks_*()
434
435 * unlink.c (ext2fs_unlink): New file, moved ext2fs_unlink() from
436 link.c (since e2fsck doesn't use ext2fs_unlink()).
437
438 * rs_bitmap.c (ext2fs_resize_generic_bitmap): New file, contains
439 bitmap resizing routine moved from bitmaps.c, since e2fsck
440 doesn't need to use this function.
441
442 * lookup.c (ext2fs_lookup): Moved ext2fs_lookup to its own file,
443 since e2fsck only needs ext2fs_lookup.
444
445Mon Feb 3 10:11:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
446
447 * inode.c (ext2fs_open_inode_scan): Set fs->badblocks if it is not
448 already set; this is needed so that programs like dump
449 which use the inode scan functions will deal with
450 filesystems that have bad blocks in the inode table.
451
452Sun Feb 2 00:17:36 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
453
454 * ext2fs.h (struct_badblocks_list, struct_badblocks_iterate):
455 Moved to ext2fsP.h, since it doesn't need to be part of
456 the public interface.
457
458 * dir_iterate.c: Move ext2_dir_iterate out of namei.c.
459
460Sat Feb 1 10:14:55 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
461
462 * dblist.c (ext2fs_get_num_dirs): New file, which implements a
463 directory block list abstraction. (Code moved from
464 e2fsck).
465
466 * ext2fs.h, inode.c: Moved definition of ext2_struct_inode_scan to
467 to inode.c (since no one else should be peeking inside it!)
468
469 * valid_blk.c (ext2_inode_has_valid_blocks): New function.
470
471 * openfs.c (ext2fs_open): Check the feature set in the ext2
472 superblock, and refuse to open filesystems if they contain
473 incompatible features. (Can be overriden with the
474 EXT2_FLAG_FORCE
475
476Sun Jan 12 11:31:46 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
477
478 * block.c (ext2fs_block_iterate2): Added new function
479 ext2fs_block_iterate2 which changes the function
480 signature of the callback function to include the
481 referencing block and offset.
482
483 * inode.c (ext2fs_inode_scan_goto_blockgroup): Added new function
484 ext2fs_inode_scan_goto_blockgroup which allows an
485 application to jump to a particular block group while
486 doing an inode scan.
487
488Wed Jan 1 23:50:12 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
489
490 * dirblock.c: Include string.h, since we use memcpy().
491
492Tue Dec 3 12:27:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
493
494 * getsize.c (ext2fs_get_device_size): The ioctl BLKGETSIZE returns
495 a long not an int; this doesn't matter on i386 machines,
496 but it does on Alpha's.
497
498Fri Nov 29 20:57:37 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
499
500 * inode.c (ext2fs_write_inode, ext2fs_read_inode): If the inode
501 table pointer is NULL, then return an error indicating
502 that the inode table is missing.
503 (get_next_blockgroup, get_next_blocks,
504 ext2fs_get_next_inode): Don't treat a missing inode table
505 as permanent error. Return MISSING_INODE_TABLE, but as an
506 advisory error code, much like BAD_BLOCK_IN_INODE_TABLE.
507
508 * rw_bitmaps.c (ext2fs_write_block_bitmap,
509 ext2fs_write_inode_bitmap): If the inode or block bitmap
510 block is zero, then don't write out the inode or block
511 bitmap. The idea here is to avoid stomping on the
512 superblock.
513 (read_bitmaps): If the inode or block bitmap block is
514 zero, then fill in that portion of the inode or block
515 bitmap with all zeros.
516
517 * inode.c (ext2fs_get_next_inode): Fix bug in handling of bad
518 blocks in inode table when the inode table size is
519 non-standard (and can therefore span blocks).
520
521Tue Oct 29 20:13:14 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
522
523 * alloc.c (ext2fs_new_block): Fix fencepost error in
524 ext2fs_new_block; make sure we don't try to allocate the
525 first block beyond the end of the filesystem.
526
527Mon Oct 14 11:00:48 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
528
529 * inode.c (check_for_inode_bad_blocks): New function called by
530 get_next_blocks() to avoid reading in bad blocks marked in
531 fs->badblocks. Inodes located in bad blocks are returned
532 by ext2fs_get_next_inode() returns the error code
533 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE.
534
535 * alloc_tables.c (ext2fs_allocate_tables): New function which
536 performs the part of mke2fs's job of allocating the
537 filesystem tables.
538
539 * test_io.c (test_close): IO manager which is used for testing
540 purposes.
541
542Sun Oct 13 04:31:57 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
543
544 * inode.c (ext2fs_get_next_inode): Separate out the function of
545 setting up for a new block group to get_next_blockgroup().
546 Separate out the function of reading in blocks of the
547 inode table to get_next_blocks().
548
549 * ext2fs.h: Add the badblocks list to the ext2_filsys entry
550
551 * badblocks.c (badblocks_list_add, badblocks_list_test): Add
552 blocks to the badblock list in sorted order. This allows
553 badblocks_list_test to be coded using a binary search for
554 speed.
555
556Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
557
558 * Release of E2fsprogs version 1.06
559
Theodore Ts'o5c576471997-04-29 15:29:49 +0000560Mon Oct 7 00:44:17 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
561
562 * ext2fs.h, block.c, closefs.c, dirblock.c, inode.c, native.c,
563 open.c: Change EXT2_SWAP to EXT2_FLAG_SWAP for
564 consistency's sake.
565
566 * closefs.c (ext2fs_flush): If the flag EXT2_MASTER_SB_ONLY is
567 set, then only write out the master superblock.
568
569Sun Oct 6 21:45:26 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
570
571 * block.c (ext2fs_block_iterate): Fixed bug which caused
572 block_iterate to fail to handle HURD created filesystems;
573 it tested the inode translator field before the inode was
574 loaded.
575
576Tue Sep 17 14:08:24 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
577
578 * initialize.c (ext2fs_initialize): Make sure the description for
579 the inode bitmap is set correctly.
580
581 * bitmaps.c (ext2fs_allocate_generic_bitmap): Fix minor type typo.
582
583Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
584
585 * Release of E2fsprogs version 1.05
586
Theodore Ts'o1e3472c1997-04-29 14:53:37 +0000587Sat Sep 7 07:36:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
588
589 * initialize.c: Override the kernel's idea of default
590 checkinterval from 0 (never) to 180 days.
591
592Wed Aug 28 03:20:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
593
594 * namei.c (ext2fs_namei_follow): New function which follows
595 symbolic link (if any) at the target.
596
597Tue Aug 27 01:48:43 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
598
599 * inode.c (ext2fs_read_inode, ext2fs_write_inode): Add support
600 for shortcut function fs->read_inode() and fs->write_inode().
601 Added inode_cache to reduce CPU time spent in doing
602 byte swapping.
603
604 * swapfs.c (ext2fs_swap_super): Swap the new fields in a V2
605 superblock.
606
607 * namei.c (ext2fs_follow_link): New function.
608 (ext2fs_namei): Extended to have support for chasing
609 symbolic links. ext2fs_namei() still returns an inode
610 which is a symbolic link. Symbolic links are only chased
611 while resolving the containing directory. To chase
612 symbolic links of the final result, use
613 ext2fs_follow_link().
614
615Mon Aug 26 23:46:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
616
617 * ext2_err.et.in: Added new error code EXT2_ET_SYMLINK_LOOP.
618
619 * bitops.h (ext2fs_set_bit, ext2fs_celar_bit): Use asm inlines
620 provided by Pete A. Zaitcev (zaitcev@lab.sun.mcst.ru).
621
622Thu Aug 22 00:40:18 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
623
624 * initialize.c (ext2fs_initialize): On systems where the byte
625 order is not i386 compatible, set the swap_byte flag.
626
627 * inode.c (inocpy_with_swap): Check to see if inode contains a
628 fast symlink before swapping the inode block fields. This
629 required adding a new argument to inocpy_with_swap to
630 determine whether the mode field is in host order or not.
631
632Wed Aug 21 00:45:42 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
633
634 * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit): On
635 the sparc, if EXT2_STD_BITOPS set, use the standard
636 i386-compatible bitmask operations, instead on the
637 non-standard native bitmask operators.
638
639Fri Aug 9 11:11:35 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
640
641 * block.c (ext2fs_block_iterate): Cause block iterator to return
642 the HURD translator block (along with everything else).
643 If the flag BLOCK_FLAG_DATA_ONLY is passed to the block
644 iterator, then don't return any meta data blocks
645 (including the HURD translator).
646
647Wed Jul 17 17:13:34 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
648
649 * gen_uuid.c: New file, which generates DCE-compatible UUIDs.
650
651 * uuid.c: New file, containing UUID utility functions.
652
653Tue Jul 16 10:19:16 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
654
655 * ext2fs.h: Add a definition of the "real" ext2 superblock.
656
657Fri May 24 14:54:55 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
658
659 * ext2fs.h: Fix erroneous ino_t type used in block_bitmap type.
660
661Sun May 19 15:39:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
662
663 * openfs.c (ext2fs_open): If the blocksize in the superblock is
664 zero, return the error EXT2_ET_CORRUPT_SUPERBLOCK, since
665 that's a basic value that must be correct for the rest of
666 the library to work.
667
668 * ext2_err.et.in (EXT2_ET_CORRUPT_SUPERBLOCK): Added new error
669 code.
670
Theodore Ts'o62c06f71997-04-29 14:34:47 +0000671Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
672
673 * Release of E2fsprogs version 1.04
674
Theodore Ts'o7f88b041997-04-26 14:48:50 +0000675Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
676
677 * Release of E2fsprogs version 1.03
678
679Tue Mar 26 12:06:32 1996 <tytso@rsts-11.mit.edu>
680
681 * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit):
682 Change the m68k bit numbering for bitmasks to match with
683 the bit numbering used by all other ext2 implementations.
684
685Thu Mar 7 03:37:00 1996 <tytso@rsts-11.mit.edu>
686
687 * inode.c (ext2fs_get_next_inode, ext2fs_close_inode_scan,
688 ext2fs_open_inode_scan): Support dynamically-sized inodes.
689
690Wed Mar 6 12:26:29 1996 <tytso@rsts-11.mit.edu>
691
692 * inode.c (ext2fs_read_inode, ext2fs_write_inode): Support
693 dynamically-sized inodes.
694
695 * openfs.c (ext2fs_open): Allow dynamic revision filesystem to be
696 loaded.
697
698Tue Mar 5 03:49:37 1996 <tytso@rsts-11.mit.edu>
699
700 * initialize.c (ext2fs_initialize): Catch an error condition where
701 the passed in size is *really* too small.
702
703 * alloc.c (ext2fs_new_inode):
704 * ext2fs.h (EXT2_FIRST_INODE): Add support for dynamic revision to
705 get first inode.
706
707Wed Feb 21 15:56:17 1996 <tytso@rsts-11.mit.edu>
708
709 * getsize.c (ext2fs_get_device_size): Open the device read-only
710 when trying to determine its size.
711
Theodore Ts'o74becf31997-04-26 14:37:06 +0000712Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
713
714 * Release of E2fsprogs version 1.02
715
716Sat Dec 9 09:57:50 1995 <tytso@rsts-11.mit.edu>
717
718 * rw_bitops.c (ext2fs_write_block_bitmap):
719 * bitops.c (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit):
720 * bitops.h (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit):
721 Rename {test,set,clear}_bit to ext2fs_{test,set,clear}_bit,
722 to avoid conflicts with with kernel include files. Also
723 rename ADDR and CONST_ADDR to EXT2FS_ADDR and
724 EXT2FS_CONST_ADDR.
725
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000726Thu Oct 26 12:09:16 1995 <tytso@rsts-11.mit.edu>
727
728 * ext2_err.et: Updated message in EXT2_ET_BASE to say version 0.5c
729
730 * swapfs.c (ext2fs_swap_super): Put an #ifdef check around
731 s_def_resuid and s_def_resgid for backwards compatibility.
732
733Fri Oct 20 23:33:31 1995 <tytso@rsts-11.mit.edu>
734
735 * bitops.h: Added #ifdef's for Sparc.
736
737Wed Sep 6 22:14:46 1995 <tytso@rsts-11.mit.edu>
738
739 * getsize.c: #include <sys/ioctl.h> under Linux to pick up ioctl()
740 declaration
741
742 * closefs.c: #include <string.h> to pick up memset() declaration
743
744Mon Sep 4 21:45:29 1995 Remy Card <card@bbj>
745
746 * Makefile.in: Added support for BSD shared libraries.
747
748 * initialize.c (ext2fs_initialize): Correctly set the s_creator_os
749 flag.
750
751Mon Sep 4 09:55:30 1995 <tytso@rsts-11.mit.edu>
752
753 * unix_io.c (unix_open): Add a double check; if the passed in name
754 is NULL, return EXT2_ET_BAD_DEVICE_NAME.
755
756 * ext2_err.et (EXT2_ET_BAD_DEVICE_NAME): Added new error code
757
758Wed Aug 16 15:44:10 1995 <tytso@rsts-11.mit.edu>
759
760 * inode.c (ext2fs_check_directory): Use LINUX_S_ISDIR instead of
761 S_ISDIR.
762
763Tue Aug 15 13:08:36 1995 <tytso@rsts-11.mit.edu>
764
765 * getsize.c (ext2fs_get_device_size): Add support for reading the
766 partition size from a BSD disk label.
767
768Thu Aug 10 09:33:26 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
769
770 * getsize.c (ext2fs_get_device_size): New function that determins
771 the size of a device. Used by mke2fs and e2fsck.
772
773Sat Aug 12 03:09:54 1995 Remy Card <card@bbj>
774
775 * Makefile.in (install): Install static libraries in $(ulibdir)
776 (/usr/lib on Linux) instead of $(libdir) (/lib on Linux).
777
778Wed Aug 9 17:04:23 1995 Theodore Y. Ts'o <tytso@dcl>
779
780 * bitmaps.c (ext2fs_free_inode_bitmap, ext2fs_free_block_bitmap):
781 Move these functions to freefs.c.
782
783 * closefs.c (ext2fs_flush): If swapping blocks, clear the group
784 descriptors shadow memory to keep purify quiet. (This
785 also has the nice benefit that the unused portion of the
786 shadow descriptors are zeroed out.)
787
788 * dirblock.c (ext2fs_write_dir_block): We need to use
789 dirent->rec_len *before* it's byteswapped to find the
790 location of the next directory structure!
791
792 * alloc.c (ext2fs_new_inode): Fix bug which could potentially
793 cause ext2fs_new_inode to loop infinitely if we're trying
794 to allocate an inode in group #0 and there are no free
795 inodes at all in the system.
796
797 * closefs.c: #include <errno.h> if it exists.
798
799Sun Aug 6 13:27:50 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
800
801 * ext2fs.h (BLOCK_FLAG_HOLE): Added new definition for
802 BLOCK_FLAG_APPEND. Added documentation for the block
803 interator flags.
804
805Sat Aug 5 11:44:05 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
806
807 * Makefile.in (DLL_INSTALL_DIR, ELF_INSTALL_DIR): Set the
808 installation directories correctly.
809
810Tue Jul 18 09:27:38 1995 <tytso@rsx-11.mit.edu>
811
812 * namei.c (process_dir_block):
813 * mkdir.c (ext2fs_mkdir):
814 * expanddir.c (expand_dir_proc): Use ext2fs_{read,write}_dir_block
815 to read/write the directory block.
816
817 * dirblock.c (ext2fs_read_dir_block), ext2fs_write_dir_block): New
818 file containing functions for reading and writing
819 directory blocks (byte swapping if necesssary)
820
821 * block.c (block_iterate_ind, block_iterate_dind,
822 block_iterate_tind): Byte swap the block addresses if
823 EXT2_SWAP_BYTES is set (and swap them back before writing
824 them out.)
825
826 * inode.c (inocpy_with_swap): New function.
827 (ext2fs_get_next_inode, ext2fs_read_inode, ext2fs_write_inode):
828 Call inocpy_with_swap if EXT2_SWAP_BYTES if set.
829
830 * closefs.c (ext2fs_flush): If EXT2_SWAP_BYTES is set, then swap
831 the superblock and group descriptors before writing it out.
832
833 * openfs.c (ext2fs_open): If the magic number is byte-swapped,
834 then set the EXT2_SWAP_BYTES and byte-swap the superblock
835 and group descriptors.
836
837 * swapfs.c (ext2fs_swap_super, ext2fs_swap_group_desc): New functions
838 to desp ext2 filesystem structures.
839
840 * bitops.c (set_bit, clear_bit, test_bit): Use modifications
841 supplied by Pete A. Zaitcev so that the C language
842 versions of these functions are more portable. They will
843 now work on both little and big endian systems, and the
844 assumption that 32-bit integers are used is gone.
845
846 * bitops.h (ext2_swab16, ext2_swab32): Added new functions for
847 doing byte swapping.
848
849 * ext2fs.h (EXT2_SWAP_BYTES): Add new flag which indicates that
850 byte swapping should take place.
851
852Sun Jul 16 06:21:43 1995 <tytso@rsx-11.mit.edu>
853
854 * Makefile.in, cmp_bitmaps.c (ext2fs_compare_block_bitmap_end,
855 ext2fs_compare_inode_bitmap_end): Added new file
856 containing routines to compare bitmaps.
857
858 * ext2_err.et (EXT2_ET_NEQ_BLOCK_BITMAP, EXT2_ET_NEQ_INODE_BITMAP):
859 Added new error codes.
860
861Sat Jul 15 04:23:37 1995 <tytso@rsx-11.mit.edu>
862
863 * inode.c (ext2fs_get_next_inode): Don't check scan->inode_buffer;
864 if the magic number is correct, it will be allocated.
865
866Fri Jul 14 19:02:59 1995 <tytso@rsx-11.mit.edu>
867
868 * block.c (block_iterate_ind, block_iterate_dind,
869 block_iterate_tind): Don't recompute block_nr each loop;
870 just increment it! Factor check of BLOCK_FLAG_APPEND out
871 of the loop. Factor mask of BLOCK_CHANGED into changed
872 variable out of the loop. (block_iterate_ind, in
873 particular, gets called a lot, so every little
874 optimization helps.)
875
876Thu Jul 13 08:02:45 1995 <tytso@rsx-11.mit.edu>
877
878 * block.c (block_iterate_ind, block_iterate_dind,
879 block_iterate_tind): Precompute limit of loop to speed up
880 block_iterate_ind and company.
881
882 * bitops.h (ext2fs_fast_mark_block_bitmap,
883 ext2fs_fast_unmark_block_bitmap, ext2fs_fast_test_block_bitmap,
884 ext2fs_fast_mark_inode_bitmap, ext2fs_fast_unmark_inode_bitmap,
885 ext2fs_fast_test_inode_bitmap): Add fast version of these
886 functions, which don't do range checking.
887
888 * bitops.h (ext2fs_get_block_bitmap_start,
889 ext2fs_get_inode_bitmap_start, ext2fs_get_block_bitmap_end,
890 ext2fs_get_inode_bitmap_end): Add new accessor functions
891 which return the start and end points of the bitmaps.
892
893Tue Jul 11 18:59:41 1995 <tytso@rsx-11.mit.edu>
894
895 * llseek.c (ext2_llseek): If the offset is small enough, use lseek
896 instead of llseek. The errno if the offset is too large
897 and lseek is not supported should be EINVAL, not -EINVAL.
898
899Thu Jun 15 23:43:02 1995 Remy Card <card@bbj>
900
901 * Makefile.in: Added support for ELF shared libraries.
902 Fixed typos in the compilation rules.
903 (distclean): Added Makefile.
904
905 * llseek.c (llseek): New function, if llseek() does not exist in the
906 C library.
907 (ext2_llseek): Changed to call llseek().
908
909Mon Jun 12 08:29:07 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
910
911 * ext2fs.h: Use __u32 to define blk_t, instead of unsigned long.
912
913Sun Jun 11 15:02:54 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
914
915 * mkdir.c (ext2fs_mkdir): Use LINUX_S_IFDIR instead of S_IFDIR.
916
917 * ext2fs.h (LINUX_S_IFDIR): Define a linux specific versions of
918 the S_*, which are normally defined in <sys/stat.h>. This
919 allows us to compile e2fsprogs on a non-Linux system,
920 which may have a different value for S_IFDIR.
921
922Sat Jun 10 23:47:05 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
923
924 * bitops.c (clear_bit, set_bit): Remove calls to cli() and sti();
925 this is a user-mode application!
926
927Thu Jun 8 13:13:22 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
928
929 * llseek.c: Put the include of <linux/unistd.h> inside the #ifdef
930 __linux__ so that non-linux systems won't see it.
931
932 * alloc.c: Include <errno.h> if possible.
933 * badblocks.c: Ditto.
934 * bb_inode.c: Ditto.
935 * bitmaps.c: Ditto.
936 * block.c: Ditto.
937 * expanddir.c: Ditto.
938 * get_pathname.c: Ditto.
939 * initialize.c: Ditto.
940 * inode.c: Ditto.
941 * llseek.c: Ditto.
942 * mkdir.c: Ditto.
943 * namei.c: Ditto.
944 * newdir.c: Ditto.
945 * openfs.c: Ditto.
946 * rw_bitmaps.c: Ditto.
947 * unix_io.c: Ditto.
948
949 * Makefile.in: Rewritten to conform to GNU coding standards and
950 support separate compilation directories.
951
952Thu May 11 04:13:12 1995 <tytso@rsx-11.mit.edu>
953
954 * initialize.c (ext2fs_initialize): Don't allow more than one
955 bitmaps's worth of inodes in a group.
956
Theodore Ts'of3db3561997-04-26 13:34:30 +0000957Sat Mar 11 14:07:11 1995 Theodore Y. Ts'o <tytso@localhost>
958
959 * llseek.c (ext2_llseek): Added error checking to the llseek()
960 compat code to protect against overflow. This only
961 applies to 1.0 and early 1.1 kernels, which don't support
962 the llseek() system call.
963
964Thu Nov 24 16:29:00 1994 Theodore Y. Ts'o (tytso@rt-11)
965
966 * unix_io.c (unix_open): Initialize the read_error and write_error
967 io_channel pointers to be null.
968
969 * bb_inode.c (clear_bad_block_proc): If an illegal block number is
970 found, clear it but don't try to update the filesystem
971 accounting information, since that's hopeless anyway.
972
973 * block.c (bloblock_iterate_ind, bloblock_iterate_dind,
974 bloblock_iterate_tind): Check to see if the indirect blocks are
975 valid before trying to read them.
976
977 * ext2_err.et (EXT2_ET_BAD_IND_BLOCK, EX2_ET_BAD_DIND_BLOCK,
978 EXT2_ET_BAD_TIND_BLOCK): Add new error codes.
979
980 * bitops.h (ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap,
981 ext2fs_test_block_bitmap, ext2fs_mark_inode_bitmap,
982 ext2fs_unmark_inode_bitmap, ext2fs_test_inode_bitmap): If an
983 illegal block or inode number is passed in, return instead
984 of trying to test, set, or clear the bit.
985
986Mon Nov 7 21:32:33 1994 Remy Card <card@bbj>
987
988 * Makefile: Added a dummy install target in case shared libraries
989 are not built.
990
991Mon Oct 24 14:11:44 1994 (tytso@rsx-11)
992
993 * bitmaps.c (ext2fs_allocate_block_bitmap): Fix calculation of how
994 the real last block of the bitmap should be calculated.
995
996Wed Sep 7 10:05:36 1994 (tytso@rsx-11)
997
998 * bitmaps.c (ext2fs_fudge_inode_bitmap_end,
999 ext2fs_fudge_block_bitmap_end, ext2fs_clear_inode_bitmap,
1000 ext2fs_clear_block_bitmap, ext2fs_free_inode_bitmap,
1001 ext2fs_free_block_bitmap): Add magic number checking for
1002 the inode and block bitmaps.
1003
1004 * bitmaps.c (ext2fs_allocate_block_bitmap): Fix to set the correct
1005 magic number for a block bitmap instead of an inode bitmap.
1006
1007 * inode.c (ext2fs_close_inode_scan, ext2fs_get_next_inode): Add
1008 magic number checking for the inode_scan structure.
1009
1010 * badblocks.c (badblocks_list_free, badblocks_list_add,
1011 badblocks_list_test, badblocks_list_iterate_begin,
1012 badblocks_list_iterate, badblocks_list_iterate_end): Add
1013 magic number checking for the badblocks_list and
1014 badblocks_iterate structures.
1015
1016 * ext2_err.et (EXT2_ET_MAGIC_UNIX_IO_CHANNEL):
1017 * unix_io.c (unix_open, unix_close, unix_set_blksize, unix_read_blk,
1018 unix_write_blk, unix_flush): Add magic number checking
1019 both for io_channel structure and unix_private_data
1020 structure.
1021
1022 * openfs.c (ext2fs_open): Add check for io_manager structure's
1023 magic number.
1024
1025 * rw_bitmaps.c (ext2fs_write_inode_bitmap, ext2fs_write_block_bitmap,
1026 ext2fs_read_inode_bitmap, ext2fs_read_block_bitmap,
1027 ext2fs_read_bitmaps, ext2fs_write_bitmaps):
1028 * read_bb.c (ext2fs_read_bb_inode):
1029 * read_bb_file.c (ext2fs_read_bb_FILE):
1030 * newdir.c (ext2fs_new_dir_block):
1031 * namei.c (ext2fs_dir_iterate, ext2fs_lookup, ext2fs_namei):
1032 * link.c (ext2fs_link, ext2fs_unlink):
1033 * inode.c (ext2fs_open_inode_scan, ext2fs_read_inode,
1034 ext2fs_write_inode, ext2fs_get_blocks,
1035 ext2fs_check_directory):
1036 * get_pathname.c (ext2fs_get_pathname):
1037 * expanddir.c (ext2fs_expand_dir):
1038 * block.c (ext2fs_block_iterate):
1039 * bitmaps.c (ext2fs_allocate_inode_bitmap,
1040 ext2fs_allocate_block_bitmap):
1041 * bb_inode.c (ext2fs_update_bb_inode):
1042 * alloc.c (ext2fs_new_inode,ext2fs_new_block,ext2fs_get_free_blocks):
1043 * check_desc.c (ext2fs_check_desc):
1044 * closefs.c (ext2fs_close, ext2fs_flush):
1045 * freefs.c (ext2fs_free): Add check for ext2_filsys magic number.
1046
1047 * Makefile:
1048 * ext2fs.h:
1049 * openfs.c:
1050 * check_desc.c (ext2fs_check_desc): Move ext2fs_check_desc from
1051 openfs.c into its own file.
1052
1053 * ext2fs.h (EXT2_CHECK_MAGIC): Added macro for checking for
1054 structure magic numbers.
1055
1056 * closefs.c (ext2fs_flush): Folded in Remy Card's changes to clear
1057 the EXT2_VALID_FS flag in the backup superblock blocks, so that if
1058 someone uses the -b option to specify the use of the backup
1059 superblock --- this usually means that the main superblock is
1060 toast. :-)
1061
1062 * ext2fs.h:
1063 * ext2_err.et (EXT2_ET_REV_TOO_HIGH):
1064 * openfs.c (ext2fs_open): Folded in Remy Card's changes to add a
1065 revision level to the superblock.
1066
1067Sun Aug 21 00:50:08 1994 Theodore Y. Ts'o (tytso@rt-11)
1068
1069 * ext2fs.h:
1070 * bitmaps.c:
1071 * bitops.c
1072 * bitops.h:
1073 * openfs.c:
1074 * initialize.c: Completely revamped the inode and block bitmap
1075 structures, so that they can be better chance of being extensible
1076 in a shared library. They are now their own type, instead of
1077 being a char *. Also, the function signatures of
1078 ext2fs_test_block_bitmap, ext2fs_mark_block_bitmap,
1079 ext2fs_unmark_block_bitmap, ext2fs_test_inode_bitmap,
1080 ext2fs_mark_inode_bitmap, and ext2fs_unmark_inode_bitmap were
1081 changed to eliminate the ext2_filsys argument, since it is no
1082 longer necessary.
1083
1084Wed Aug 17 21:46:44 1994 Remy Card (card@bbj)
1085
1086 * unix_io.c (unix_read_blk and unix_write_blk): use the llseek
1087 system call if available.
1088
1089 * llseek.c: new file. This is the stub calling the llseek system
1090 call which allows supports for 2GB+ file systems.
1091
1092 * initialize.c (ext2fs_initialize): Ext2fs_initialize now stores
1093 the creator operating system.
1094
1095Wed Aug 17 10:03:24 1994 Theodore Y. Ts'o (tytso@rt-11)
1096
1097 * initialize.c (ext2fs_initialize): Ext2fs_initialize now sets up
1098 the group descriptor statistics in addition to everything else.
1099 This relieves mke2fs of the responsibility of doing it.
1100
1101 * bitops.c, bitops.h: Add assembly inline functions for the 68000.
1102 Added a new #define, _EXT2_HAVE_ASM_BITOPS_ to control whether or
1103 not the generic C function equivalents should be included or not.
1104
1105 * openfs.c (ext2fs_open): If a superblock is specified, then use
1106 the backup group descriptors that go along with this superblock,
1107 instead of using the primary group descriptors. This allows
1108 e2fsck to recover filesystems where the primary group descriptors
1109 have been trashed.
1110
1111