Theodore Ts'o | 6796013 | 2001-06-23 00:16:37 -0400 | [diff] [blame] | 1 | 2001-06-23 Theodore Tso <tytso@valinux.com> |
| 2 | |
| 3 | * Release of E2fsprogs 1.22 |
| 4 | |
Theodore Ts'o | 89a1fa8 | 2001-06-22 20:40:51 -0400 | [diff] [blame] | 5 | 2001-06-22 Theodore Tso <tytso@valinux.com> |
| 6 | |
Theodore Ts'o | b23520d | 2001-06-22 21:52:14 -0400 | [diff] [blame] | 7 | * mkjournal.c (ext2fs_add_journal_inode): Move close of file |
| 8 | descriptor so that adding a journal to a mounted |
| 9 | filesystem doesn't die. (Fixes a bug accidentally |
| 10 | introduced in e2fsprogs 1.21.) |
| 11 | |
Theodore Ts'o | 7833262 | 2001-06-22 21:20:47 -0400 | [diff] [blame] | 12 | * mkjournal.c (ext2fs_add_journal_inode): Only use fchflags if |
| 13 | HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has |
| 14 | fchflags without defining UF_NODUMP. (Addresses Debian |
| 15 | bug #101361) |
| 16 | |
Theodore Ts'o | d90f349 | 2001-06-22 21:01:17 -0400 | [diff] [blame] | 17 | * flushb.c: Use platform independent method of defining the |
| 18 | BLKFLSBUF and FDFLUSH ioctl's. Also include sys/mount.h |
| 19 | since on newer glibc's BLKFLSBUF is defined there. |
| 20 | |
Theodore Ts'o | 16645f8 | 2001-06-22 20:54:11 -0400 | [diff] [blame] | 21 | * bitops.h: The C language versions of ext2fs_swab16/32 need to be |
| 22 | included if EXT2FS_ENABLE_SWAPFS is defined, since we need |
| 23 | to support byte swapping even if we don't support the |
| 24 | conversion functions. (Fixes Debian bug #101686). |
| 25 | |
Theodore Ts'o | 89a1fa8 | 2001-06-22 20:40:51 -0400 | [diff] [blame] | 26 | * dirblock.c (ext2fs_read_dir_block): Remove use of dir_entry_2 |
| 27 | since the byte-swapping code all assumes the |
| 28 | ext2_dir_entry structure. (It's a question of whether or |
| 29 | not name_len should be byte-swapped or not, and whether |
| 30 | it's a 16 bit or 8 bit field.) |
| 31 | |
Theodore Ts'o | 997b820 | 2001-06-15 18:33:43 +0000 | [diff] [blame] | 32 | 2001-06-15 Theodore Tso <tytso@valinux.com> |
| 33 | |
Theodore Ts'o | f4f75ba | 2001-06-16 01:14:28 +0000 | [diff] [blame] | 34 | * Release of E2fsprogs 1.21 |
| 35 | |
| 36 | 2001-06-15 Theodore Tso <tytso@valinux.com> |
| 37 | |
Theodore Ts'o | d1e66b7 | 2001-06-15 22:44:32 +0000 | [diff] [blame] | 38 | * Makefile.in: Fix bug in installation of ext2_types.h. It is a |
| 39 | file which is generated and is therefore found in the |
| 40 | build directory, not source directory. |
| 41 | |
Theodore Ts'o | 997b820 | 2001-06-15 18:33:43 +0000 | [diff] [blame] | 42 | * ismounted.c (check_mntent_file): Use a test file in / to check |
| 43 | to see if the root filesystem is mounted read-only. This |
| 44 | protects against the case where /etc might not be on /, as |
| 45 | well as the case where /etc/mtab doesn't exist. (Both are |
| 46 | should-never happen scenarios, but you never know...) |
| 47 | |
Theodore Ts'o | 6bd1348 | 2001-06-14 07:00:55 +0000 | [diff] [blame] | 48 | 2001-06-14 Theodore Tso <tytso@valinux.com> |
| 49 | |
| 50 | * ismounted.c (ext2fs_check_if_mounted): Fix grammer in comment. |
| 51 | Remove unneeded #pragma argsused, since the arguments are |
| 52 | always used. |
| 53 | |
Theodore Ts'o | 30ae14c | 2001-06-13 22:38:56 +0000 | [diff] [blame] | 54 | 2001-06-13 Theodore Tso <tytso@valinux.com> |
| 55 | |
Theodore Ts'o | 6579488 | 2001-06-14 00:24:42 +0000 | [diff] [blame] | 56 | * ext2_types.h.in: If linux/types.h has been defined, then don't |
| 57 | try to redefine the typedefs. |
| 58 | |
Theodore Ts'o | 364a373 | 2001-06-13 23:46:39 +0000 | [diff] [blame] | 59 | * Makefile.in (HFILES): Add ext2_types.h to the list of files |
| 60 | which should be installed. |
| 61 | |
Theodore Ts'o | 66a4614 | 2001-06-13 23:26:19 +0000 | [diff] [blame] | 62 | * ismounted.c (check_mntent_file): Work around GNU hurd brain |
Theodore Ts'o | 83d5abf | 2001-06-13 23:31:27 +0000 | [diff] [blame] | 63 | damage. Addresses Debian bug #100304. |
Theodore Ts'o | 66a4614 | 2001-06-13 23:26:19 +0000 | [diff] [blame] | 64 | |
Theodore Ts'o | 30ae14c | 2001-06-13 22:38:56 +0000 | [diff] [blame] | 65 | * Makefile.in: Limit some .o files from being included into the |
| 66 | library if --disable-debugfs, --disable-swapfs, |
| 67 | --disable-imager, or --disable-resizer are used. |
| 68 | |
Theodore Ts'o | cbbf031 | 2001-06-13 00:12:04 +0000 | [diff] [blame] | 69 | 2001-06-12 Theodore Tso <tytso@valinux.com> |
| 70 | |
| 71 | * inode.c, tst_iscan.c: Stop using the compatibility badblocks |
| 72 | function, and use the ext2fs_badblocks_* functions |
| 73 | instead. |
| 74 | |
Theodore Ts'o | 5df55d7 | 2001-06-11 07:00:04 +0000 | [diff] [blame] | 75 | 2001-06-11 Theodore Tso <tytso@valinux.com> |
| 76 | |
Theodore Ts'o | 3034f62 | 2001-06-11 15:17:45 +0000 | [diff] [blame] | 77 | * Makefile.in, gen_bitmap.c, bitops.h: Move inline functions |
| 78 | ext2fs_mark_generic_bitmap and |
| 79 | ext2fs_unmark_generic_bitmap to gen_bitmap.c as normal |
| 80 | functions. (This saves space and doesn't significantly |
| 81 | change the speed of e2fsck on a P-III.) |
| 82 | |
Theodore Ts'o | 5df55d7 | 2001-06-11 07:00:04 +0000 | [diff] [blame] | 83 | * ext2fs.h, bitops.h, block.c, bmap.c, closefs.c, dirblock.c, |
| 84 | inode.c, native.c, openfs.c, rw_bitmaps.c, swapfs.c: Only |
| 85 | include the byte-swapping logic if ENABLE_SWAPFS is turned |
| 86 | on or if we're on a big-endian machine. |
| 87 | |
| 88 | * initialize.c (ext2fs_initialize):Use WORDS_BIGENDIAN directly to |
| 89 | set EXT2_FLAG_SWAP_BYTES, instead of using |
| 90 | ext2fs_native_flag. |
| 91 | |
| 92 | * native.c (ext2fs_native_flag): Use WORDS_BIGENDIAN provided by |
| 93 | autoconf to determine whether or not return |
| 94 | EXT2_FLAG_SWAP_BYTES. |
| 95 | |
Theodore Ts'o | 349a484 | 2001-06-11 00:49:29 +0000 | [diff] [blame] | 96 | 2001-06-10 Theodore Tso <tytso@valinux.com> |
| 97 | |
| 98 | * Makefile.in: Remove the dependence on the libe2p library. |
| 99 | |
| 100 | * mkjournal.c (ext2fs_add_journal_inode): Replace use of fsetflags |
| 101 | with direct usage of the ioctl/fchflags so that we don't |
| 102 | have to depend on the libe2p library. |
| 103 | |
Theodore Ts'o | 30e50b7 | 2001-06-08 09:43:40 +0000 | [diff] [blame] | 104 | 2001-06-08 Theodore Tso <tytso@valinux.com> |
| 105 | |
| 106 | * ext2_types.h.in: Use unsigned ints in favor of unsigned longs |
| 107 | when trying to find a 32-bit wide type. |
| 108 | |
| 109 | * icount.c (insert_icount_el): Fix the code used to estimate the |
| 110 | size of the new icount array to be more intelligent, to |
| 111 | avoid reallocating the array too many times. Thanks to |
| 112 | Enrique Perez-Terron for pointing this out. |
| 113 | |
Theodore Ts'o | f36d14f | 2001-06-02 04:13:16 +0000 | [diff] [blame] | 114 | 2001-06-02 Theodore Tso <tytso@valinux.com> |
| 115 | |
| 116 | * valid_blk.c (ext2fs_inode_has_valid_blocks): Only check i_blocks |
| 117 | for a symlink to determine whether it is a fast symlink. |
| 118 | |
Theodore Ts'o | 797f5ef | 2001-06-01 23:49:46 +0000 | [diff] [blame] | 119 | 2001-06-01 Theodore Tso <tytso@valinux.com> |
| 120 | |
| 121 | * Makefile.in, dosio.c, ext2_fs.h, ext2_types.h.in, ext2fs.h: |
Theodore Ts'o | 36a23e1 | 2001-06-02 00:54:10 +0000 | [diff] [blame] | 122 | Move include/asm/types.h.in to lib/ext2fs/ext2_types.h.in. |
Theodore Ts'o | 797f5ef | 2001-06-01 23:49:46 +0000 | [diff] [blame] | 123 | |
Theodore Ts'o | d5f858d | 2001-05-25 17:14:23 +0000 | [diff] [blame] | 124 | 2001-05-25 Theodore Tso <tytso@valinux.com> |
| 125 | |
Theodore Ts'o | bb18586 | 2001-05-25 17:35:00 +0000 | [diff] [blame] | 126 | * Release of E2fsprogs 1.20 |
| 127 | |
| 128 | 2001-05-25 Theodore Tso <tytso@valinux.com> |
| 129 | |
Theodore Ts'o | d5f858d | 2001-05-25 17:14:23 +0000 | [diff] [blame] | 130 | * ismounted.c: More cleanups for ismounted.c, some from Andreas, |
| 131 | some to clean up Andreas's patches. Use strncpy instead |
| 132 | of strcpy to save the root's mountpoint. Clean up #ifdef |
| 133 | structure. Remove uneeded variable in testing/debug driver. |
| 134 | |
Theodore Ts'o | cc86017 | 2001-05-25 16:32:53 +0000 | [diff] [blame] | 135 | 2001-05-24 Andreas Dilger <adilger@turbolinux.com> |
| 136 | |
| 137 | * ismounted.c: Add check for root device which doesn't depend on |
| 138 | /etc/fstab or /proc/mounts to be correct. Don't call |
| 139 | endmntent() before we are done with mnt struct. |
| 140 | |
Theodore Ts'o | 4ed8ebe | 2001-05-23 18:30:10 +0000 | [diff] [blame] | 141 | 2001-05-23 Theodore Tso <tytso@valinux.com> |
| 142 | |
| 143 | * ext2_err.et.in (EXT2_ET_JOURNAL_UNSUPP_VERSION): Added new error |
| 144 | code. |
| 145 | |
Theodore Ts'o | b10820c | 2001-05-21 05:23:31 +0000 | [diff] [blame] | 146 | 2001-05-21 Theodore Tso <tytso@valinux.com> |
| 147 | |
| 148 | * ext2_fs.h: Change assignment of EXT2_FEATURE_COMPAT_DIR_INDEX to |
| 149 | make room for pre-existing usage of |
| 150 | EXT2_FEATURE_COMPAT_EXT_ATTR. Add flag EXT2_INDEX_FL with |
| 151 | the same codepoint as EXT2_BTREE_FL. |
| 152 | |
Theodore Ts'o | 7c2d256 | 2001-05-21 02:54:21 +0000 | [diff] [blame] | 153 | 2001-05-20 Theodore Tso <tytso@valinux.com> |
| 154 | |
| 155 | * ext2fs.h: #include <> instead of "" for ext2fs and et header |
| 156 | files, since they will be installed in /usr/include |
| 157 | |
Theodore Ts'o | 7a34cb0 | 2001-05-14 04:28:35 +0000 | [diff] [blame] | 158 | 2001-05-14 Theodore Tso <tytso@valinux.com> |
| 159 | |
Theodore Ts'o | 9f8046f | 2001-05-14 11:35:52 +0000 | [diff] [blame] | 160 | * alloc.c, alloc_tables.c, badblocks.c, bb_compat.c, bb_inode.c, |
| 161 | bitmaps.c, bitops.c, block.c, bmap.c, bmove.c, brel_ma.c, |
| 162 | check_desc.c, closefs.c, cmp_bitmaps.c, dblist.c, |
| 163 | dblist_dir.c, dir_iterate.c, dirblock.c, dupfs.c, |
| 164 | expanddir.c, ext2_fs.h, fileio.c, finddev.c, flushb.c, |
| 165 | freefs.c, get_pathname.c, getsize.c, icount.c, imager.c, |
| 166 | initialize.c, inline.c, inode.c, irel_ma.c, ismounted.c, |
| 167 | link.c, lookup.c, mkdir.c, mkjournal.c, namei.c, native.c, |
| 168 | newdir.c, nt_io.c, openfs.c, read_bb.c, read_bb_file.c, |
| 169 | rs_bitmap.c, rw_bitmaps.c, swapfs.c, test_io.c, |
| 170 | tst_badblocks.c, tst_byteswap.c, tst_getsize.c, |
| 171 | tst_iscan.c, unix_io.c, unlink.c, valid_blk.c, version.c, |
| 172 | write_bb_file.c, ext2_fs.h: Moved file from include/linux. |
| 173 | Adjust all files in this directroy to include this file. |
| 174 | |
Theodore Ts'o | 7a34cb0 | 2001-05-14 04:28:35 +0000 | [diff] [blame] | 175 | * mkjournal.c (ext2fs_create_journal_superblock): Remove redundant |
| 176 | code. |
| 177 | |
Theodore Ts'o | 0f67945 | 2001-05-05 16:42:24 +0000 | [diff] [blame] | 178 | 2001-05-05 Theodore Tso <tytso@valinux.com> |
| 179 | |
| 180 | * fileio.c (ext2fs_file_read): Factored out common code and |
| 181 | cleaned up function. Fixed a bug where if there was an |
| 182 | error reading from the disk, the number of bytes read |
| 183 | wasn't reliably set. (Fixes Debian bug #79163) |
| 184 | (ext2fs_file_write): Factored out common code and made |
| 185 | function more efficient; if writing a full block, don't |
| 186 | bother to do a read-modify-write cycle. |
| 187 | |
Theodore Ts'o | 1cca4d6 | 2001-05-05 05:12:14 +0000 | [diff] [blame] | 188 | 2001-05-04 Theodore Tso <tytso@valinux.com> |
| 189 | |
| 190 | * dirblock.c (ext2fs_read_dir_block): Check for an directory |
| 191 | record length which isn't a multiple four, and treat that |
| 192 | as an invalid. Scan the directory and return an error |
| 193 | (EXT2_ET_DIR_CORRUPTED) if the directory records are |
| 194 | corrupted. |
| 195 | (ext2fs_write_dir_block): If while byte-swapping the |
| 196 | directory block, if there's an error, abort and return |
| 197 | EXT2_ET_DIR_CORRUPTED. |
| 198 | |
Theodore Ts'o | a78926e | 2001-05-03 04:02:29 +0000 | [diff] [blame] | 199 | 2001-05-02 Theodore Tso <tytso@valinux.com> |
| 200 | |
| 201 | * ext2fs.h (EXT2_FLAG_IMAGE_FILE): Add new flag, and add |
| 202 | image_header field in the ext2_filsys structure |
| 203 | |
| 204 | * block.c (block_iterate_ind, block_iterate_dind, block_iterate_tind): |
| 205 | * inode.c (ext2fs_read_inode): |
| 206 | * rw_bitmaps.c (read_bitmaps): |
| 207 | * openfs.c (ext2fs_open): Add support for EXT2_FLAG_IMAGE_FILE |
| 208 | |
| 209 | * imager.c (ext2fs_image_bitmap_read): Fix bug in imager to make |
| 210 | sure the full bitmap is saved. |
| 211 | |
Theodore Ts'o | f955cc1 | 2001-05-01 19:04:28 +0000 | [diff] [blame] | 212 | 2001-05-01 Theodore Tso <tytso@valinux.com> |
| 213 | |
Theodore Ts'o | a78926e | 2001-05-03 04:02:29 +0000 | [diff] [blame] | 214 | * e2image.h (struct ext2_image_hdr): Add space for the device name |
| 215 | in the image header. |
| 216 | |
Theodore Ts'o | f955cc1 | 2001-05-01 19:04:28 +0000 | [diff] [blame] | 217 | * dir_iterate.c (ext2fs_process_dir_block): Add a double-check to |
| 218 | make sure the rec_len is a multiple of 4, to prevent |
| 219 | bus-errors on architectures which care about mis-aligned |
| 220 | pointer references. |
| 221 | |
Theodore Ts'o | 954a683 | 2001-04-26 01:42:37 +0000 | [diff] [blame] | 222 | 2001-04-25 Theodore Tso <tytso@valinux.com> |
| 223 | |
| 224 | * getsize.c (ext2fs_get_device_size): Use an unsigned long to |
| 225 | query the device sizes using the BLKGETSIZE ioctl. |
| 226 | |
Theodore Ts'o | 0360394 | 2001-04-17 00:53:25 +0000 | [diff] [blame] | 227 | 2001-04-16 Theodore Tso <tytso@valinux.com> |
| 228 | |
Theodore Ts'o | 52db0b4 | 2001-04-17 02:22:05 +0000 | [diff] [blame] | 229 | * ismounted.c (check_mntent): Check /proc/mounts on Linux systems |
| 230 | before checking /etc/mtab. The EXT2_MF_READONLY flag is |
| 231 | now set from the /etc/mtab options field for all |
| 232 | filesystems, not just the root filesystem. Add debugging |
| 233 | code to make it easier to test ext2fs_check_if_mounted(). |
| 234 | |
Theodore Ts'o | 0360394 | 2001-04-17 00:53:25 +0000 | [diff] [blame] | 235 | * mkjournal.c (ext2fs_create_journal_superblock): Add safety |
| 236 | check; return an error if there's an attempt to create a |
| 237 | journal less than 1024 filesystem blocks. |
| 238 | |
| 239 | * ext2_err.et.in, mkjournal.c: Change EXT2_JOURNAL_NOT_BLOCK and |
| 240 | EXT2_NO_JOURNAL_SB to be EXT2_ET_*. |
| 241 | |
Theodore Ts'o | 9ec53cf | 2001-02-20 16:28:40 +0000 | [diff] [blame] | 242 | 2001-02-20 Theodore Tso <tytso@valinux.com> |
| 243 | |
| 244 | * bitops.h (ext2fs_swab16, ext2fs_swab32): Add i386 assembly |
| 245 | inline functions. |
| 246 | |
| 247 | * tst_byteswap.c: New function to test the byteswap functions. |
| 248 | Add to regression test suite. |
| 249 | |
Theodore Ts'o | c5423c5 | 2001-02-08 05:45:17 +0000 | [diff] [blame] | 250 | 2001-02-08 Theodore Tso <tytso@valinux.com> |
| 251 | |
| 252 | * e2image.h (struct ext2_image_hdr): Fix type for fs_hostname |
| 253 | |
Theodore Ts'o | d23042a | 2001-02-08 03:37:16 +0000 | [diff] [blame] | 254 | 2001-02-07 Theodore Tso <tytso@valinux.com> |
| 255 | |
| 256 | * mkjournal.c (ext2fs_create_journal_superblock): Fix the setting |
| 257 | of s_first for external devices to always be 1, since |
| 258 | jsb->s_first is always relative to the start of the |
| 259 | journal superblock. Use htonl(1) when setting s_nr_users. |
| 260 | |
Theodore Ts'o | 0208886 | 2001-01-18 01:44:19 +0000 | [diff] [blame] | 261 | 2001-01-17 Theodore Ts'o <tytso@valinux.com> |
| 262 | |
| 263 | * mkjournal.c (ext2fs_add_journal_device): Fix bug where the |
| 264 | device number of the filesystem (instead of the journal) |
| 265 | was being dropped into s_journal_dev. |
| 266 | |
Theodore Ts'o | a112847 | 2001-01-16 06:56:14 +0000 | [diff] [blame] | 267 | 2001-01-15 Theodore Ts'o <tytso@valinux.com> |
| 268 | |
| 269 | * initialize.c (ext2fs_initialize): Add support for initializing |
| 270 | the ext2 superblock for external journal devices. This |
| 271 | basically means we don't bother to allocate any block |
| 272 | group descriptors. |
| 273 | |
| 274 | * openfs.c (ext2fs_open): Only open external journal devices if |
| 275 | the new flag EXT2_FLAG_JOURNAL_DEV_OK is passed to |
| 276 | ext2fs_open. When opening such devices, don't try to read |
| 277 | the block group descriptors, since they're not there. |
| 278 | |
| 279 | * ext2_err.et.in (EXT2_NO_JOURNAL_SB): Add new error code |
| 280 | |
| 281 | * mkjournal.c: Export a new function, |
| 282 | ext2fs_create_journal_superblock(), which allocates and |
| 283 | returns a buffer containing a journal superblock. This is |
| 284 | needed by mke2fs to create an external journal. Rewrote |
| 285 | ext2fs_add_journal_device() so that it no longer creates |
| 286 | the external journal, but rather adds a filesystem to an |
| 287 | existing external journal. It handles all of the UUID |
| 288 | manipulation. |
| 289 | |
| 290 | * ext2fs.h: List the EXT3_FEATURE_JOURNAL_DEV as a flag supported |
| 291 | by the library. Define the EXT2_FLAG_JOURNAL_DEV_OK. |
| 292 | Changed function prototype for ext2fs_add_journal_device(). |
| 293 | |
Theodore Ts'o | 8077994 | 2001-01-14 18:03:43 +0000 | [diff] [blame] | 294 | 2001-01-14 Theodore Ts'o <tytso@valinux.com> |
| 295 | |
| 296 | * closefs.c (ext2fs_flush): Don't write out anything beyond the |
| 297 | primary superblock if EXT2_INCOMPAT_JOURNAL_DEV is |
| 298 | listed. |
| 299 | |
Theodore Ts'o | b94bd81 | 2001-01-12 17:26:05 +0000 | [diff] [blame] | 300 | 2001-01-12 Theodore Ts'o <tytso@valinux.com> |
| 301 | |
| 302 | * imager.c: Fix gcc -Wall complaints and a series of bugs where |
| 303 | retval wasn't set correctly. (Thanks to Andreas Dilger |
| 304 | for pointing this out.) |
| 305 | |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 306 | 2001-01-11 <tytso@snap.thunk.org> |
| 307 | |
| 308 | * flushb.c (ext2fs_sync_device): New function which centralizes |
| 309 | all of the places which might try to use the BLKFLSBUF |
| 310 | or FDFLUSH ioctls (and usually failing to define them |
| 311 | since the system header files don't usually do this for |
| 312 | us, and we're trying to avoid usage of kernel include |
| 313 | files now). |
| 314 | |
Theodore Ts'o | 31dbecd | 2001-01-11 04:54:39 +0000 | [diff] [blame] | 315 | 2001-01-10 <tytso@snap.thunk.org> |
| 316 | |
| 317 | * alloc.c, bb_inode.c, bitmaps.c, bitops.h, block.c, bmap.c, |
| 318 | bmove.c, brel.h, cmp_bitmaps.c, dblist.c, dblist_dir.c, |
| 319 | dir_iterate.c, expanddir.c, ext2fs.h, ext2fsP.h, fileio.c, |
| 320 | finddev.c, get_pathname.c, icount.c, inode.c, irel.h, |
| 321 | irel_ma.c, ismounted.c, link.c, lookup.c, mkdir.c, |
| 322 | mkjournal.c, namei.c, newdir.c, read_bb_file.c, test_io.c, |
| 323 | tst_iscan.c, unix_io.c, unlink.c: Change use of ino_t to |
| 324 | ext2_ino_t, to protect applications that attempt to |
| 325 | compile -D_FILE_OFFSET_BITS=64, since this inexplicably |
| 326 | changes ino_t(!?). So we use ext2_ino_t to avoid an |
| 327 | unexpected ABI change. |
| 328 | |
Theodore Ts'o | cdaf1fa | 2001-01-05 22:23:22 +0000 | [diff] [blame] | 329 | 2001-01-05 <tytso@snap.thunk.org> |
| 330 | |
Theodore Ts'o | e446d71 | 2001-01-05 22:27:06 +0000 | [diff] [blame] | 331 | * dirblock.c (ext2fs_read_dir_block): Fix a potential case where |
| 332 | we may overrun allocated memory in case of a corrupted |
| 333 | filesystem (or an e2fsck test case :-) when byte-swapping |
| 334 | the directory block. |
| 335 | |
Theodore Ts'o | cdaf1fa | 2001-01-05 22:23:22 +0000 | [diff] [blame] | 336 | * ext2fs.h: Indent the #warning to fix gcc -Wall complaint. |
| 337 | |
| 338 | * mkjournal.c (ext2fs_add_journal_device): Fix various gcc -Wall |
| 339 | complaints including a missing return 0 at the end of |
| 340 | ext2fs_add_journal_device. |
| 341 | |
Theodore Ts'o | 43ec873 | 2001-01-03 14:56:46 +0000 | [diff] [blame] | 342 | 2001-01-03 <tytso@snap.thunk.org> |
| 343 | |
Theodore Ts'o | 4becab6 | 2001-01-03 19:22:42 +0000 | [diff] [blame] | 344 | * Makefile.in: Link in libe2p when creating libext2fs as a shared |
| 345 | library, since mkjournal.c now references fsetflags(). |
| 346 | |
| 347 | * mkjournal.c (ext2fs_add_journal_inode): Folded in Andreas |
| 348 | Dilger's changes (with fixups) to allow on-line creation |
| 349 | of a journal file. |
| 350 | |
Theodore Ts'o | 43ec873 | 2001-01-03 14:56:46 +0000 | [diff] [blame] | 351 | * ext2fs.h, closefs.c (ext2fs_flush): Add new flag, |
| 352 | EXT2_FLAG_SUPER_ONLY, which the close routines to only |
| 353 | update the superblock, and not the group descriptors. |
| 354 | |
| 355 | 2000-12-30 Andreas Dilger <adilger@turbolinux.com> |
| 356 | |
| 357 | * ismounted.c: add ext2fs_check_mount_point() function, which will |
| 358 | optionally return the mount point of a device if mounted |
| 359 | |
Theodore Ts'o | 31a17b3 | 2001-01-03 13:04:12 +0000 | [diff] [blame] | 360 | 2000-12-14 Andreas Dilger <adilger@turbolinux.com> |
| 361 | |
| 362 | * mkjournal.c: rename ext2fs_add_journal_fs() to the more descriptive |
| 363 | ext2fs_add_journal_inode() |
| 364 | |
Theodore Ts'o | e5b38a5 | 2001-01-01 16:17:12 +0000 | [diff] [blame] | 365 | 2001-01-01 <tytso@snap.thunk.org> |
| 366 | |
| 367 | * ext2fs.h: Remove definition of ext2fs_sb. Note: this may break |
| 368 | source (but not binary) compatibility of some users of the |
| 369 | ext2 library. They should just simply do a global search |
| 370 | and replace of struct ext2fs_sb with struct |
| 371 | ext2_super_block, and use their own private copy of |
| 372 | ext2_fs.h if they aren't already. |
| 373 | |
| 374 | * closefs.c, initialize.c, link.c, newdir.c, openfs.c, swapfs.c: |
| 375 | Replace use of ext2fs_sb with ext2_super_block. |
| 376 | |
Theodore Ts'o | 2fe1efe | 2000-12-31 13:39:17 +0000 | [diff] [blame] | 377 | 2000-12-31 <tytso@snap.thunk.org> |
| 378 | |
| 379 | * ext2fs.h: Cleaned up header file by removing definitions of |
| 380 | feature flags that might not have been defined in older |
| 381 | ext2 header files. Now that we're using our own |
| 382 | include/linux/ext2fs.h header file, this can never happen. |
| 383 | |
| 384 | * jfs_dat.h: Removed old header file which is no longer needed. |
| 385 | |
Theodore Ts'o | 7dcfa6e | 2000-12-13 17:50:14 +0000 | [diff] [blame] | 386 | 2000-12-13 Theodore Ts'o <tytso@valinux.com> |
| 387 | |
Theodore Ts'o | a917d1c | 2000-12-13 18:36:23 +0000 | [diff] [blame] | 388 | * closefs.c (ext2fs_update_dynamic_rev): New function suggested |
Theodore Ts'o | 3fe973b | 2000-12-13 17:55:49 +0000 | [diff] [blame] | 389 | by Andreas Dilger to update the filesystem revision to |
| 390 | EXT2_DYNAMIC_REV. |
| 391 | |
Theodore Ts'o | 7dcfa6e | 2000-12-13 17:50:14 +0000 | [diff] [blame] | 392 | * swapfs.c (ext2fs_swap_super): Add byte swapping for the journal |
| 393 | fields. |
| 394 | |
Theodore Ts'o | 5861873 | 2000-12-09 05:47:45 +0000 | [diff] [blame] | 395 | 2000-12-09 <tytso@snap.thunk.org> |
| 396 | |
Theodore Ts'o | 31a17b3 | 2001-01-03 13:04:12 +0000 | [diff] [blame] | 397 | * ext2fs.h, mkjournal.c (ext2fs_add_journal_inode, |
Theodore Ts'o | 4e24670 | 2000-12-09 14:39:16 +0000 | [diff] [blame] | 398 | ext2fs_add_journal_device): Add a new argument to the APIs |
| 399 | of these function, which is a flags word. This is used to |
| 400 | allow the creation of a V1 superblock for those folks who |
| 401 | are using ext3 0.3b in production. Note, the user-land |
| 402 | interface for getting at this flag won't be documented, as |
| 403 | the V1 superblock is deprecated. |
| 404 | |
Theodore Ts'o | 5861873 | 2000-12-09 05:47:45 +0000 | [diff] [blame] | 405 | * mkjournal.c (init_journal_superblock): Sync Stephen's changes |
| 406 | which creates a V2 superblock instead of a V1 superblock. |
| 407 | |
Theodore Ts'o | f20d0d5 | 2000-12-05 03:53:41 +0000 | [diff] [blame] | 408 | 2000-11-21 <tytso@snap.thunk.org> |
| 409 | |
| 410 | * test_io.c (test_write_blk, test_write_byte): Fix typos pointed |
| 411 | out by Andreas Dilger. |
| 412 | |
Theodore Ts'o | 72ed126 | 2000-11-12 19:32:20 +0000 | [diff] [blame] | 413 | 2000-11-05 <tytso@snap.thunk.org> |
| 414 | |
| 415 | * imager.c (ext2fs_image_{inode,super,bitmap}_{read,write}, |
| 416 | ext2_fs.h, Makefile.in: New file that has routines that |
| 417 | save ext2fs metadata to a file. |
| 418 | |
| 419 | * ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned. |
| 420 | |
| 421 | * e2image.h: New file which defines the file format for the ext2 |
| 422 | image file. (Saved copy of ext2 metadata to a file as a |
| 423 | saving throw against worst-case damage.) |
| 424 | |
Theodore Ts'o | 6a7f455 | 2000-11-12 19:07:06 +0000 | [diff] [blame] | 425 | 2000-11-01 <tytso@snap.thunk.org> |
| 426 | |
| 427 | * inode.c (ext2fs_flush_icache): Add new function |
| 428 | ext2fs_flush_icache() which flushes the internal inode |
| 429 | cache. Applications which modify the inode table blocks |
| 430 | directly must call this function. |
| 431 | |
Theodore Ts'o | c180ac8 | 2000-10-26 20:24:43 +0000 | [diff] [blame] | 432 | 2000-10-26 <tytso@snap.thunk.org> |
| 433 | |
Theodore Ts'o | 17ee8b1 | 2000-10-26 20:45:58 +0000 | [diff] [blame] | 434 | * mkjournal.c: Add #include of netinet/in.h, since Solaris |
| 435 | requires it for ntohl(). |
| 436 | |
Theodore Ts'o | c180ac8 | 2000-10-26 20:24:43 +0000 | [diff] [blame] | 437 | * ext2_io.h (io_channel_write_byte): Add new interface to allow |
| 438 | callers to write specific byte ranges. This is an |
| 439 | optional interface, which not all IO channels may |
| 440 | implement. |
| 441 | |
| 442 | * unix_io.c (unix_write_byte): |
| 443 | * test_io.c (test_write_byte): Add implementation of the |
| 444 | write_byte function. |
| 445 | |
| 446 | * closefs.c (write_primary_superblock, ext2fs_flush): Add a new |
| 447 | function which writes the primary superblock. If the IO |
| 448 | channel supports writing raw bytes directly, only fields |
| 449 | which were modified are written to the disk. This makes |
| 450 | it safe(r) to use utilities like tune2fs on a mounted |
| 451 | filesystem. |
| 452 | |
| 453 | * freefs.c (ext2fs_free): Free the original superblock if it is |
| 454 | available. |
| 455 | |
| 456 | * openfs.c (ext2fs_open): Store a copy of the original superblock |
| 457 | when opening it. |
| 458 | |
| 459 | * ext2fs.h: Add a field to store the original superblock in the |
| 460 | ext2 context structure. |
| 461 | |
Theodore Ts'o | 4381966 | 2000-10-25 02:06:09 +0000 | [diff] [blame] | 462 | 2000-10-24 <tytso@snap.thunk.org> |
| 463 | |
| 464 | * llseek.c: Add #ifdef's for IA64 (it's a 64-bit platform, so we |
| 465 | don't need to use llseek). |
| 466 | |
Theodore Ts'o | d3cd93c | 2000-10-24 18:33:16 +0000 | [diff] [blame] | 467 | 2000-10-24 <tytso@valinux.com> |
| 468 | |
| 469 | * Makefile.in, ext2fs.h, jfs_dat.h, mkjournal.c: Add functions for |
| 470 | creating an ext3 journal on a filesystem. |
| 471 | |
| 472 | 2000-08-21 <tytso@valinux.com> |
| 473 | |
| 474 | * ext2_err.et.in (EXT2_JOURNAL_NOT_BLOCK): Add new error code. |
| 475 | |
Theodore Ts'o | adfc8c6 | 2000-10-18 19:22:24 +0000 | [diff] [blame] | 476 | 2000-08-22 <tytso@valinux.com> |
| 477 | |
| 478 | * unix_io.c: Make massive changes to support a multiple block |
| 479 | writethrough cacheing. |
| 480 | |
| 481 | * ext2_io.h: Added flags field to the io_channel structure. |
| 482 | |
Theodore Ts'o | de23aa1 | 2000-08-19 17:00:47 +0000 | [diff] [blame] | 483 | 2000-08-19 <tytso@valinux.com> |
| 484 | |
| 485 | * finddev.c, ext2fs.h, Makefile.in: Add new file, finddev.c, which |
| 486 | provides the function ext2fs_find_block_device(). This |
| 487 | function returns the pathname to a block device, given its |
| 488 | device number. |
| 489 | |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 490 | 2000-07-13 <tytso@valinux.com> |
| 491 | |
| 492 | * Release of E2fsprogs 1.19 |
| 493 | |
Theodore Ts'o | ab14676 | 2000-07-07 04:37:35 +0000 | [diff] [blame] | 494 | 2000-07-07 Theodore Ts'o <tytso@valinux.com> |
| 495 | |
| 496 | * ext2fs.h (EXT2_LIB_FEATURE_INCOMPAT_SUPP): Add |
| 497 | EXT3_FEATURE_INCOMPAT_RECOVER (aka needs_recovery) to the |
| 498 | list of filesystem flags supported by the library. |
| 499 | |
Theodore Ts'o | 57dca85 | 2000-07-04 19:20:25 +0000 | [diff] [blame] | 500 | 2000-07-04 Theodore Ts'o <tytso@valinux.com> |
| 501 | |
Theodore Ts'o | 8f13d8c | 2000-07-04 19:41:29 +0000 | [diff] [blame] | 502 | * ext2fs.h: Update to include latest journalling additions to the |
| 503 | superblock. |
| 504 | |
Theodore Ts'o | 57dca85 | 2000-07-04 19:20:25 +0000 | [diff] [blame] | 505 | * dll/jump.funcs: Add new jumptable entries for |
| 506 | ext2fs_write_bb_FILE, ext2fs_read_bb_FILE2, and |
| 507 | ext2fs_badblocks_equal. |
| 508 | |
| 509 | * tst_badblocks.c: Update test program to test |
| 510 | ext2fs_read_bb_FILE2 and ext2fs_write_FILE. |
| 511 | |
| 512 | * write_bb_file.c (ext2fs_write_bb_FILE): New function which |
| 513 | writes out bad blocks list to a file. |
| 514 | |
| 515 | * read_bb_file.c (ext2fs_read_bb_FILE2): Add new function which |
| 516 | changes the callback function to take two additional |
| 517 | arguments; a private blind pointer supplied by the caller, |
| 518 | and pointer to a char * containing a pointer to the |
| 519 | invalid string. |
| 520 | |
| 521 | * badblocks.c (ext2fs_badblocks_equal): Add new function which |
| 522 | returns true if two badblocks list are equal. |
| 523 | |
| 524 | * Makefile.in: Remove explicit link of -lc in the shared library. |
| 525 | (It shouldn't be necessary, and is harmful in some cases). |
| 526 | |
Theodore Ts'o | abf7d38 | 2000-06-10 19:27:17 +0000 | [diff] [blame] | 527 | 2000-06-10 Theodore Ts'o <tytso@valinux.com> |
| 528 | |
| 529 | * getsize.c (main): Add debugging code under #ifdef DEBUG |
| 530 | |
Theodore Ts'o | 2e8d40d | 2000-05-27 15:15:40 +0000 | [diff] [blame] | 531 | 2000-05-27 Theodore Ts'o <tytso@valinux.com> |
| 532 | |
| 533 | * mkdir.c (ext2fs_mkdir): Read the parent directory's inode |
| 534 | earlier, so that if there's an error reading it, we can |
| 535 | more cleanly back out of the operation. |
| 536 | |
Theodore Ts'o | f0f4acb | 2000-05-25 23:22:11 +0000 | [diff] [blame] | 537 | 2000-05-25 <tytso@snap.thunk.org> |
| 538 | |
Theodore Ts'o | dc5f68c | 2000-05-25 23:31:54 +0000 | [diff] [blame] | 539 | * getsize.c (ext2fs_get_device_size): Use open64() instead of |
Theodore Ts'o | 7fd86d3 | 2000-05-25 23:42:22 +0000 | [diff] [blame] | 540 | open() if it exists. Under linux, manually define the |
| 541 | ioctl for BLKGETSIZE if it isn't already defined and it's |
| 542 | safe to do so. |
Theodore Ts'o | dc5f68c | 2000-05-25 23:31:54 +0000 | [diff] [blame] | 543 | |
| 544 | * unix_io.c (unix_open): Use open64() instead of open() if it |
| 545 | exists. |
| 546 | |
| 547 | * llseek.c: Simplify header includes of unistd.h. If lseek64 is |
| 548 | available (and prototypes are defined) use it in |
| 549 | preference to llseek. |
| 550 | |
Theodore Ts'o | f0f4acb | 2000-05-25 23:22:11 +0000 | [diff] [blame] | 551 | * Makefile: Add hack dependency rule so that parallel makes work |
| 552 | correctly. |
| 553 | |
Theodore Ts'o | fa7ef71 | 2000-05-19 02:11:41 +0000 | [diff] [blame] | 554 | 2000-05-18 Theodore Ts'o <tytso@valinux.com> |
| 555 | |
| 556 | * ext2fs.h: Add appropriate ifdef's to support C++ compilation. |
| 557 | |
Theodore Ts'o | e589f67 | 2000-04-03 13:45:40 +0000 | [diff] [blame] | 558 | 2000-04-03 Theodore Ts'o <tytso@valinux.com> |
| 559 | |
Theodore Ts'o | 06af47f | 2000-04-03 13:51:00 +0000 | [diff] [blame] | 560 | * block.c: Readibility tweak in conditionals involving |
| 561 | ctx->fs->flags. |
| 562 | |
Theodore Ts'o | e589f67 | 2000-04-03 13:45:40 +0000 | [diff] [blame] | 563 | * ext2fs.h: Use AUTOCONF SIZEOF_* macros if available to determine |
| 564 | how to define __s64 and __u64. Turn off "compression is |
| 565 | experimental" warning if the cpp macro |
| 566 | I_KNOW_THAT_COMPRESSION_IS_EXPERIMENTAL is defined. |
| 567 | |
Theodore Ts'o | 2c1a0ce | 2000-02-11 15:39:19 +0000 | [diff] [blame] | 568 | 2000-02-11 <tytso@snap.thunk.org> |
| 569 | |
Theodore Ts'o | 5a63dd2 | 2000-02-11 15:44:08 +0000 | [diff] [blame] | 570 | * ext2fs.h: Define EXT2FS_COMPRESSED_BLKADDR and HOLE_BLKADDR. |
| 571 | Conditionally include Compression as a supported type if |
| 572 | ENABLE_COMPRESSION (via --enable-compression) is turned on. |
| 573 | |
Theodore Ts'o | 2c1a0ce | 2000-02-11 15:39:19 +0000 | [diff] [blame] | 574 | * swapfs.c (ext2fs_swap_super): Swap the compression usage bitmap. |
| 575 | |
Theodore Ts'o | 28ffafb | 2000-02-08 19:14:02 +0000 | [diff] [blame] | 576 | 2000-02-08 <tytso@snap.thunk.org> |
| 577 | |
| 578 | * bitops.h (ext2fs_mark_generic_bitmap, ext2fs_unmark_generic_bitmap, |
| 579 | ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap, |
| 580 | ext2fs_mark_inode_bitmap, ext2fs_unmark_inode_bitmap): |
| 581 | Change to return the previous state of the bit that is |
| 582 | being marked or unmarked. For speed optimization. |
| 583 | |
Theodore Ts'o | 80e808f | 2000-02-02 16:19:59 +0000 | [diff] [blame] | 584 | 2000-02-02 Theodore Ts'o <tytso@valinux.com> |
| 585 | |
| 586 | * getsize.c, ismounted.c: Remove unneeded include of linux/fs.h |
| 587 | |
| 588 | * swapfs.c: Remove #ifdef HAVE_EXT2_INODE_VERSION since it's not |
| 589 | needed any more; we know it will always be i_generation. |
| 590 | Add support for swapping the high bits of the uid and gid. |
| 591 | |
Theodore Ts'o | 5c36a2f | 1999-11-19 18:42:30 +0000 | [diff] [blame] | 592 | 1999-11-19 <tytso@valinux.com> |
| 593 | |
Theodore Ts'o | dab278a | 1999-11-19 18:49:27 +0000 | [diff] [blame] | 594 | * mkdir.c (ext2fs_mkdir): Only update the parent's inode link |
| 595 | counts if the link was successful. Patch suggested by |
| 596 | jeremy@goop.org. |
| 597 | |
Theodore Ts'o | 5c36a2f | 1999-11-19 18:42:30 +0000 | [diff] [blame] | 598 | * Makefile.in (distclean): Remove TAGS and Makefile.in.old from |
| 599 | the source directory. |
| 600 | |
Theodore Ts'o | cd08636 | 1999-11-10 16:00:39 +0000 | [diff] [blame] | 601 | 1999-11-10 <tytso@valinux.com> |
| 602 | |
| 603 | * Release of E2fsprogs 1.18 |
| 604 | |
Theodore Ts'o | 9b9fe8a | 1999-11-08 22:05:04 +0000 | [diff] [blame] | 605 | 1999-11-08 <tytso@valinux.com> |
| 606 | |
| 607 | * Makefile.in (tst_badblocks): Add freefs.o to the object list, |
| 608 | since ext2fs_badblocks_list_free was moved to freefs.c. |
| 609 | |
| 610 | * tst_badblocks.c: Use the newer badblocks API names. Add |
| 611 | duplicate blocks to the test inputs to test dealing with |
| 612 | adding blocks which are already in the badblocks list. |
| 613 | |
| 614 | * badblocks.c (ext2fs_badblocks_list_add): If appending to the end |
| 615 | of the list, use a shortcut O(1) operations instead of an |
| 616 | O(n) operation. (Idea suggested by David Beattie.) |
| 617 | |
| 618 | * freefs.c (ext2fs_free): Use ext2fs_badblocks_list_free() instead |
| 619 | of badblocks_list_free(), to save a procedure call. |
| 620 | |
Theodore Ts'o | 416c93d | 1999-10-26 04:49:54 +0000 | [diff] [blame] | 621 | 1999-10-26 <tytso@valinux.com> |
| 622 | |
Theodore Ts'o | 28e1194 | 1999-10-26 18:17:20 +0000 | [diff] [blame] | 623 | * Release of E2fsprogs 1.17 |
| 624 | |
| 625 | 1999-10-26 <tytso@valinux.com> |
| 626 | |
Theodore Ts'o | 416c93d | 1999-10-26 04:49:54 +0000 | [diff] [blame] | 627 | * ext2fs.h: Add kludge to deal with the fact that egcs cpp doesn't |
| 628 | seem to handle ~0UL the same way as they used to. |
| 629 | |
Theodore Ts'o | 601002b | 1999-10-26 02:06:39 +0000 | [diff] [blame] | 630 | 1999-10-25 <tytso@valinux.com> |
| 631 | |
Theodore Ts'o | fe70fd3 | 1999-10-26 02:34:47 +0000 | [diff] [blame] | 632 | * nt_io.c (_OpenNtName): Open the device using |
| 633 | FILE_SYNCHRONOUS_IO_NONALERT instead of |
| 634 | FILE_SYNCHRONOUS_IO_ALERT |
| 635 | (nt_open): At the end of the device open routine, unlock |
| 636 | the drive but do not dismount it. |
| 637 | |
Theodore Ts'o | 601002b | 1999-10-26 02:06:39 +0000 | [diff] [blame] | 638 | * initialize.c (CREATOR_OS): Use __GNU__ instead of __gnu__ to |
| 639 | detect the Hurd OS. |
| 640 | |
Theodore Ts'o | e6198e5 | 1999-10-23 00:58:54 +0000 | [diff] [blame] | 641 | 1999-10-22 <tytso@valinux.com> |
| 642 | |
Theodore Ts'o | 614fdfd | 1999-10-23 03:19:51 +0000 | [diff] [blame] | 643 | * Release of E2fsprogs 1.16 |
| 644 | |
| 645 | 1999-10-22 <tytso@valinux.com> |
| 646 | |
Theodore Ts'o | e6198e5 | 1999-10-23 00:58:54 +0000 | [diff] [blame] | 647 | * mkdir.c (ext2fs_mkdir): Pass EXT2_FT_DIR flag to ext2fs_link(). |
| 648 | |
| 649 | * link.c (ext2fs_link): This call now uses the low three bits of |
| 650 | the flags parameter to pass the directory filetype |
| 651 | information; it will set the directory entry FILETYPE |
| 652 | information if the filesystem supports it. |
| 653 | |
| 654 | * newdir.c (ext2fs_new_dir_block): If the FILETYPE superblock |
| 655 | option is set, then create the '.' and '..' entries with |
| 656 | the filetype set to EXT2_FT_DIR. |
| 657 | |
Theodore Ts'o | aa4115a | 1999-10-21 19:33:18 +0000 | [diff] [blame] | 658 | 1999-09-24 <tytso@valinux.com> |
| 659 | |
| 660 | * nt_io.c: New file which supports I/O under Windows NT. |
| 661 | |
Theodore Ts'o | 3a5f8ea | 1999-09-14 20:21:26 +0000 | [diff] [blame] | 662 | 1999-09-07 <tytso@valinux.com> |
| 663 | |
| 664 | * ext2fs.h: Add new fields for journalling and define new |
| 665 | feature bits used by newer filesystems: IMAGIC_INODES, |
| 666 | HAS_JOURNAL, RECOVER. |
| 667 | |
| 668 | * expanddir.c (ext2fs_expand_dir, expand_dir_proc): Change where |
| 669 | we update the inode block count and size files so that the |
| 670 | block count field is updated correctly when we create an |
| 671 | indirect block. |
| 672 | |
| 673 | 1999-07-18 Theodore Ts'o <tytso@valinux.com> |
Theodore Ts'o | 657cb97 | 1999-07-30 23:19:10 +0000 | [diff] [blame] | 674 | |
| 675 | * Release of E2fsprogs 1.15 |
| 676 | |
Theodore Ts'o | e72a9ba | 1999-06-25 15:40:18 +0000 | [diff] [blame] | 677 | 1999-06-23 <tytso@valinux.com> |
| 678 | |
| 679 | * swapfs.c (ext2fs_swap_inode): Add compatibility for Linux 2.3 |
| 680 | kernels that use i_generation instead of i_version. Patch |
| 681 | supplied by Jon Bright <sircus@sircus.demon.co.uk>. |
| 682 | |
| 683 | 1999-06-21 <tytso@valinux.com> |
Theodore Ts'o | 813bbb2 | 1999-06-22 03:17:45 +0000 | [diff] [blame] | 684 | |
| 685 | * dir_iterate.c (ext2fs_process_dir_block): Check for corrupted |
| 686 | directory entry before calling the callback function. |
| 687 | This should prevent some core dumps of insufficiently |
| 688 | paranoid callback functions. |
| 689 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 690 | 1999-05-29 <tytso@rsts-11.mit.edu> |
| 691 | |
| 692 | * ext2fs.h: Add feature definition for AFS IMAGIC inodes. |
| 693 | |
| 694 | * fileio.c (ext2fs_file_open): Remove obsolete comment stating |
| 695 | that we don't handle writing yet (we do). Fixed bug where |
| 696 | we weren't allocating a big enough buffer for ext2_bmap. |
| 697 | |
Theodore Ts'o | f0687a5 | 1999-05-29 21:48:03 +0000 | [diff] [blame] | 698 | 1999-05-03 <tytso@rsts-11.mit.edu> |
| 699 | |
| 700 | * openfs.c (ext2fs_open): Check to make sure that the number of |
| 701 | blocks per group is not zero --- if so, it must be a bad |
| 702 | superblock! |
| 703 | |
Theodore Ts'o | 9e51eca | 1999-01-09 16:32:31 +0000 | [diff] [blame] | 704 | 1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 705 | |
| 706 | * Release of E2fsprogs 1.14 |
| 707 | |
Theodore Ts'o | 665f710 | 1999-01-08 13:33:39 +0000 | [diff] [blame] | 708 | 1999-01-07 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 709 | |
| 710 | * inode.c (ext2fs_read_inode, ext2fs_write_inode): Check to see if |
| 711 | the inode number is zero; if it's zero, return |
| 712 | EXT2_ET_BAD_INODE_NUM. |
| 713 | |
Theodore Ts'o | 7a46952 | 1999-01-04 08:50:59 +0000 | [diff] [blame] | 714 | 1998-12-30 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 715 | |
| 716 | * initialize.c (ext2fs_initialize): Use EXT2_FIRST_INODE instead |
| 717 | of EXT2_FIRST_INO to ensure compatibility with Linux 1.2 |
| 718 | header files. |
| 719 | |
Theodore Ts'o | 73f17cf | 1999-01-04 07:35:45 +0000 | [diff] [blame] | 720 | Mon Jan 4 02:32:09 1999 Theodore Y. Ts'o <tytso@mit.edu> |
| 721 | |
| 722 | * llseek.c (ext2fs_llseek): Change ext2fs_llseek() in the |
| 723 | non-Linux case to use EINVAL by default, unless it isn't |
| 724 | defined, in which case we use EXT2_ET_INVALID_ARGUMENT |
| 725 | instead. |
| 726 | |
Theodore Ts'o | 556ad13 | 1998-12-19 08:10:58 +0000 | [diff] [blame] | 727 | 1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 728 | |
| 729 | * Release of E2fsprogs 1.13 |
| 730 | |
Theodore Ts'o | 5a679c8 | 1998-12-03 16:40:38 +0000 | [diff] [blame] | 731 | 1998-12-03 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 732 | |
| 733 | * Makefile.in: Updated dependencies. |
| 734 | |
Theodore Ts'o | 8d7e83b | 1998-09-23 00:27:26 +0000 | [diff] [blame] | 735 | 1998-09-22 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 736 | |
| 737 | * initialize.c (ext2fs_initialize): Make sure that we allocate |
| 738 | enough inodes so that we can make a valid filesystem. |
| 739 | |
Theodore Ts'o | 2eb374c | 1998-09-03 01:22:57 +0000 | [diff] [blame] | 740 | 1998-09-02 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 741 | |
| 742 | * rw_bitmaps.c: Fixed signed/unsigned warnings. |
| 743 | |
| 744 | * fileio.c (ext2fs_file_set_size): Remove unneeded extern from the |
| 745 | function declaration. |
| 746 | |
| 747 | * dblist.c (make_dblist): Add safety check in case the dblist |
| 748 | pointer passed in is null (in which case, assign it to |
| 749 | fs->dblist). Fixed some signed/unsigned warnings. |
| 750 | |
| 751 | * bmap.c: Make addr_per_block be of type blk_t to avoid |
| 752 | signed/unsigned warnings. |
| 753 | |
| 754 | * namei.c (ext2fs_follow_link): Remove uneeded extern from the |
| 755 | function declaration. |
| 756 | |
| 757 | * get_pathname.c (get_pathname_proc): Use return value from |
| 758 | ext2fs_get_mem, instead of checking if &gp->name is |
| 759 | NULL. |
| 760 | |
| 761 | * dir_iterate.c (ext2fs_process_dir_block): |
| 762 | * dblist_dir.c (ext2fs_dblist_dir_iterate): Remove uneeded extern |
| 763 | from the function declaration. |
| 764 | |
| 765 | * block.c (ext2fs_block_iterate2): If the read_inode call fails, |
| 766 | return the error directly instead of jumping to the |
| 767 | cleanup routine, since we don't need to do any cleanup. |
| 768 | |
| 769 | * alloc_table.c (ext2fs_allocate_group_table): Make this |
| 770 | function take a dgrp_t for its group argument. |
| 771 | |
| 772 | * ext2fs.h: Make dgrp_t an __u32 type, and make |
| 773 | fs->desc_group_count be of type dgrp_t. |
| 774 | |
Theodore Ts'o | f75c28d | 1998-08-01 04:18:06 +0000 | [diff] [blame] | 775 | 1998-07-27 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 776 | |
| 777 | * badblocks.c (ext2fs_badblocks_list_add): Use a bigger increment |
| 778 | than 10 blocks when we need to expand the size of the |
| 779 | badblocks list. |
| 780 | |
Theodore Ts'o | 4a5fa19 | 1998-07-09 05:42:45 +0000 | [diff] [blame] | 781 | 1998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 782 | |
| 783 | * Release of E2fsprogs 1.12 |
| 784 | |
Theodore Ts'o | 30c4261 | 1998-06-30 05:33:11 +0000 | [diff] [blame] | 785 | 1998-06-30 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 786 | |
| 787 | * closefs.c (ext2fs_flush): Update the s_block_group_nr field as |
| 788 | appropriate for all of the block group copies, so that |
| 789 | it's clear where the beginning of the filesystem is on the |
| 790 | disk. (For when the partition table gets scrod.) |
| 791 | |
| 792 | * ext2fs.h: Change the name of the feature from |
| 793 | EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE to |
| 794 | EXT2_FEATURE_INCOMPAT_FILESIZE (to match with the kernel). |
| 795 | |
Theodore Ts'o | 818180c | 1998-06-27 05:11:14 +0000 | [diff] [blame] | 796 | 1998-06-18 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 797 | |
| 798 | * inode.c (get_next_blockgroup): Fix bug where if |
| 799 | get_next_blockgroup() is called early because of a missing |
| 800 | inode table in a block group, the current_inode counter |
| 801 | wasn't incremented correctly. |
| 802 | |
Theodore Ts'o | 4faba5b | 1998-06-16 05:23:41 +0000 | [diff] [blame] | 803 | 1998-06-16 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 804 | |
| 805 | * read_bb.c (ext2fs_read_bb_inode): Make function more robust |
| 806 | against a completely trashed bad block inode. |
| 807 | |
Theodore Ts'o | 03673db | 1998-06-10 20:39:43 +0000 | [diff] [blame] | 808 | 1998-06-10 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 809 | |
| 810 | * alloc_tables.c (ext2fs_allocate_group_table): Fix bug so that if |
| 811 | the stride length hits a bad value, we retry the block |
| 812 | allocation starting at the beginning of the block group. |
| 813 | |
| 814 | * ext2fs.h, bb_inode.c, block.c, bmove.c, dir_iterate.c, |
| 815 | expanddir.c, ext2fsP.h, read_bb.c: Change blkcnt_t to be |
| 816 | e2_blkcnt_t to avoid collision with LFS API. |
| 817 | |
Theodore Ts'o | 353952d | 1998-05-01 05:32:18 +0000 | [diff] [blame] | 818 | 1998-05-01 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 819 | |
| 820 | * initialize.c (ext2fs_initialize): Initialize s_inodes_count in a |
| 821 | way that avoids overflows on disk sizes greater than 4GB. |
| 822 | |
Theodore Ts'o | 4c77fe5 | 1998-04-30 17:35:59 +0000 | [diff] [blame] | 823 | 1998-04-28 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 824 | |
| 825 | * ext2fs.h: Define EXT2_QSORT_TYPE appropriately for the |
| 826 | return type for comparison functions for qsort. |
| 827 | |
| 828 | * dblist.c (dir_block_cmp): Use EXT2_QSORT_TYPE in function |
| 829 | declaration. |
| 830 | |
Theodore Ts'o | 76f875d | 1998-04-27 01:41:13 +0000 | [diff] [blame] | 831 | 1998-04-26 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 832 | |
| 833 | * ext2fs.h, bitops.h: Add support for the Watcom C compiler to do |
| 834 | inline functions. |
| 835 | |
| 836 | * ext2fs.h, dosio.c: Use asm/types.h instead of linux/types.h to |
| 837 | evade a potential problem with glibc's header files trying |
| 838 | to spike out linux/types.h. |
| 839 | |
| 840 | * ext2fs.h (ext2fs_resize_mem): Change the function prototype to |
| 841 | include the old size of the memory, which is needed for |
| 842 | some braindamaged memory allocation systems that don't |
| 843 | support realloc(). |
| 844 | |
| 845 | * badblocks.c (ext2fs_badblocks_list_add): |
| 846 | bb_inode.c (clear_bad_block_proc): |
| 847 | dblist.c (ext2fs_add_dir_block): |
| 848 | icount.c (insert_icount_el): |
| 849 | irel_ma.c (ima_put): |
| 850 | rs_bitmap.c (ext2fs_resize_generic_bitmap): Update functions to |
| 851 | pass the old size of the memory to be resized to |
| 852 | ext2fs_resize_mem(). |
| 853 | |
Theodore Ts'o | 469bec8 | 1998-04-01 02:46:43 +0000 | [diff] [blame] | 854 | 1998-03-30 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 855 | |
| 856 | * Makefile.in: Change to use new installation directory variables |
| 857 | convention. Fix uninstall rules to take $(DESTDIR) into |
| 858 | account. |
| 859 | |
Theodore Ts'o | 4a31c48 | 1998-03-30 01:27:25 +0000 | [diff] [blame] | 860 | 1998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 861 | |
| 862 | * ext2fs.h: If __STRICT_ANSI__ is defined and we're on a platform |
| 863 | with 32 bit longs, then we need to manually define __s64 |
| 864 | and __u64, since the current kernel header files don't |
| 865 | define these if __STRICT_ANSI__ is defined. This is a |
| 866 | problem if we are compiling with full GCC warnings, since |
| 867 | we do need 64 bit support. |
| 868 | |
| 869 | * Makefile.in (OBJS): Remove bmove.o from files to be built, |
| 870 | since we're not using ext2fs_move_blocks() and there |
| 871 | is some question as to its usefulness in its current |
| 872 | form. |
| 873 | |
| 874 | * bmap.c (block_bmap): Remove unused function. |
| 875 | |
| 876 | * bmove.c (process_block): Fix -Wall warning. |
| 877 | |
Theodore Ts'o | 36a43d6 | 1998-03-24 16:17:51 +0000 | [diff] [blame] | 878 | 1998-03-23 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 879 | |
| 880 | * block.c (ext2fs_block_iterate3): Make the ref_offset field |
| 881 | contain the offset into the inode.i_blocks array when |
| 882 | ref_block is zero. Since we haven't done a formal |
| 883 | release of e2fsprogs since block_iterate2 was first |
| 884 | introduced, I removed block_iterate2, and renamed |
| 885 | block_iterate3 to be block_iterate2. |
| 886 | |
| 887 | * bb_inode.c, bmove.c, dblist_dir.c, dir_iterate.c, |
| 888 | expanddir.c, ext2fs.h, ext2fsP.h, read_bb.c: Change |
| 889 | use of block_iterate and block_iterate2 to |
| 890 | block_iterate2 with the new prototype for the |
| 891 | interator function. (using blkcnt_t forr blockcount) |
| 892 | |
Theodore Ts'o | 674a4ee | 1998-03-23 02:06:52 +0000 | [diff] [blame] | 893 | 1998-03-21 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 894 | |
| 895 | * ext2fs.h: Add new superblock fields (s_algorithm_usage_bitmap, |
| 896 | s_prealloc_blocks, s_prealloc_dir_blocks). Added |
| 897 | conditional defines of new features COMPAT_DIR_PREALLOC, |
| 898 | RO_COMPAT_LARGE_FILE RO_COMPAT_BTREE_DIR, |
| 899 | INCOMPAT_COMPRESSION, INCOMPAT_DIRNAME_SIZE. Changed |
| 900 | the library to declare that we support COMPAT_DIR_PREALLOC, |
| 901 | INCOMPAT_DIRNAME_SIZE, RO_COMPAT_LARGE_FILE. |
| 902 | |
| 903 | * fileio.c: Rename function ext2fs_file_llseek to be |
| 904 | ext2fs_file_lseek, which is more accurate. |
| 905 | |
| 906 | * block.c: Add new function ext2fs_block_iterate3 which calls |
| 907 | the iterator function with the blockcount argument of |
| 908 | type blkcnt_t. This version of the function is |
| 909 | allowed to handle large files; the other fucntions are |
| 910 | not. |
| 911 | |
| 912 | * ext2fs.h: Add new type blkcnt_t |
| 913 | |
| 914 | * ext2_err.et.in: Add error code EXT2_ET_FILE_TOO_BIG |
| 915 | |
| 916 | * block.c (ext2fs_block_iterate2): Fix bug where the block count |
| 917 | field wasn't getting correctly incremented for sparse |
| 918 | files when the indirect or doubly-indirect block |
| 919 | specified in the inode was zero. |
| 920 | |
| 921 | Sun Mar 8 22:42:47 1998 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 922 | |
| 923 | * unlink.c (unlink_proc): |
| 924 | * lookup.c (lookup_proc): |
| 925 | * link.c (link_proc): |
| 926 | * get_pathname.c (get_pathname_proc): |
| 927 | * dir_iterate.c (ext2fs_process_dir_block): Mask off high 8 bits |
| 928 | from dirent->name_len, so it can be used for other |
| 929 | purposes. |
| 930 | |
| 931 | * ext2fs.h: Add definition of EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE, |
| 932 | and indicate that we have support for this incompatible |
| 933 | option. |
| 934 | |
Theodore Ts'o | c775256 | 1998-02-24 04:25:52 +0000 | [diff] [blame] | 935 | Mon Feb 23 08:46:33 1998 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 936 | |
| 937 | * ext2_err.et.in: Added new error code, EXT2_ET_CANCEL_REQUESTED. |
| 938 | |
Theodore Ts'o | 79b05db | 1998-02-21 05:01:19 +0000 | [diff] [blame] | 939 | Fri Feb 20 23:58:01 1998 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 940 | |
| 941 | * dblist.c (ext2fs_get_num_dirs): Improve the estimation of the |
| 942 | number of directories when the block group information is |
| 943 | unreliable. |
| 944 | |
Theodore Ts'o | c4e749a | 1998-02-20 05:33:14 +0000 | [diff] [blame] | 945 | 1998-02-20 Theodore Y. Ts'o <tytso@edt.mit.edu> |
| 946 | |
Theodore Ts'o | 218a486 | 1998-02-21 01:41:39 +0000 | [diff] [blame] | 947 | * inode.c (ext2fs_get_next_inode): Always do the check to see if the |
| 948 | inode table is missing so that we catch the case where the |
| 949 | first block group is missing. |
| 950 | |
Theodore Ts'o | c4e749a | 1998-02-20 05:33:14 +0000 | [diff] [blame] | 951 | * getsize.c, ismounted.c, unix_io.c: #include errno.h since it's |
| 952 | needed. |
| 953 | |
Theodore Ts'o | 9abd2ce | 1998-02-16 22:00:37 +0000 | [diff] [blame] | 954 | Mon Feb 16 16:16:00 1998 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 955 | |
| 956 | * ext2_io.h, ext2fs.h: Protect against being included multiple times. |
| 957 | |
| 958 | * bmove.c: #include ext2fsP.h instead of "ext2fs/ext2fs.h" |
| 959 | |
| 960 | * test_io.c (test_flush): Add a debugging printf when the flush |
| 961 | method is called. |
| 962 | |
| 963 | * rw_bitmaps.c (ext2fs_read_bitmaps): If the bitmaps are already |
| 964 | read in, return right away. |
| 965 | |
Theodore Ts'o | 5953b9d | 1998-02-01 13:23:02 +0000 | [diff] [blame] | 966 | Sun Feb 1 08:20:24 1998 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 967 | |
| 968 | * bitops.h: Don't try to do i386 inline asm functions if the |
| 969 | compiler isn't GCC. |
| 970 | |
| 971 | * ext2fs.h: If EXT2_FLAT_INCLUDES is defined, #include e2_types.h, |
| 972 | instead of linux/types.h, and e2_bitops.h instead of |
| 973 | ext2fs/bitops.h. |
| 974 | |
| 975 | * icount.c, version.c: Don't #include <et/com_err.h>, as it isn't |
| 976 | necessary. |
| 977 | |
Theodore Ts'o | b5abe6f | 1998-01-19 14:47:53 +0000 | [diff] [blame] | 978 | Sat Jan 17 13:13:31 1998 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 979 | |
| 980 | * inode.c (ext2fs_open_inode_scan): Initialize the group variables |
| 981 | so that we don't need to call get_next_blockgroup() the |
| 982 | first time around. Saves a bit of time, and prevents us |
| 983 | from needing to assign -1 to current_group (which is an |
| 984 | unsigned value). |
| 985 | |
| 986 | * icount.c (insert_icount_el): Cast the estimated number of inodes |
| 987 | from a float to an ino_t. |
| 988 | |
| 989 | * alloc.c, alloc_tables.c, badlbocks.c, bb_compat.c, bb_inode.c, |
| 990 | bitmaps.c, bitops.c, block.c, bmap.c, bmove.c, brel_ma.c, |
| 991 | check_desc.c, closefs.c, cmp_bitmaps.c, dblist.c, |
| 992 | dblist_dir.c, dir_iterate.c, dirblock.c, dupfs.c, |
| 993 | expanddir.c, ext2fs.h, fileio.c, freefs.c, |
| 994 | get_pathname.c, getsize.c, icount.c, initialize.c, |
| 995 | inline.c, inode.c, irel_ma.c, ismounted.c, link.c, |
| 996 | lookup.c, mkdir.c, namei.c, native.c, newdir.c, |
| 997 | openfs.c, read_bb.c, read_bb_file.c, rs_bitmap.c, |
| 998 | rw_bitmaps.c, swapfs.c, test_io.c, tst_badblocks.c, |
| 999 | tst_getsize.c, tst_iscan.c, unix_io.c, unlink.c, |
| 1000 | valid_blk.c, version.c: If EXT2_FLAT_INCLUDES is |
| 1001 | defined, then assume all of the |
| 1002 | ext2-specific header files are in a flat directory. |
| 1003 | |
| 1004 | * block.c, bmove.c, dirblock.c, fileio.c: Explicitly cast |
| 1005 | all assignments from void * to be compatible with C++. |
| 1006 | |
| 1007 | Tue Jan 6 11:28:15 1998 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1008 | |
| 1009 | * closefs.c (ext2fs_flush): Add a call to io_channel_flush() to |
| 1010 | make sure the contents of the disk are flushed to disk. |
| 1011 | |
| 1012 | Mon Dec 29 14:39:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1013 | |
| 1014 | * dblist.c (ext2fs_add_dir_block): Change new to be new_entry to |
| 1015 | avoid C++ namespace clash. |
| 1016 | |
| 1017 | * bitmaps.c (ext2fs_copy_bitmap): Change new to be new_map to |
| 1018 | avoid C++ namespace clash. |
| 1019 | |
| 1020 | * ext2fs.h, bb_inode.c, block.c, bmove.c, brel.h, brel_ma.c, |
| 1021 | irel.h, irel_ma.c, dblist.c, dblist_dir.c, dir_iterate.c, |
| 1022 | ext2fsP.h, expanddir.c, get_pathname.c, inode.c, link.c, |
| 1023 | unlink.c: Change private to be priv_data (to avoid C++ |
| 1024 | namespace clash) |
| 1025 | |
Theodore Ts'o | 5be8dc2 | 1997-12-01 18:24:10 +0000 | [diff] [blame] | 1026 | Fri Nov 28 09:26:31 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1027 | |
| 1028 | * dblist.c (ext2fs_get_num_dirs): Make ext2fs_get_num_dirs more |
| 1029 | paranoid about validating the directory counts from the |
| 1030 | block group information. |
| 1031 | |
| 1032 | * all files: Don't include stdlib.h anymore; include it in |
| 1033 | ext2_fs.h, since that file requires stdlib.h |
| 1034 | |
Theodore Ts'o | 89270b5 | 1997-11-24 11:44:25 +0000 | [diff] [blame] | 1035 | Thu Nov 20 16:07:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1036 | |
| 1037 | * expanddir.c (ext2fs_expand_dir): Check to make sure the block |
| 1038 | bitmap is loaded, and return an error if it is not. |
| 1039 | (expand_dir_proc): Only use ext2fs_write_dir_block when |
| 1040 | writing a directory block, not when writing out a fresh |
| 1041 | indirect block. |
| 1042 | |
Theodore Ts'o | d36d835 | 1997-11-12 03:48:07 +0000 | [diff] [blame] | 1043 | Tue Nov 11 22:46:45 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1044 | |
| 1045 | * Makefile.in, tst_getsize.c: Added new file which is used to test |
| 1046 | the ext2fs_get_device_size function. |
| 1047 | |
| 1048 | * ext2_err.et.in (EXT2_ET_UNIMPLEMENTED): Added new error code. |
| 1049 | |
Theodore Ts'o | 79a90bd | 1997-11-03 19:16:55 +0000 | [diff] [blame] | 1050 | Sun Nov 2 20:36:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1051 | |
| 1052 | * ext2fs.h: Make ext2fs_get_mem take an unsigned argument. |
| 1053 | |
| 1054 | * fileio.c (ext2fs_file_get_size, ext2fs_file_set_size, |
| 1055 | ext2fs_file_get_fs): New functions added. |
| 1056 | |
| 1057 | |
| 1058 | Fri Oct 31 12:16:52 1997 <tytso@EDT.MIT.EDU> |
| 1059 | |
| 1060 | * bitops.c (ext2fs_warn_bitmap, ext2fs_warn_bitmap2): Don't call |
| 1061 | com_err if OMIT_COM_ERR is defined. |
| 1062 | |
Theodore Ts'o | 1f0b6c1 | 1997-10-31 06:07:47 +0000 | [diff] [blame] | 1063 | Thu Oct 30 11:33:57 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1064 | |
| 1065 | * Rename new error codes to _ET_ in them for consistency. |
| 1066 | |
Theodore Ts'o | c555aeb | 1997-10-25 04:16:53 +0000 | [diff] [blame] | 1067 | Sat Oct 25 00:06:58 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1068 | |
Theodore Ts'o | 7b4e453 | 1997-10-26 03:41:24 +0000 | [diff] [blame] | 1069 | * [all files, basically]: Added definition of ext2fs_get_mem, |
| 1070 | ext2fs_free_mem, and ext2fs_resize_mem in ext2fs.h, and |
| 1071 | changed all library routines to use these wrapper functions. |
| 1072 | |
Theodore Ts'o | 78d8f90 | 1997-10-26 01:53:39 +0000 | [diff] [blame] | 1073 | * dblist.c, mkdir.c: use EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND |
| 1074 | instead of the system error messages. |
| 1075 | |
| 1076 | * ext2_err.et.in: Added new error messages EXT2_DIR_EXISTS and |
| 1077 | EXT2_DB_NOT_FOUND |
| 1078 | |
Theodore Ts'o | 30fab29 | 1997-10-25 22:37:42 +0000 | [diff] [blame] | 1079 | * ext2fs.h: Added function declarations and constants for bmap.c |
| 1080 | and fileio.c. |
| 1081 | |
| 1082 | * ext2_err.et.in: Added new error messages EXT2_FILE_RO and |
| 1083 | EXT2_ET_MAGIC_EXT2_FILE |
| 1084 | |
| 1085 | * Makefile.in: Added files bmap.c and fileio.c, and temporarily |
| 1086 | commented out brel_ma.c and irel_ma.c |
| 1087 | |
| 1088 | * bmap.c: New file which maps a file's logical block number to its |
| 1089 | physical block number. |
| 1090 | |
| 1091 | * fileio.c: New file which implements simple file reading and |
| 1092 | writing primitives. |
| 1093 | |
Theodore Ts'o | c555aeb | 1997-10-25 04:16:53 +0000 | [diff] [blame] | 1094 | * alloc.c (ext2fs_alloc_block): New function which allocates a |
Theodore Ts'o | 30fab29 | 1997-10-25 22:37:42 +0000 | [diff] [blame] | 1095 | block, zeros it, and updates the filesystem accounting |
| 1096 | records appropriately. |
Theodore Ts'o | c555aeb | 1997-10-25 04:16:53 +0000 | [diff] [blame] | 1097 | |
| 1098 | Wed Oct 22 16:47:27 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1099 | |
| 1100 | * ext2_err.et.in: Added new error codes: EXT2_NO_MEMORY, |
| 1101 | EXT2_INVALID_ARGUMENT, EXT2_BLOCK_ALLOC_FAIL, |
| 1102 | EXT2_INODE_ALLOC_FAIL, EXT2_NOT_DIRECTORY |
| 1103 | |
| 1104 | * Change various library files to use these functions instead of |
| 1105 | EINVAL, ENOENT, etc. |
| 1106 | |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 1107 | Mon Oct 20 19:32:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1108 | |
| 1109 | * llseek.c: Check HAVE_LLSEEK_PROTOTYPE to see whether or not we |
| 1110 | need to declare llseek(). |
| 1111 | |
Theodore Ts'o | 1d2ff46 | 1997-10-19 23:00:21 +0000 | [diff] [blame] | 1112 | Sun Oct 19 18:56:22 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1113 | |
Theodore Ts'o | d40259f | 1997-10-20 00:44:26 +0000 | [diff] [blame] | 1114 | * Rename io.h to be ext2_io.h (avoid namespace collisions) |
| 1115 | |
Theodore Ts'o | 1d2ff46 | 1997-10-19 23:00:21 +0000 | [diff] [blame] | 1116 | * Add #ifdef's for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H |
| 1117 | |
Theodore Ts'o | d163b09 | 1997-10-03 17:42:28 +0000 | [diff] [blame] | 1118 | Fri Oct 3 13:35:59 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1119 | |
| 1120 | * llseek.c (ext2fs_llseek): Fix type error for ext2fs_llseek() |
| 1121 | |
| 1122 | * icount.c (ext2fs_icount_validate): |
| 1123 | * bmove.c (process_block): Fix lint error in type for fprintf(). |
| 1124 | |
| 1125 | Mon Sep 15 11:45:09 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1126 | |
| 1127 | * inode.c (ext2fs_check_directory): Add support for the callback |
| 1128 | to return the error code EXT2_ET_CALLBACK_NOTHANDLED. |
| 1129 | |
Theodore Ts'o | fff876b | 1997-09-13 00:32:29 +0000 | [diff] [blame] | 1130 | Thu Sep 4 12:28:22 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1131 | |
| 1132 | * bitmaps.c (ext2fs_set_bitmap_padding): New function which sets the |
| 1133 | padding of the bitmap to be all one's. |
| 1134 | |
Theodore Ts'o | bc75f2a | 1997-09-04 00:43:10 +0000 | [diff] [blame] | 1135 | Wed Sep 3 14:27:30 1997 Theodore Y. Ts'o <tytso@edt.mit.edu> |
| 1136 | |
| 1137 | * llseek.c: Added missing semicolon to glibc fixup declaration of |
| 1138 | llseek(). |
| 1139 | |
| 1140 | * bmove.c: Add #include of errno.h |
| 1141 | |
Theodore Ts'o | e9affb7 | 1997-08-24 02:57:55 +0000 | [diff] [blame] | 1142 | Sat Aug 23 22:47:46 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1143 | |
| 1144 | * Makefile.in (ELF_SO_VERSION): Bump version to be 2.4 since we've |
| 1145 | added a new field to the io_channel (app_data). |
| 1146 | |
| 1147 | * io.h: Add a new element to the io_channel structure, app_data. |
| 1148 | |
| 1149 | * initialize.c, openfs.c: Set io->app_data to point at the |
| 1150 | filesystem handle. |
| 1151 | |
Theodore Ts'o | 1c27cac | 1997-08-14 17:20:42 +0000 | [diff] [blame] | 1152 | Thu Aug 14 08:14:17 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1153 | |
| 1154 | * io.h: Change the prototype of ext2fs_llseek() to use int's |
| 1155 | instead of unsigned int's. |
| 1156 | |
| 1157 | * llseek.c: Change to allow PIC and !HAVE_LLSEEK. Add a prototype |
| 1158 | to make life easer for GNU Libc 2. |
| 1159 | |
| 1160 | * rw_bitmaps.c: On the PowerPC, the big-endian variant of the ext2 |
| 1161 | filesystem has its bitmaps stored as 32-bit words with bit |
| 1162 | 0 as the LSB of each word. Thus a bitmap with only bit 0 |
| 1163 | set would be, as a string of bytes, 00 00 00 01 00 ... To |
| 1164 | cope with this, we byte-reverse each word of a bitmap if |
| 1165 | we have a big-endian filesystem, that is, if we are *not* |
| 1166 | byte-swapping other word-sized numbers. |
| 1167 | |
Theodore Ts'o | 3cb6c50 | 1997-08-11 20:29:22 +0000 | [diff] [blame] | 1168 | Mon Aug 11 03:30:48 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1169 | |
| 1170 | * dosio.c: New file to do DOS/BIOS disk accesses. |
| 1171 | |
| 1172 | * namei.c (open_namei): Make pathlen be of type size_t. |
| 1173 | |
| 1174 | * llseek.c: Always #include stdlib.h since it's need to define |
| 1175 | size_t. |
| 1176 | |
| 1177 | * io.h: Use errcode_t for magic numbers. |
| 1178 | |
| 1179 | * icount.c (get_icount_el): Use size_t where appropriate |
| 1180 | |
| 1181 | * dupfs.c (ext2fs_dup_handle): |
| 1182 | * dblist.c (dir_block_cmp): Use size_t where appropriate. |
| 1183 | |
| 1184 | * read_bb.c (ext2fs_read_bb_inode): |
| 1185 | * cmp_bitmaps.c (ext2fs_compare_inode_bitmap): Use blk_t, ino_t |
| 1186 | and size_t where appropriate. |
| 1187 | |
| 1188 | * closefs.c (ext2fs_flush): Use dgrp_t instead of int where |
| 1189 | appropriate. |
| 1190 | |
| 1191 | * openfs.c (ext2fs_open): |
| 1192 | * check_desc.c (ext2fs_check_desc): Use blk_t instead of int where |
| 1193 | appropriate. |
| 1194 | |
| 1195 | * rw_bitmaps.c (read_bitmaps): |
| 1196 | * irel_ma.c: |
| 1197 | * inode.c (ext2fs_write_inode): |
| 1198 | * initialize.c (ext2fs_initialize): |
| 1199 | * brel_ma.c: Fix to make be 16-bit safe. |
| 1200 | |
| 1201 | * link.c (ext2fs_link): |
| 1202 | * unlink.c (ext2fs_unlink): |
| 1203 | * lookup.c (lookup_proc): |
| 1204 | * ismounted.c (ext2fs_check_if_mounted): |
| 1205 | * block.c (xlate_func): Add #pragma argsused for Turbo C. |
| 1206 | |
Theodore Ts'o | 4cbe8af | 1997-08-10 23:07:40 +0000 | [diff] [blame] | 1207 | Sun Aug 10 10:05:22 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1208 | |
| 1209 | * block.c (ext2fs_block_iterate2): Use retval which is a errcode_t |
| 1210 | type. |
| 1211 | |
| 1212 | * bitmaps.c (make_bitmap): Use size_t instead of int where |
| 1213 | appropriate. |
| 1214 | |
| 1215 | * bb_inode.c (set_bad_block_proc): Add #pragma argsused for Turbo C. |
| 1216 | |
| 1217 | * alloc.c (ext2fs_new_inode): Use ino_t instead of int for the |
| 1218 | group number. |
| 1219 | |
| 1220 | * get_pathname.c: Use ino_t instead of int where appropriate. |
| 1221 | |
| 1222 | * ext2fs.h: Make the magic structure element be errcode_t instead |
| 1223 | of int. |
| 1224 | |
| 1225 | * alloc.c alloc_tables.c badblocks.c bb_compat.c bb_inode.c |
| 1226 | bitmaps.c block.c bmove.c brel_ma.c check_desc.c closefs.c |
| 1227 | cmp_bitmaps.c dblist.c dblist_dir.c dir_iterate.c |
| 1228 | dirblock.c dupfs.c expanddir.c freefs.c get_pathname.c |
| 1229 | icount.c initialize.c inline.c inode.c irel_ma.c link.c |
| 1230 | llseek.c lookup.c mkdir.c namei.c newdir.c read_bb.c |
| 1231 | read_bb_file.c rs_bitmap.c rw_bitmaps.c swapfs.c |
| 1232 | test_io.c tst_badblocks.c tst_iscan.c unix_io.c unlink.c |
| 1233 | valid_blk.c version.c: Add an #ifdef for HAVE_UNISTD_H |
| 1234 | |
Theodore Ts'o | 024996c | 1997-06-17 05:38:35 +0000 | [diff] [blame] | 1235 | Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1236 | |
Theodore Ts'o | a1230b1 | 1997-07-02 02:41:59 +0000 | [diff] [blame] | 1237 | * unix_io.c (unix_read_blk): If ext2fs_llseek() fails, but errno |
| 1238 | is zero, then return EXT2_IO_LLSEEK_FAILED. |
| 1239 | |
| 1240 | * ext2_err.et.in: Add a new error code, EXT2_IO_LLSEEK_FAILED. |
| 1241 | |
Theodore Ts'o | 024996c | 1997-06-17 05:38:35 +0000 | [diff] [blame] | 1242 | * Release of E2fsprogs 1.11 |
| 1243 | |
Theodore Ts'o | 549860c | 1997-06-17 03:55:00 +0000 | [diff] [blame] | 1244 | Mon Jun 16 23:53:06 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1245 | |
| 1246 | * dblist.c (ext2fs_dblist_count): Added new function which returns |
| 1247 | the number of directory blocks in dblist. |
| 1248 | |
Theodore Ts'o | 36f2143 | 1997-06-14 07:25:40 +0000 | [diff] [blame] | 1249 | Sat Jun 14 01:39:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1250 | |
| 1251 | * unix_io.c (unix_flush): Make the io_channel flush function do a |
| 1252 | fsync to flush the kernel buffers to disk. |
| 1253 | |
Theodore Ts'o | 9941fb7 | 1997-06-11 22:27:41 +0000 | [diff] [blame] | 1254 | Wed Jun 11 18:25:31 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1255 | |
| 1256 | * inode.c (ext2fs_inode_scan_goto_blockgroup): Fix bug; the |
| 1257 | current inode number wasn't being set by the |
| 1258 | goto_blockgroup function. |
| 1259 | |
Theodore Ts'o | 1e1da29 | 1997-06-09 14:51:29 +0000 | [diff] [blame] | 1260 | Mon Jun 9 10:45:48 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1261 | |
| 1262 | * bmove.c (ext2fs_move_blocks): New function which takes a bitmap |
| 1263 | of blocks which need to be moved, and moves those blocks |
| 1264 | to another location in the filesystem. |
| 1265 | |
| 1266 | * rs_bitmap.c (ext2fs_resize_generic_bitmap): When expanding a |
| 1267 | bitmap, make sure all of the new parts of the bitmap are |
| 1268 | zero. |
| 1269 | |
| 1270 | Sun Jun 8 16:24:39 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1271 | |
| 1272 | * bitmaps.c (ext2fs_copy_bitmap): Fix bug; the destination bitmap |
| 1273 | wasn't being returned to the caller. |
| 1274 | |
| 1275 | * alloc_tables.c (ext2fs_allocate_group_table): Add new function |
| 1276 | ext2fs_allocate_group_table() which sets the group tables |
| 1277 | for a particular block group. The relevant code was |
| 1278 | factored out of ext2fs_allocate_tables(). |
| 1279 | |
| 1280 | * dblist.c (make_dblist): Adjust the initial size of the directory |
Theodore Ts'o | 024996c | 1997-06-17 05:38:35 +0000 | [diff] [blame] | 1281 | block list to be a bit more realistic (ten plus twice the |
Theodore Ts'o | 1e1da29 | 1997-06-09 14:51:29 +0000 | [diff] [blame] | 1282 | number of directories in the filesystem). |
| 1283 | |
Theodore Ts'o | f635d7f | 1997-05-09 02:50:16 +0000 | [diff] [blame] | 1284 | Thu May 8 22:19:09 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1285 | |
| 1286 | * badblocks.c (ext2fs_badblocks_list_test): Fix bug where |
| 1287 | ext2fs_badblocks_list_test would test the list (and exceed |
| 1288 | array boundaries) if there were no bad blocks on the bad |
| 1289 | blocks list. (Showed up when user tried: mke2fs -c -b 4096). |
| 1290 | |
Theodore Ts'o | a29f4d3 | 1997-04-29 21:26:48 +0000 | [diff] [blame] | 1291 | Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu> |
| 1292 | |
| 1293 | * Release of E2fsprogs version 1.10 |
| 1294 | |
| 1295 | Thu Apr 24 10:13:42 1997 Theodre Ts'o <tytso@localhost.mit.edu> |
| 1296 | |
| 1297 | * alloc_tables.c (ext2fs_allocate_tables): Correctly place the |
| 1298 | inode and block bitmaps based on the RAID 0 stride |
| 1299 | parameter (which is passed by mke2fs). |
| 1300 | |
| 1301 | * ext2fs.h: Add "stride" parameter to ext2_filsys, to be used by |
| 1302 | mke2fs to communicate the stride length to |
| 1303 | ext2fs_allocate_tables() |
| 1304 | |
| 1305 | Wed Apr 23 21:50:42 1997 Theodre Ts'o <tytso@localhost.mit.edu> |
| 1306 | |
| 1307 | * initialize.c (ext2fs_initialize): Fix to compile under Linux 1.2 |
| 1308 | systems. (We can't assume that the new filesystem types |
| 1309 | are supported.) |
| 1310 | |
| 1311 | Wed Apr 23 18:40:53 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1312 | |
| 1313 | * alloc_tables.c (ext2fs_allocate_tables): Make sure that we |
| 1314 | allocate the inode and block bitmaps inside block group at |
| 1315 | all times. |
| 1316 | |
| 1317 | Mon Apr 21 00:06:28 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1318 | |
| 1319 | * alloc.c (ext2fs_new_block): Fix bug where if goal==0 and the |
| 1320 | filesystem has no free blocks, ext2fs_new_block would loop |
| 1321 | forever. |
| 1322 | |
| 1323 | * dupfs.c (ext2fs_dup_handle): Duplicate an ext2 filesystem handle |
| 1324 | |
| 1325 | * freefs.c (ext2fs_free_inode_cache): Decrement refcount and only |
| 1326 | free if refcount goes to zero. |
| 1327 | |
| 1328 | * inode.c (create_icache): Initialize refcount to 1. |
| 1329 | |
| 1330 | * ext2fsP.h: Added refcount to ext2_inode_cache |
| 1331 | |
| 1332 | * dblist.c (ext2fs_copy_dblist): New function to copy a directory |
| 1333 | block list. |
| 1334 | |
| 1335 | * badblocks.c (ext2fs_badblocks_copy): New function to copy a |
| 1336 | badblocks structure. |
| 1337 | |
| 1338 | Sun Apr 20 23:19:51 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1339 | |
| 1340 | * bitmaps.c (ext2fs_copy_bitmap): New function to copy a bitmap. |
| 1341 | |
| 1342 | * unix_io.c, test_io.c (unix_open, test_open): Initialize the |
| 1343 | refcount to 1. |
| 1344 | (unix_close, test_close): Decrement the refcount and only |
| 1345 | close the io_channel if the refcount goes to 0. |
| 1346 | |
| 1347 | * io.h: Add refcount to the io_channel structure. Add new macro |
| 1348 | interface io_channel_bumpcount() to bump the refcount. |
| 1349 | |
| 1350 | Thu Apr 17 20:25:03 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1351 | |
| 1352 | * inode.c (ext2fs_read_inode, ext2fs_write_inode): Use the inode |
| 1353 | cache in the filesystem handle, instead of the inode cache |
| 1354 | in a static variable. |
| 1355 | |
| 1356 | * freefs.c: Added static function to free the inode cache (called by |
| 1357 | ext2fs_free). |
| 1358 | |
| 1359 | * ext2fsP.h: Added definition of the ext2_inode_cache structures. |
| 1360 | |
| 1361 | * ext2fs.h: Added pointer to the inode_cache structure. |
| 1362 | |
| 1363 | * block.c (block_iterate_ind, block_iterate_dind, |
| 1364 | block_iterate_tind): If there are holes in the indirect, |
| 1365 | doubly indirect, or triply indirect blocks, increment the |
| 1366 | block count field automatically. |
| 1367 | |
| 1368 | Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1369 | |
| 1370 | * Release of E2fsprogs version 1.09 |
| 1371 | |
Theodore Ts'o | 2ecc6fe | 1997-04-29 17:57:00 +0000 | [diff] [blame] | 1372 | Mon Apr 14 20:38:56 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1373 | |
| 1374 | * version.c (ext2fs_parse_version_string): Check the passed in |
| 1375 | version string (instead of the hard-coded one). |
| 1376 | |
| 1377 | * alloc_tables.c (ext2fs_allocate_tables): If the last block is |
| 1378 | greater filesystem size, clamp it to prevent allocating a |
| 1379 | block or inode bitmap beyond the filesystem. |
| 1380 | |
| 1381 | * initialize.c (ext2fs_initialize): Fix bug where the metatdata |
| 1382 | overhead calculation was accidentally removed. |
| 1383 | |
| 1384 | Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1385 | |
| 1386 | * Release of E2fsprogs version 1.08 |
| 1387 | |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame] | 1388 | Thu Apr 10 13:15:15 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1389 | |
| 1390 | * dblist.c (ext2fs_set_dir_block): New function which sets the |
| 1391 | block of a dblist entry, given the directory inode and |
| 1392 | blockcnt. |
| 1393 | |
| 1394 | Sat Apr 5 12:42:42 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1395 | |
| 1396 | * alloc_tables.c (ext2fs_allocate_tables): Allocate the bitmap and |
| 1397 | inode bitmaps at staggered locations across the block |
| 1398 | groups, to avoid concentrating the bitmaps on a small |
| 1399 | number of disks when using striped RAID arrays. |
| 1400 | |
| 1401 | * initialize.c (ext2fs_initialize): By default, choose the maximum |
| 1402 | possible number of blocks per group (based on the size of |
| 1403 | the bitmaps in the blocksize). |
| 1404 | |
| 1405 | Fri Apr 4 11:28:16 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1406 | |
| 1407 | * initialize.c (ext2fs_initialize): Add support for |
| 1408 | EXT2_COMPAT_SPARSE_SUPER feature. |
| 1409 | |
| 1410 | * closefs.c (ext2fs_bg_has_super): New function to determine |
| 1411 | whether or a particular block group should have a |
| 1412 | superblock and block group descriptor. Used for the |
| 1413 | EXT2_COMPAT_SPARSE_SUPER feature is turned on. |
| 1414 | (ext2fs_flush): Check ext2fs_bg_has_super to see whether |
| 1415 | or not the superblock should be written out for the block |
| 1416 | group. |
| 1417 | |
| 1418 | * ext2fs.h (EXT2_COMPAT_SPARSE_SUPER): Define compatibility flag |
| 1419 | for sparse duplicate superblocks. |
| 1420 | |
| 1421 | * version.c (ext2fs_get_library_version): New function which |
| 1422 | returns the library version. |
| 1423 | |
| 1424 | * version.c (ext2fs_parse_version_string): New function which |
| 1425 | parses a version string and returns a version number, |
| 1426 | so application programs can compare version numbers as |
| 1427 | integers. |
| 1428 | |
| 1429 | Wed Mar 26 00:43:52 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1430 | |
| 1431 | * icount.c (ext2fs_create_icount): Change function so that it also |
| 1432 | takes a new argument which contains a "hint" icount |
| 1433 | structure. This "hint" icount allows the create function |
| 1434 | to set up the sorted list in advance. This reduces |
| 1435 | significantly the amount of data moving needed to insert |
| 1436 | these inodes into the list later. |
| 1437 | |
| 1438 | * icount.c (ext2fs_icount_validate): New function which validates |
| 1439 | that the icount structure's rep invariant. |
| 1440 | |
| 1441 | * icount.c (get_icount_el): Completely revamped implementation |
| 1442 | to subsume put_icount_el(). Put_icount_el() used to |
| 1443 | use an O(N) implementation to insert in the middle |
| 1444 | of the icount list. It now uses a O(ln N) to search |
| 1445 | for where the icount should be inserted, and then uses |
| 1446 | a memcpy to move the list down (instead of a for loop). |
| 1447 | |
| 1448 | * icount.c (ext2fs_icount_fetch, ext2fs_icount_store, |
| 1449 | ext2fs_icount_increment, ext2fs_icount_decrement): Check |
| 1450 | to see if the inode is within bounds; if it isn't, return |
| 1451 | EINVAL. |
| 1452 | |
| 1453 | * bitops.h (ext2fs_test_generic_bitmap): Fix error message given |
| 1454 | when a bad inode number is passed to test_generic_bitmap |
| 1455 | to be EXT2FS_TEST_ERROR instead of the wrong |
| 1456 | EXT2FS_UNMARK_ERROR. |
| 1457 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1458 | Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu> |
| 1459 | |
| 1460 | * Release of E2fsprogs version 1.07 |
| 1461 | |
| 1462 | Sun Mar 2 16:46:18 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1463 | |
| 1464 | * Makefile.in (ELF_VERSION): Change version to be 2.2 |
| 1465 | |
| 1466 | Tue Feb 11 14:54:02 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1467 | |
| 1468 | * alloc.c (ext2fs_get_free_blocks): Change routine to use |
| 1469 | ext2fs_fast_test_block_bitmap_range(). |
| 1470 | |
| 1471 | * bitops.h (ext2fs_fast_test_block_bitmap_range, |
| 1472 | ext2fs_test_block_bitmap_range: New inline functions which |
| 1473 | test to see whether a contiguous range of blocks is |
| 1474 | available. |
| 1475 | |
| 1476 | Thu Feb 6 10:00:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1477 | |
| 1478 | * badblocks.c (ext2fs_badblocks_list_create): Rename sybmols to use |
| 1479 | use ext2fs_badblocks_* instead of badblocks_* |
| 1480 | |
| 1481 | * bb_compat.c: New file which translates between old badblocks_*() |
| 1482 | names to ext2fs_badblocks_*() |
| 1483 | |
| 1484 | * unlink.c (ext2fs_unlink): New file, moved ext2fs_unlink() from |
| 1485 | link.c (since e2fsck doesn't use ext2fs_unlink()). |
| 1486 | |
| 1487 | * rs_bitmap.c (ext2fs_resize_generic_bitmap): New file, contains |
| 1488 | bitmap resizing routine moved from bitmaps.c, since e2fsck |
| 1489 | doesn't need to use this function. |
| 1490 | |
| 1491 | * lookup.c (ext2fs_lookup): Moved ext2fs_lookup to its own file, |
| 1492 | since e2fsck only needs ext2fs_lookup. |
| 1493 | |
| 1494 | Mon Feb 3 10:11:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1495 | |
| 1496 | * inode.c (ext2fs_open_inode_scan): Set fs->badblocks if it is not |
| 1497 | already set; this is needed so that programs like dump |
| 1498 | which use the inode scan functions will deal with |
| 1499 | filesystems that have bad blocks in the inode table. |
| 1500 | |
| 1501 | Sun Feb 2 00:17:36 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1502 | |
| 1503 | * ext2fs.h (struct_badblocks_list, struct_badblocks_iterate): |
| 1504 | Moved to ext2fsP.h, since it doesn't need to be part of |
| 1505 | the public interface. |
| 1506 | |
| 1507 | * dir_iterate.c: Move ext2_dir_iterate out of namei.c. |
| 1508 | |
| 1509 | Sat Feb 1 10:14:55 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1510 | |
| 1511 | * dblist.c (ext2fs_get_num_dirs): New file, which implements a |
| 1512 | directory block list abstraction. (Code moved from |
| 1513 | e2fsck). |
| 1514 | |
| 1515 | * ext2fs.h, inode.c: Moved definition of ext2_struct_inode_scan to |
| 1516 | to inode.c (since no one else should be peeking inside it!) |
| 1517 | |
| 1518 | * valid_blk.c (ext2_inode_has_valid_blocks): New function. |
| 1519 | |
| 1520 | * openfs.c (ext2fs_open): Check the feature set in the ext2 |
| 1521 | superblock, and refuse to open filesystems if they contain |
| 1522 | incompatible features. (Can be overriden with the |
| 1523 | EXT2_FLAG_FORCE |
| 1524 | |
| 1525 | Sun Jan 12 11:31:46 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1526 | |
| 1527 | * block.c (ext2fs_block_iterate2): Added new function |
| 1528 | ext2fs_block_iterate2 which changes the function |
| 1529 | signature of the callback function to include the |
| 1530 | referencing block and offset. |
| 1531 | |
| 1532 | * inode.c (ext2fs_inode_scan_goto_blockgroup): Added new function |
| 1533 | ext2fs_inode_scan_goto_blockgroup which allows an |
| 1534 | application to jump to a particular block group while |
| 1535 | doing an inode scan. |
| 1536 | |
| 1537 | Wed Jan 1 23:50:12 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1538 | |
| 1539 | * dirblock.c: Include string.h, since we use memcpy(). |
| 1540 | |
| 1541 | Tue Dec 3 12:27:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1542 | |
| 1543 | * getsize.c (ext2fs_get_device_size): The ioctl BLKGETSIZE returns |
| 1544 | a long not an int; this doesn't matter on i386 machines, |
| 1545 | but it does on Alpha's. |
| 1546 | |
| 1547 | Fri Nov 29 20:57:37 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1548 | |
| 1549 | * inode.c (ext2fs_write_inode, ext2fs_read_inode): If the inode |
| 1550 | table pointer is NULL, then return an error indicating |
| 1551 | that the inode table is missing. |
| 1552 | (get_next_blockgroup, get_next_blocks, |
| 1553 | ext2fs_get_next_inode): Don't treat a missing inode table |
| 1554 | as permanent error. Return MISSING_INODE_TABLE, but as an |
| 1555 | advisory error code, much like BAD_BLOCK_IN_INODE_TABLE. |
| 1556 | |
| 1557 | * rw_bitmaps.c (ext2fs_write_block_bitmap, |
| 1558 | ext2fs_write_inode_bitmap): If the inode or block bitmap |
| 1559 | block is zero, then don't write out the inode or block |
| 1560 | bitmap. The idea here is to avoid stomping on the |
| 1561 | superblock. |
| 1562 | (read_bitmaps): If the inode or block bitmap block is |
| 1563 | zero, then fill in that portion of the inode or block |
| 1564 | bitmap with all zeros. |
| 1565 | |
| 1566 | * inode.c (ext2fs_get_next_inode): Fix bug in handling of bad |
| 1567 | blocks in inode table when the inode table size is |
| 1568 | non-standard (and can therefore span blocks). |
| 1569 | |
| 1570 | Tue Oct 29 20:13:14 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1571 | |
| 1572 | * alloc.c (ext2fs_new_block): Fix fencepost error in |
| 1573 | ext2fs_new_block; make sure we don't try to allocate the |
| 1574 | first block beyond the end of the filesystem. |
| 1575 | |
| 1576 | Mon Oct 14 11:00:48 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1577 | |
| 1578 | * inode.c (check_for_inode_bad_blocks): New function called by |
| 1579 | get_next_blocks() to avoid reading in bad blocks marked in |
| 1580 | fs->badblocks. Inodes located in bad blocks are returned |
| 1581 | by ext2fs_get_next_inode() returns the error code |
| 1582 | EXT2_ET_BAD_BLOCK_IN_INODE_TABLE. |
| 1583 | |
| 1584 | * alloc_tables.c (ext2fs_allocate_tables): New function which |
| 1585 | performs the part of mke2fs's job of allocating the |
| 1586 | filesystem tables. |
| 1587 | |
| 1588 | * test_io.c (test_close): IO manager which is used for testing |
| 1589 | purposes. |
| 1590 | |
| 1591 | Sun Oct 13 04:31:57 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1592 | |
| 1593 | * inode.c (ext2fs_get_next_inode): Separate out the function of |
| 1594 | setting up for a new block group to get_next_blockgroup(). |
| 1595 | Separate out the function of reading in blocks of the |
| 1596 | inode table to get_next_blocks(). |
| 1597 | |
| 1598 | * ext2fs.h: Add the badblocks list to the ext2_filsys entry |
| 1599 | |
| 1600 | * badblocks.c (badblocks_list_add, badblocks_list_test): Add |
| 1601 | blocks to the badblock list in sorted order. This allows |
| 1602 | badblocks_list_test to be coded using a binary search for |
| 1603 | speed. |
| 1604 | |
| 1605 | Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1606 | |
| 1607 | * Release of E2fsprogs version 1.06 |
| 1608 | |
Theodore Ts'o | 5c57647 | 1997-04-29 15:29:49 +0000 | [diff] [blame] | 1609 | Mon Oct 7 00:44:17 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1610 | |
| 1611 | * ext2fs.h, block.c, closefs.c, dirblock.c, inode.c, native.c, |
| 1612 | open.c: Change EXT2_SWAP to EXT2_FLAG_SWAP for |
| 1613 | consistency's sake. |
| 1614 | |
| 1615 | * closefs.c (ext2fs_flush): If the flag EXT2_MASTER_SB_ONLY is |
| 1616 | set, then only write out the master superblock. |
| 1617 | |
| 1618 | Sun Oct 6 21:45:26 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1619 | |
| 1620 | * block.c (ext2fs_block_iterate): Fixed bug which caused |
| 1621 | block_iterate to fail to handle HURD created filesystems; |
| 1622 | it tested the inode translator field before the inode was |
| 1623 | loaded. |
| 1624 | |
| 1625 | Tue Sep 17 14:08:24 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1626 | |
| 1627 | * initialize.c (ext2fs_initialize): Make sure the description for |
| 1628 | the inode bitmap is set correctly. |
| 1629 | |
| 1630 | * bitmaps.c (ext2fs_allocate_generic_bitmap): Fix minor type typo. |
| 1631 | |
| 1632 | Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1633 | |
| 1634 | * Release of E2fsprogs version 1.05 |
| 1635 | |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 1636 | Sat Sep 7 07:36:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1637 | |
| 1638 | * initialize.c: Override the kernel's idea of default |
| 1639 | checkinterval from 0 (never) to 180 days. |
| 1640 | |
| 1641 | Wed Aug 28 03:20:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1642 | |
| 1643 | * namei.c (ext2fs_namei_follow): New function which follows |
| 1644 | symbolic link (if any) at the target. |
| 1645 | |
| 1646 | Tue Aug 27 01:48:43 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1647 | |
| 1648 | * inode.c (ext2fs_read_inode, ext2fs_write_inode): Add support |
| 1649 | for shortcut function fs->read_inode() and fs->write_inode(). |
| 1650 | Added inode_cache to reduce CPU time spent in doing |
| 1651 | byte swapping. |
| 1652 | |
| 1653 | * swapfs.c (ext2fs_swap_super): Swap the new fields in a V2 |
| 1654 | superblock. |
| 1655 | |
| 1656 | * namei.c (ext2fs_follow_link): New function. |
| 1657 | (ext2fs_namei): Extended to have support for chasing |
| 1658 | symbolic links. ext2fs_namei() still returns an inode |
| 1659 | which is a symbolic link. Symbolic links are only chased |
| 1660 | while resolving the containing directory. To chase |
| 1661 | symbolic links of the final result, use |
| 1662 | ext2fs_follow_link(). |
| 1663 | |
| 1664 | Mon Aug 26 23:46:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1665 | |
| 1666 | * ext2_err.et.in: Added new error code EXT2_ET_SYMLINK_LOOP. |
| 1667 | |
| 1668 | * bitops.h (ext2fs_set_bit, ext2fs_celar_bit): Use asm inlines |
| 1669 | provided by Pete A. Zaitcev (zaitcev@lab.sun.mcst.ru). |
| 1670 | |
| 1671 | Thu Aug 22 00:40:18 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1672 | |
| 1673 | * initialize.c (ext2fs_initialize): On systems where the byte |
| 1674 | order is not i386 compatible, set the swap_byte flag. |
| 1675 | |
| 1676 | * inode.c (inocpy_with_swap): Check to see if inode contains a |
| 1677 | fast symlink before swapping the inode block fields. This |
| 1678 | required adding a new argument to inocpy_with_swap to |
| 1679 | determine whether the mode field is in host order or not. |
| 1680 | |
| 1681 | Wed Aug 21 00:45:42 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1682 | |
| 1683 | * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit): On |
| 1684 | the sparc, if EXT2_STD_BITOPS set, use the standard |
| 1685 | i386-compatible bitmask operations, instead on the |
| 1686 | non-standard native bitmask operators. |
| 1687 | |
| 1688 | Fri Aug 9 11:11:35 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1689 | |
| 1690 | * block.c (ext2fs_block_iterate): Cause block iterator to return |
| 1691 | the HURD translator block (along with everything else). |
| 1692 | If the flag BLOCK_FLAG_DATA_ONLY is passed to the block |
| 1693 | iterator, then don't return any meta data blocks |
| 1694 | (including the HURD translator). |
| 1695 | |
| 1696 | Wed Jul 17 17:13:34 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1697 | |
| 1698 | * gen_uuid.c: New file, which generates DCE-compatible UUIDs. |
| 1699 | |
| 1700 | * uuid.c: New file, containing UUID utility functions. |
| 1701 | |
| 1702 | Tue Jul 16 10:19:16 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1703 | |
| 1704 | * ext2fs.h: Add a definition of the "real" ext2 superblock. |
| 1705 | |
| 1706 | Fri May 24 14:54:55 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1707 | |
| 1708 | * ext2fs.h: Fix erroneous ino_t type used in block_bitmap type. |
| 1709 | |
| 1710 | Sun May 19 15:39:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1711 | |
| 1712 | * openfs.c (ext2fs_open): If the blocksize in the superblock is |
| 1713 | zero, return the error EXT2_ET_CORRUPT_SUPERBLOCK, since |
| 1714 | that's a basic value that must be correct for the rest of |
| 1715 | the library to work. |
| 1716 | |
| 1717 | * ext2_err.et.in (EXT2_ET_CORRUPT_SUPERBLOCK): Added new error |
| 1718 | code. |
| 1719 | |
Theodore Ts'o | 62c06f7 | 1997-04-29 14:34:47 +0000 | [diff] [blame] | 1720 | Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> |
| 1721 | |
| 1722 | * Release of E2fsprogs version 1.04 |
| 1723 | |
Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 1724 | Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu> |
| 1725 | |
| 1726 | * Release of E2fsprogs version 1.03 |
| 1727 | |
| 1728 | Tue Mar 26 12:06:32 1996 <tytso@rsts-11.mit.edu> |
| 1729 | |
| 1730 | * bitops.h (ext2fs_set_bit, ext2fs_clear_bit, ext2fs_test_bit): |
| 1731 | Change the m68k bit numbering for bitmasks to match with |
| 1732 | the bit numbering used by all other ext2 implementations. |
| 1733 | |
| 1734 | Thu Mar 7 03:37:00 1996 <tytso@rsts-11.mit.edu> |
| 1735 | |
| 1736 | * inode.c (ext2fs_get_next_inode, ext2fs_close_inode_scan, |
| 1737 | ext2fs_open_inode_scan): Support dynamically-sized inodes. |
| 1738 | |
| 1739 | Wed Mar 6 12:26:29 1996 <tytso@rsts-11.mit.edu> |
| 1740 | |
| 1741 | * inode.c (ext2fs_read_inode, ext2fs_write_inode): Support |
| 1742 | dynamically-sized inodes. |
| 1743 | |
| 1744 | * openfs.c (ext2fs_open): Allow dynamic revision filesystem to be |
| 1745 | loaded. |
| 1746 | |
| 1747 | Tue Mar 5 03:49:37 1996 <tytso@rsts-11.mit.edu> |
| 1748 | |
| 1749 | * initialize.c (ext2fs_initialize): Catch an error condition where |
| 1750 | the passed in size is *really* too small. |
| 1751 | |
| 1752 | * alloc.c (ext2fs_new_inode): |
| 1753 | * ext2fs.h (EXT2_FIRST_INODE): Add support for dynamic revision to |
| 1754 | get first inode. |
| 1755 | |
| 1756 | Wed Feb 21 15:56:17 1996 <tytso@rsts-11.mit.edu> |
| 1757 | |
| 1758 | * getsize.c (ext2fs_get_device_size): Open the device read-only |
| 1759 | when trying to determine its size. |
| 1760 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1761 | Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu> |
| 1762 | |
| 1763 | * Release of E2fsprogs version 1.02 |
| 1764 | |
| 1765 | Sat Dec 9 09:57:50 1995 <tytso@rsts-11.mit.edu> |
| 1766 | |
| 1767 | * rw_bitops.c (ext2fs_write_block_bitmap): |
| 1768 | * bitops.c (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit): |
| 1769 | * bitops.h (ext2fs_test_bit, ext2fs_clear_bit, ext2fs_set_bit): |
| 1770 | Rename {test,set,clear}_bit to ext2fs_{test,set,clear}_bit, |
| 1771 | to avoid conflicts with with kernel include files. Also |
| 1772 | rename ADDR and CONST_ADDR to EXT2FS_ADDR and |
| 1773 | EXT2FS_CONST_ADDR. |
| 1774 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1775 | Thu Oct 26 12:09:16 1995 <tytso@rsts-11.mit.edu> |
| 1776 | |
| 1777 | * ext2_err.et: Updated message in EXT2_ET_BASE to say version 0.5c |
| 1778 | |
| 1779 | * swapfs.c (ext2fs_swap_super): Put an #ifdef check around |
| 1780 | s_def_resuid and s_def_resgid for backwards compatibility. |
| 1781 | |
| 1782 | Fri Oct 20 23:33:31 1995 <tytso@rsts-11.mit.edu> |
| 1783 | |
| 1784 | * bitops.h: Added #ifdef's for Sparc. |
| 1785 | |
| 1786 | Wed Sep 6 22:14:46 1995 <tytso@rsts-11.mit.edu> |
| 1787 | |
| 1788 | * getsize.c: #include <sys/ioctl.h> under Linux to pick up ioctl() |
| 1789 | declaration |
| 1790 | |
| 1791 | * closefs.c: #include <string.h> to pick up memset() declaration |
| 1792 | |
| 1793 | Mon Sep 4 21:45:29 1995 Remy Card <card@bbj> |
| 1794 | |
| 1795 | * Makefile.in: Added support for BSD shared libraries. |
| 1796 | |
| 1797 | * initialize.c (ext2fs_initialize): Correctly set the s_creator_os |
| 1798 | flag. |
| 1799 | |
| 1800 | Mon Sep 4 09:55:30 1995 <tytso@rsts-11.mit.edu> |
| 1801 | |
| 1802 | * unix_io.c (unix_open): Add a double check; if the passed in name |
| 1803 | is NULL, return EXT2_ET_BAD_DEVICE_NAME. |
| 1804 | |
| 1805 | * ext2_err.et (EXT2_ET_BAD_DEVICE_NAME): Added new error code |
| 1806 | |
| 1807 | Wed Aug 16 15:44:10 1995 <tytso@rsts-11.mit.edu> |
| 1808 | |
| 1809 | * inode.c (ext2fs_check_directory): Use LINUX_S_ISDIR instead of |
| 1810 | S_ISDIR. |
| 1811 | |
| 1812 | Tue Aug 15 13:08:36 1995 <tytso@rsts-11.mit.edu> |
| 1813 | |
| 1814 | * getsize.c (ext2fs_get_device_size): Add support for reading the |
| 1815 | partition size from a BSD disk label. |
| 1816 | |
| 1817 | Thu Aug 10 09:33:26 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu> |
| 1818 | |
| 1819 | * getsize.c (ext2fs_get_device_size): New function that determins |
| 1820 | the size of a device. Used by mke2fs and e2fsck. |
| 1821 | |
| 1822 | Sat Aug 12 03:09:54 1995 Remy Card <card@bbj> |
| 1823 | |
| 1824 | * Makefile.in (install): Install static libraries in $(ulibdir) |
| 1825 | (/usr/lib on Linux) instead of $(libdir) (/lib on Linux). |
| 1826 | |
| 1827 | Wed Aug 9 17:04:23 1995 Theodore Y. Ts'o <tytso@dcl> |
| 1828 | |
| 1829 | * bitmaps.c (ext2fs_free_inode_bitmap, ext2fs_free_block_bitmap): |
| 1830 | Move these functions to freefs.c. |
| 1831 | |
| 1832 | * closefs.c (ext2fs_flush): If swapping blocks, clear the group |
| 1833 | descriptors shadow memory to keep purify quiet. (This |
| 1834 | also has the nice benefit that the unused portion of the |
| 1835 | shadow descriptors are zeroed out.) |
| 1836 | |
| 1837 | * dirblock.c (ext2fs_write_dir_block): We need to use |
| 1838 | dirent->rec_len *before* it's byteswapped to find the |
| 1839 | location of the next directory structure! |
| 1840 | |
| 1841 | * alloc.c (ext2fs_new_inode): Fix bug which could potentially |
| 1842 | cause ext2fs_new_inode to loop infinitely if we're trying |
| 1843 | to allocate an inode in group #0 and there are no free |
| 1844 | inodes at all in the system. |
| 1845 | |
| 1846 | * closefs.c: #include <errno.h> if it exists. |
| 1847 | |
| 1848 | Sun Aug 6 13:27:50 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu> |
| 1849 | |
| 1850 | * ext2fs.h (BLOCK_FLAG_HOLE): Added new definition for |
| 1851 | BLOCK_FLAG_APPEND. Added documentation for the block |
| 1852 | interator flags. |
| 1853 | |
| 1854 | Sat Aug 5 11:44:05 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu> |
| 1855 | |
| 1856 | * Makefile.in (DLL_INSTALL_DIR, ELF_INSTALL_DIR): Set the |
| 1857 | installation directories correctly. |
| 1858 | |
| 1859 | Tue Jul 18 09:27:38 1995 <tytso@rsx-11.mit.edu> |
| 1860 | |
| 1861 | * namei.c (process_dir_block): |
| 1862 | * mkdir.c (ext2fs_mkdir): |
| 1863 | * expanddir.c (expand_dir_proc): Use ext2fs_{read,write}_dir_block |
| 1864 | to read/write the directory block. |
| 1865 | |
| 1866 | * dirblock.c (ext2fs_read_dir_block), ext2fs_write_dir_block): New |
| 1867 | file containing functions for reading and writing |
| 1868 | directory blocks (byte swapping if necesssary) |
| 1869 | |
| 1870 | * block.c (block_iterate_ind, block_iterate_dind, |
| 1871 | block_iterate_tind): Byte swap the block addresses if |
| 1872 | EXT2_SWAP_BYTES is set (and swap them back before writing |
| 1873 | them out.) |
| 1874 | |
| 1875 | * inode.c (inocpy_with_swap): New function. |
| 1876 | (ext2fs_get_next_inode, ext2fs_read_inode, ext2fs_write_inode): |
| 1877 | Call inocpy_with_swap if EXT2_SWAP_BYTES if set. |
| 1878 | |
| 1879 | * closefs.c (ext2fs_flush): If EXT2_SWAP_BYTES is set, then swap |
| 1880 | the superblock and group descriptors before writing it out. |
| 1881 | |
| 1882 | * openfs.c (ext2fs_open): If the magic number is byte-swapped, |
| 1883 | then set the EXT2_SWAP_BYTES and byte-swap the superblock |
| 1884 | and group descriptors. |
| 1885 | |
| 1886 | * swapfs.c (ext2fs_swap_super, ext2fs_swap_group_desc): New functions |
| 1887 | to desp ext2 filesystem structures. |
| 1888 | |
| 1889 | * bitops.c (set_bit, clear_bit, test_bit): Use modifications |
| 1890 | supplied by Pete A. Zaitcev so that the C language |
| 1891 | versions of these functions are more portable. They will |
| 1892 | now work on both little and big endian systems, and the |
| 1893 | assumption that 32-bit integers are used is gone. |
| 1894 | |
| 1895 | * bitops.h (ext2_swab16, ext2_swab32): Added new functions for |
| 1896 | doing byte swapping. |
| 1897 | |
| 1898 | * ext2fs.h (EXT2_SWAP_BYTES): Add new flag which indicates that |
| 1899 | byte swapping should take place. |
| 1900 | |
| 1901 | Sun Jul 16 06:21:43 1995 <tytso@rsx-11.mit.edu> |
| 1902 | |
| 1903 | * Makefile.in, cmp_bitmaps.c (ext2fs_compare_block_bitmap_end, |
| 1904 | ext2fs_compare_inode_bitmap_end): Added new file |
| 1905 | containing routines to compare bitmaps. |
| 1906 | |
| 1907 | * ext2_err.et (EXT2_ET_NEQ_BLOCK_BITMAP, EXT2_ET_NEQ_INODE_BITMAP): |
| 1908 | Added new error codes. |
| 1909 | |
| 1910 | Sat Jul 15 04:23:37 1995 <tytso@rsx-11.mit.edu> |
| 1911 | |
| 1912 | * inode.c (ext2fs_get_next_inode): Don't check scan->inode_buffer; |
| 1913 | if the magic number is correct, it will be allocated. |
| 1914 | |
| 1915 | Fri Jul 14 19:02:59 1995 <tytso@rsx-11.mit.edu> |
| 1916 | |
| 1917 | * block.c (block_iterate_ind, block_iterate_dind, |
| 1918 | block_iterate_tind): Don't recompute block_nr each loop; |
| 1919 | just increment it! Factor check of BLOCK_FLAG_APPEND out |
| 1920 | of the loop. Factor mask of BLOCK_CHANGED into changed |
| 1921 | variable out of the loop. (block_iterate_ind, in |
| 1922 | particular, gets called a lot, so every little |
| 1923 | optimization helps.) |
| 1924 | |
| 1925 | Thu Jul 13 08:02:45 1995 <tytso@rsx-11.mit.edu> |
| 1926 | |
| 1927 | * block.c (block_iterate_ind, block_iterate_dind, |
| 1928 | block_iterate_tind): Precompute limit of loop to speed up |
| 1929 | block_iterate_ind and company. |
| 1930 | |
| 1931 | * bitops.h (ext2fs_fast_mark_block_bitmap, |
| 1932 | ext2fs_fast_unmark_block_bitmap, ext2fs_fast_test_block_bitmap, |
| 1933 | ext2fs_fast_mark_inode_bitmap, ext2fs_fast_unmark_inode_bitmap, |
| 1934 | ext2fs_fast_test_inode_bitmap): Add fast version of these |
| 1935 | functions, which don't do range checking. |
| 1936 | |
| 1937 | * bitops.h (ext2fs_get_block_bitmap_start, |
| 1938 | ext2fs_get_inode_bitmap_start, ext2fs_get_block_bitmap_end, |
| 1939 | ext2fs_get_inode_bitmap_end): Add new accessor functions |
| 1940 | which return the start and end points of the bitmaps. |
| 1941 | |
| 1942 | Tue Jul 11 18:59:41 1995 <tytso@rsx-11.mit.edu> |
| 1943 | |
| 1944 | * llseek.c (ext2_llseek): If the offset is small enough, use lseek |
| 1945 | instead of llseek. The errno if the offset is too large |
| 1946 | and lseek is not supported should be EINVAL, not -EINVAL. |
| 1947 | |
| 1948 | Thu Jun 15 23:43:02 1995 Remy Card <card@bbj> |
| 1949 | |
| 1950 | * Makefile.in: Added support for ELF shared libraries. |
| 1951 | Fixed typos in the compilation rules. |
| 1952 | (distclean): Added Makefile. |
| 1953 | |
| 1954 | * llseek.c (llseek): New function, if llseek() does not exist in the |
| 1955 | C library. |
| 1956 | (ext2_llseek): Changed to call llseek(). |
| 1957 | |
| 1958 | Mon Jun 12 08:29:07 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu> |
| 1959 | |
| 1960 | * ext2fs.h: Use __u32 to define blk_t, instead of unsigned long. |
| 1961 | |
| 1962 | Sun Jun 11 15:02:54 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu> |
| 1963 | |
| 1964 | * mkdir.c (ext2fs_mkdir): Use LINUX_S_IFDIR instead of S_IFDIR. |
| 1965 | |
| 1966 | * ext2fs.h (LINUX_S_IFDIR): Define a linux specific versions of |
| 1967 | the S_*, which are normally defined in <sys/stat.h>. This |
| 1968 | allows us to compile e2fsprogs on a non-Linux system, |
| 1969 | which may have a different value for S_IFDIR. |
| 1970 | |
| 1971 | Sat Jun 10 23:47:05 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu> |
| 1972 | |
| 1973 | * bitops.c (clear_bit, set_bit): Remove calls to cli() and sti(); |
| 1974 | this is a user-mode application! |
| 1975 | |
| 1976 | Thu Jun 8 13:13:22 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu> |
| 1977 | |
| 1978 | * llseek.c: Put the include of <linux/unistd.h> inside the #ifdef |
| 1979 | __linux__ so that non-linux systems won't see it. |
| 1980 | |
| 1981 | * alloc.c: Include <errno.h> if possible. |
| 1982 | * badblocks.c: Ditto. |
| 1983 | * bb_inode.c: Ditto. |
| 1984 | * bitmaps.c: Ditto. |
| 1985 | * block.c: Ditto. |
| 1986 | * expanddir.c: Ditto. |
| 1987 | * get_pathname.c: Ditto. |
| 1988 | * initialize.c: Ditto. |
| 1989 | * inode.c: Ditto. |
| 1990 | * llseek.c: Ditto. |
| 1991 | * mkdir.c: Ditto. |
| 1992 | * namei.c: Ditto. |
| 1993 | * newdir.c: Ditto. |
| 1994 | * openfs.c: Ditto. |
| 1995 | * rw_bitmaps.c: Ditto. |
| 1996 | * unix_io.c: Ditto. |
| 1997 | |
| 1998 | * Makefile.in: Rewritten to conform to GNU coding standards and |
| 1999 | support separate compilation directories. |
| 2000 | |
| 2001 | Thu May 11 04:13:12 1995 <tytso@rsx-11.mit.edu> |
| 2002 | |
| 2003 | * initialize.c (ext2fs_initialize): Don't allow more than one |
| 2004 | bitmaps's worth of inodes in a group. |
| 2005 | |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 2006 | Sat Mar 11 14:07:11 1995 Theodore Y. Ts'o <tytso@localhost> |
| 2007 | |
| 2008 | * llseek.c (ext2_llseek): Added error checking to the llseek() |
| 2009 | compat code to protect against overflow. This only |
| 2010 | applies to 1.0 and early 1.1 kernels, which don't support |
| 2011 | the llseek() system call. |
| 2012 | |
| 2013 | Thu Nov 24 16:29:00 1994 Theodore Y. Ts'o (tytso@rt-11) |
| 2014 | |
| 2015 | * unix_io.c (unix_open): Initialize the read_error and write_error |
| 2016 | io_channel pointers to be null. |
| 2017 | |
| 2018 | * bb_inode.c (clear_bad_block_proc): If an illegal block number is |
| 2019 | found, clear it but don't try to update the filesystem |
| 2020 | accounting information, since that's hopeless anyway. |
| 2021 | |
| 2022 | * block.c (bloblock_iterate_ind, bloblock_iterate_dind, |
| 2023 | bloblock_iterate_tind): Check to see if the indirect blocks are |
| 2024 | valid before trying to read them. |
| 2025 | |
| 2026 | * ext2_err.et (EXT2_ET_BAD_IND_BLOCK, EX2_ET_BAD_DIND_BLOCK, |
| 2027 | EXT2_ET_BAD_TIND_BLOCK): Add new error codes. |
| 2028 | |
| 2029 | * bitops.h (ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap, |
| 2030 | ext2fs_test_block_bitmap, ext2fs_mark_inode_bitmap, |
| 2031 | ext2fs_unmark_inode_bitmap, ext2fs_test_inode_bitmap): If an |
| 2032 | illegal block or inode number is passed in, return instead |
| 2033 | of trying to test, set, or clear the bit. |
| 2034 | |
| 2035 | Mon Nov 7 21:32:33 1994 Remy Card <card@bbj> |
| 2036 | |
| 2037 | * Makefile: Added a dummy install target in case shared libraries |
| 2038 | are not built. |
| 2039 | |
| 2040 | Mon Oct 24 14:11:44 1994 (tytso@rsx-11) |
| 2041 | |
| 2042 | * bitmaps.c (ext2fs_allocate_block_bitmap): Fix calculation of how |
| 2043 | the real last block of the bitmap should be calculated. |
| 2044 | |
| 2045 | Wed Sep 7 10:05:36 1994 (tytso@rsx-11) |
| 2046 | |
| 2047 | * bitmaps.c (ext2fs_fudge_inode_bitmap_end, |
| 2048 | ext2fs_fudge_block_bitmap_end, ext2fs_clear_inode_bitmap, |
| 2049 | ext2fs_clear_block_bitmap, ext2fs_free_inode_bitmap, |
| 2050 | ext2fs_free_block_bitmap): Add magic number checking for |
| 2051 | the inode and block bitmaps. |
| 2052 | |
| 2053 | * bitmaps.c (ext2fs_allocate_block_bitmap): Fix to set the correct |
| 2054 | magic number for a block bitmap instead of an inode bitmap. |
| 2055 | |
| 2056 | * inode.c (ext2fs_close_inode_scan, ext2fs_get_next_inode): Add |
| 2057 | magic number checking for the inode_scan structure. |
| 2058 | |
| 2059 | * badblocks.c (badblocks_list_free, badblocks_list_add, |
| 2060 | badblocks_list_test, badblocks_list_iterate_begin, |
| 2061 | badblocks_list_iterate, badblocks_list_iterate_end): Add |
| 2062 | magic number checking for the badblocks_list and |
| 2063 | badblocks_iterate structures. |
| 2064 | |
| 2065 | * ext2_err.et (EXT2_ET_MAGIC_UNIX_IO_CHANNEL): |
| 2066 | * unix_io.c (unix_open, unix_close, unix_set_blksize, unix_read_blk, |
| 2067 | unix_write_blk, unix_flush): Add magic number checking |
| 2068 | both for io_channel structure and unix_private_data |
| 2069 | structure. |
| 2070 | |
| 2071 | * openfs.c (ext2fs_open): Add check for io_manager structure's |
| 2072 | magic number. |
| 2073 | |
| 2074 | * rw_bitmaps.c (ext2fs_write_inode_bitmap, ext2fs_write_block_bitmap, |
| 2075 | ext2fs_read_inode_bitmap, ext2fs_read_block_bitmap, |
| 2076 | ext2fs_read_bitmaps, ext2fs_write_bitmaps): |
| 2077 | * read_bb.c (ext2fs_read_bb_inode): |
| 2078 | * read_bb_file.c (ext2fs_read_bb_FILE): |
| 2079 | * newdir.c (ext2fs_new_dir_block): |
| 2080 | * namei.c (ext2fs_dir_iterate, ext2fs_lookup, ext2fs_namei): |
| 2081 | * link.c (ext2fs_link, ext2fs_unlink): |
| 2082 | * inode.c (ext2fs_open_inode_scan, ext2fs_read_inode, |
| 2083 | ext2fs_write_inode, ext2fs_get_blocks, |
| 2084 | ext2fs_check_directory): |
| 2085 | * get_pathname.c (ext2fs_get_pathname): |
| 2086 | * expanddir.c (ext2fs_expand_dir): |
| 2087 | * block.c (ext2fs_block_iterate): |
| 2088 | * bitmaps.c (ext2fs_allocate_inode_bitmap, |
| 2089 | ext2fs_allocate_block_bitmap): |
| 2090 | * bb_inode.c (ext2fs_update_bb_inode): |
| 2091 | * alloc.c (ext2fs_new_inode,ext2fs_new_block,ext2fs_get_free_blocks): |
| 2092 | * check_desc.c (ext2fs_check_desc): |
| 2093 | * closefs.c (ext2fs_close, ext2fs_flush): |
| 2094 | * freefs.c (ext2fs_free): Add check for ext2_filsys magic number. |
| 2095 | |
| 2096 | * Makefile: |
| 2097 | * ext2fs.h: |
| 2098 | * openfs.c: |
| 2099 | * check_desc.c (ext2fs_check_desc): Move ext2fs_check_desc from |
| 2100 | openfs.c into its own file. |
| 2101 | |
| 2102 | * ext2fs.h (EXT2_CHECK_MAGIC): Added macro for checking for |
| 2103 | structure magic numbers. |
| 2104 | |
| 2105 | * closefs.c (ext2fs_flush): Folded in Remy Card's changes to clear |
| 2106 | the EXT2_VALID_FS flag in the backup superblock blocks, so that if |
| 2107 | someone uses the -b option to specify the use of the backup |
| 2108 | superblock --- this usually means that the main superblock is |
| 2109 | toast. :-) |
| 2110 | |
| 2111 | * ext2fs.h: |
| 2112 | * ext2_err.et (EXT2_ET_REV_TOO_HIGH): |
| 2113 | * openfs.c (ext2fs_open): Folded in Remy Card's changes to add a |
| 2114 | revision level to the superblock. |
| 2115 | |
| 2116 | Sun Aug 21 00:50:08 1994 Theodore Y. Ts'o (tytso@rt-11) |
| 2117 | |
| 2118 | * ext2fs.h: |
| 2119 | * bitmaps.c: |
| 2120 | * bitops.c |
| 2121 | * bitops.h: |
| 2122 | * openfs.c: |
| 2123 | * initialize.c: Completely revamped the inode and block bitmap |
| 2124 | structures, so that they can be better chance of being extensible |
| 2125 | in a shared library. They are now their own type, instead of |
| 2126 | being a char *. Also, the function signatures of |
| 2127 | ext2fs_test_block_bitmap, ext2fs_mark_block_bitmap, |
| 2128 | ext2fs_unmark_block_bitmap, ext2fs_test_inode_bitmap, |
| 2129 | ext2fs_mark_inode_bitmap, and ext2fs_unmark_inode_bitmap were |
| 2130 | changed to eliminate the ext2_filsys argument, since it is no |
| 2131 | longer necessary. |
| 2132 | |
| 2133 | Wed Aug 17 21:46:44 1994 Remy Card (card@bbj) |
| 2134 | |
| 2135 | * unix_io.c (unix_read_blk and unix_write_blk): use the llseek |
| 2136 | system call if available. |
| 2137 | |
| 2138 | * llseek.c: new file. This is the stub calling the llseek system |
| 2139 | call which allows supports for 2GB+ file systems. |
| 2140 | |
| 2141 | * initialize.c (ext2fs_initialize): Ext2fs_initialize now stores |
| 2142 | the creator operating system. |
| 2143 | |
| 2144 | Wed Aug 17 10:03:24 1994 Theodore Y. Ts'o (tytso@rt-11) |
| 2145 | |
| 2146 | * initialize.c (ext2fs_initialize): Ext2fs_initialize now sets up |
| 2147 | the group descriptor statistics in addition to everything else. |
| 2148 | This relieves mke2fs of the responsibility of doing it. |
| 2149 | |
| 2150 | * bitops.c, bitops.h: Add assembly inline functions for the 68000. |
| 2151 | Added a new #define, _EXT2_HAVE_ASM_BITOPS_ to control whether or |
| 2152 | not the generic C function equivalents should be included or not. |
| 2153 | |
| 2154 | * openfs.c (ext2fs_open): If a superblock is specified, then use |
| 2155 | the backup group descriptors that go along with this superblock, |
| 2156 | instead of using the primary group descriptors. This allows |
| 2157 | e2fsck to recover filesystems where the primary group descriptors |
| 2158 | have been trashed. |
| 2159 | |
| 2160 | |