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