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