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