Theodore Ts'o | 2625803 | 2004-04-03 10:20:26 -0500 | [diff] [blame] | 1 | 2004-04-03 Theodore Ts'o <tytso@mit.edu> |
| 2 | |
| 3 | * blkid_types.h.in: Remove check for _UUID_TYPES since uuid_types.h |
| 4 | is no longer used. |
| 5 | |
Theodore Ts'o | 1cdb6f7 | 2004-03-21 20:16:19 -0500 | [diff] [blame] | 6 | 2004-03-21 Theodore Ts'o <tytso@mit.edu> |
| 7 | |
| 8 | * getsize.c (blkid_get_dev_size): Don't close the file descriptor |
| 9 | when determining the size. This bug was introduced in the |
| 10 | previous getsize changes, and was screwing up the blkid |
| 11 | library probe functions. (Addresses Debian Bug #239191) |
| 12 | |
Theodore Ts'o | 2c5cfbc | 2004-03-08 14:12:09 -0500 | [diff] [blame] | 13 | 2004-03-08 Theodore Ts'o <tytso@mit.edu> |
| 14 | |
| 15 | * getsize.c (blkid_get_dev_size): Only use the BLKGETSIZE64 ioctl |
| 16 | on Linux 2.6 since it is unreliable in Linux 2.4.. |
| 17 | (Addresses Debian Bug #236528) Fix typo in the ioctl used |
| 18 | for Mac OS X. |
| 19 | |
Theodore Ts'o | 9387c28 | 2004-03-04 19:59:58 -0500 | [diff] [blame] | 20 | 2004-03-04 Theodore Ts'o <tytso@mit.edu> |
| 21 | |
| 22 | * probe.c (probe_ocfs), probe.h: Add support for the Oracle |
| 23 | Cluster Filesystem (ocfs). Patches courtesy of Rusty |
| 24 | Lynch (rusty@linux.co.intel.com). |
| 25 | |
Theodore Ts'o | 85b8700 | 2004-03-02 10:11:11 -0500 | [diff] [blame] | 26 | 2004-03-02 Theodore Ts'o <tytso@mit.edu> |
| 27 | |
| 28 | * getsize.c (blkid_get_dev_size): Update getsize functions to use |
| 29 | Apple Darwin and Linux 64-bit ioctl's |
| 30 | |
Theodore Ts'o | 434661f | 2004-02-29 22:46:49 -0500 | [diff] [blame] | 31 | 2004-02-29 Brian Bergstrand <brian@bergstrand.org> |
| 32 | |
| 33 | * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use |
| 34 | -fpic or -fPIC |
| 35 | |
Theodore Ts'o | b70b116 | 2004-02-28 10:52:35 -0500 | [diff] [blame] | 36 | 2004-02-28 Theodore Ts'o <tytso@mit.edu> |
| 37 | |
| 38 | * Release of E2fsprogs 1.35 |
| 39 | |
Theodore Ts'o | 5443492 | 2003-12-07 01:28:50 -0500 | [diff] [blame] | 40 | 2003-12-07 Theodore Ts'o <tytso@mit.edu> |
| 41 | |
| 42 | * probe.c, read.c, blkidP.h: Fix gcc -Wall nitpicks. |
| 43 | |
Theodore Ts'o | 9c7ec17 | 2003-07-26 01:03:34 -0400 | [diff] [blame] | 44 | 2003-07-25 Theodore Ts'o <tytso@mit.edu> |
| 45 | |
| 46 | * Release of E2fsprogs 1.34 |
| 47 | |
Theodore Ts'o | 3de5bf6 | 2003-07-22 01:06:36 -0400 | [diff] [blame] | 48 | 2003-07-22 Theodore Ts'o <tytso@mit.edu> |
| 49 | |
| 50 | * probe.c (probe_udf): Add specific UDF probing code, and probe |
| 51 | UDF before checking for ISO9660 filesystems. |
| 52 | |
Theodore Ts'o | 78e2edf | 2003-07-21 19:42:19 -0400 | [diff] [blame] | 53 | 2003-07-21 Theodore Ts'o <tytso@mit.edu> |
| 54 | |
| 55 | * probe.c (blkid_known_fstype): New function which returns true if |
| 56 | the filesystem type is one which this blkid library supports. |
| 57 | |
Theodore Ts'o | a30b944 | 2003-07-20 11:22:34 -0400 | [diff] [blame] | 58 | 2003-07-20 Theodore Ts'o <tytso@mit.edu> |
| 59 | |
| 60 | * probe.c: When revalidating a filesystem, delete the LABEL tag if |
| 61 | the filesystem no longer has a label. |
| 62 | |
Theodore Ts'o | 849c610 | 2003-07-18 19:10:28 -0400 | [diff] [blame] | 63 | 2003-07-18 Theodore Ts'o <tytso@mit.edu> |
| 64 | |
| 65 | * tag.c (blkid_find_dev_with_tag): If blkid_probe_all() returns an |
| 66 | error, then reflect that error upwards; don't try again |
| 67 | (forever). This prevents an infinite loop when /proc and |
| 68 | the /etc/blkid.tab file are not present. |
| 69 | |
Theodore Ts'o | 48e6e81 | 2003-07-06 00:36:48 -0400 | [diff] [blame] | 70 | 2003-07-06 Theodore Ts'o <tytso@mit.edu> |
| 71 | |
| 72 | * blkid_types.h.in: Fix gcc -Wall nitpicks (don't use #elsif) |
| 73 | |
| 74 | * cache.c: Fix gcc -Wall nitpicks (missing #include <string.h>) |
| 75 | |
| 76 | * probe.h: Fix gcc -Wall nitpicks (missing casts) |
| 77 | |
Theodore Ts'o | d339f26 | 2003-05-21 17:56:36 -0400 | [diff] [blame] | 78 | 2003-05-21 Theodore Ts'o <tytso@mit.edu> |
| 79 | |
| 80 | * Makefile.in (ELF_OTHER_LIBS): The blkid library depends on the |
| 81 | uuid library. (Addresses Debian bug: #194094) |
| 82 | |
Theodore Ts'o | 71df0dc | 2003-04-21 16:17:09 -0400 | [diff] [blame] | 83 | 2003-04-21 Theodore Ts'o <tytso@mit.edu> |
| 84 | |
| 85 | * Release of E2fsprogs 1.33 |
| 86 | |
Theodore Ts'o | 520ead3 | 2003-04-19 13:48:27 -0400 | [diff] [blame] | 87 | 2003-04-19 Theodore Ts'o <tytso@mit.edu> |
| 88 | |
| 89 | * blkidP.h: Fix gcc -Wall warnings by using __inline__ instead of |
| 90 | inline. |
| 91 | |
Theodore Ts'o | 09a2ef8 | 2003-04-03 00:04:28 -0500 | [diff] [blame] | 92 | 2003-04-02 Theodore Ts'o <tytso@mit.edu> |
| 93 | |
| 94 | * probe.c, probe.h: Fix XFS superblock definition. Add support to |
| 95 | extract UUID and labels for JFS and romfs. (Thanks to |
| 96 | Janos Farkas <chexum@acomp.hu>.) |
| 97 | |
Theodore Ts'o | 0faabe5 | 2003-03-30 23:08:32 -0500 | [diff] [blame] | 98 | 2003-03-30 Theodore Ts'o <tytso@mit.edu> |
| 99 | |
| 100 | * getsize.c: #include stat.h for the Apple Darwin port |
| 101 | |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 102 | 2003-03-17 Theodore Ts'o <tytso@mit.edu> |
| 103 | |
Theodore Ts'o | 88fe61c | 2003-03-17 18:13:57 -0500 | [diff] [blame] | 104 | * cache.c: Initialize blkid_debug_mask to zero since some |
| 105 | operating systems can't deal with variables in the common |
| 106 | section in shared libraries. |
| 107 | |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 108 | * getsize.c (blkid_get_dev_size): Fix Apple Darwin port. |
| 109 | |
Theodore Ts'o | cd0d521 | 2003-03-06 12:58:03 -0500 | [diff] [blame] | 110 | 2003-03-06 <tytso@mit.edu> |
| 111 | |
| 112 | * devname.c (probe_one): Fix bug; if a partition has no known |
| 113 | type, don't derference a null pointer and crash. |
| 114 | |
Theodore Ts'o | ed78c02 | 2003-03-06 11:09:18 -0500 | [diff] [blame] | 115 | 2003-03-06 Theodore Tso <tytso@mit.edu> |
| 116 | |
| 117 | * blkid_types.h.in: Don't redefine types if other e2fsprogs |
| 118 | *_types.h files have been included already. |
| 119 | |
| 120 | * list.h, probe.h: Use static inline instead of extern inline to |
| 121 | comply with C99 inline support. |
| 122 | |
| 123 | * devname.c (blkid_probe_all): Avoid GCC extension; don't |
| 124 | initialize an array with the address of an automatic |
| 125 | variable. |
| 126 | |
| 127 | * Makefile.in: Eliminate -Wall as a C compiler option by default; |
| 128 | it's not portable. |
| 129 | |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 130 | 2003-03-02 Theodore Ts'o <tytso@mit.edu> |
| 131 | |
| 132 | * Makefile.in: Don't install list.h, since it's not used by the |
| 133 | public blkid.h file. |
| 134 | |
| 135 | * blkid_types.h.in: Change #ifndef protection to use _BLKID_TYPES_H |
| 136 | |
Theodore Ts'o | ed1b33e | 2003-03-01 19:29:01 -0500 | [diff] [blame] | 137 | 2003-03-01 Theodore Ts'o <tytso@mit.edu> |
| 138 | |
Theodore Ts'o | 7e89304 | 2003-03-01 22:57:31 -0500 | [diff] [blame] | 139 | * tag.c (blkid_set_tag): Fix bug; don't return an error when |
| 140 | deleting a tag by setting the value to NULL. This |
| 141 | caused a failed device verification to loop forever in |
| 142 | blkid_verify_devname(). |
| 143 | |
Theodore Ts'o | 2859522 | 2003-03-01 20:01:27 -0500 | [diff] [blame] | 144 | * resolve.c (main): Update debugging test program so that it |
| 145 | compiles with the latest blkid API changes. |
| 146 | |
| 147 | * libblkid.3.in: Update manual page to reflect recent API changes. |
| 148 | |
Theodore Ts'o | ed1b33e | 2003-03-01 19:29:01 -0500 | [diff] [blame] | 149 | * resolve.c (blkid_get_tag_value): If the passed-in cache is NULL, |
| 150 | then get and release a temporary cache as a convenience to |
| 151 | the calling application. |
| 152 | (blkid_get_devname): If the passed in token does not |
| 153 | contain an '=', and value is NULL, then return the passed |
| 154 | in token. |
| 155 | |
| 156 | * read.c (blkid_read_cache): Don't return 0 since blkid_read_cache |
| 157 | now returns void. |
| 158 | |
| 159 | * blkid.h: Add include of sys/types.h, since we use dev_t |
| 160 | |
Theodore Ts'o | 1549a44 | 2003-02-27 19:33:36 -0500 | [diff] [blame] | 161 | 2003-02-27 Theodore Ts'o <tytso@mit.edu> |
| 162 | |
| 163 | * resolve.c (blkid_get_tag_value): Rename function (used to be |
| 164 | blkid_get_tagname_devname) |
| 165 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 166 | 2003-02-22 Theodore Ts'o <tytso@mit.edu> |
| 167 | |
Theodore Ts'o | 79dd234 | 2003-02-22 17:15:20 -0500 | [diff] [blame] | 168 | * devname.c (blkid_probe_all), tag.c (blkid_find_dev_with_tag): |
| 169 | Call blkid_read_cache to make sure the in-core version of |
| 170 | the data structure is the latest. After probing all of |
| 171 | the devices in blkid_probe_all() force the cache file to |
| 172 | be written out, the probe_all represents a lot of effort |
| 173 | that shouldn't be lost. |
| 174 | |
| 175 | * tag.c (blkid_set_tag): Always replace an existing tag with the |
| 176 | new value; we no longer suppor multiple tags with the same |
| 177 | value attached to a device, as this was never really |
| 178 | supported well, and significantly increased the code |
| 179 | complexity. |
| 180 | |
| 181 | * probe.c (probe_ext2): Change handling of ext2/ext3 filesystems. |
| 182 | Ext3 filesystems are now always treated as ext2 |
| 183 | filesystems, with a special SEC_TYPE tag set to ext3. |
| 184 | This was necessary because we now longer support multiple |
| 185 | tags with the same name attached to a device. |
| 186 | |
| 187 | * save.c (save_dev): Don't special case the TYPE tag; just write |
| 188 | it out along with all of the normal tags. |
| 189 | (blkid_flush_cache): Eliminate special case code for stdout. |
| 190 | |
| 191 | * cache.c (blkid_new_cache, blkid_get_cache): Eliminate |
| 192 | blkid_new_cache and fold into blkid_get_cache (moved to |
| 193 | cache.c) |
| 194 | |
| 195 | * read.c (blkid_read_cache): New function created from |
| 196 | blkid_get_cache which used to be in read.c that only |
| 197 | updates the in-core cache data structure from the file. |
| 198 | Uses the file modification time of the cache file to |
| 199 | determine whether the cache file needs to be re-read. |
| 200 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 201 | * cache.c, dev.c, devname.c, devno.c, probe.c, read.c, resolve.c, |
| 202 | save.c, tag.c, blkidP.h: Add dynamic debugging |
| 203 | capabilities, controlled by the environment variable |
| 204 | BLKID_DEBUG. |
| 205 | |
Theodore Ts'o | 98999c3 | 2003-02-16 00:47:07 -0500 | [diff] [blame] | 206 | 2003-02-16 Theodore Ts'o <tytso@mit.edu> |
| 207 | |
| 208 | * blkid.h, dev.c, devname.c, probe.c, read.c, resolve.c: Rename |
| 209 | blkid_get_devname() to blkid_get_dev(). Also rename |
| 210 | blkid_get_token() to blkid_get_devname(). This more |
| 211 | accurately describes what these functions do. |
| 212 | |
Theodore Ts'o | ce72b86 | 2003-02-14 01:31:45 -0500 | [diff] [blame] | 213 | 2003-02-14 Theodore Ts'o <tytso@mit.edu> |
| 214 | |
Theodore Ts'o | bc40efd | 2003-02-14 01:40:23 -0500 | [diff] [blame] | 215 | * blkidP.h, devname.c (blkid_get_devname), read.c (parse_tag), |
| 216 | save.c (save_dev): Remove bid_id, as it is not used for |
| 217 | anything. |
| 218 | |
Theodore Ts'o | ce72b86 | 2003-02-14 01:31:45 -0500 | [diff] [blame] | 219 | * Makefile.in (blkid): When building the blkid, don't link against |
| 220 | the shared blkid library; link only against the static |
| 221 | blkid library. |
| 222 | |
| 223 | * blkidP.h (struct blkid_struct_dev): Remove bid_size and |
| 224 | bid_devsize (since they aren't used any more) and add |
| 225 | bid_pri to the device structure. |
| 226 | |
| 227 | * devname.c (probe_one, lvm_probe_all, evms_probe_all, |
| 228 | blkid_probe_all): Set the bid_pri filed in the device |
| 229 | structure depending on type of device so that EVMS, LVM, |
| 230 | and MD devices get priority over normal devices. |
| 231 | |
| 232 | * tag.c (blkid_find_dev_with_tag): When looking for a device that |
| 233 | matches the search criteria, return the one with the |
| 234 | largest priority (bid_pri). |
| 235 | |
| 236 | * save.c (save_dev): Write out the PRI tag from bid_pri. |
| 237 | |
| 238 | * read.c (parse_tag): Parse the PRI tag and store its value in |
| 239 | bid_pri. |
| 240 | |
| 241 | * probe.c (blkid_verify_devname): If the device does not exist |
| 242 | (open returns ENOENT), treat this as a fatal error and |
| 243 | release the device. After verifying the device, set the |
| 244 | cache as being modified so the changes are written out. |
| 245 | |
| 246 | * resolve.c (main): Change the test driver to get a blkid cache |
| 247 | and pass it to blkid_get_tagname_devname and |
| 248 | blkid_get_token, as the cache is no longer optional. |
| 249 | |
Theodore Ts'o | 50b380b | 2003-02-12 23:51:21 -0500 | [diff] [blame] | 250 | 2003-02-12 Theodore Ts'o <tytso@mit.edu> |
| 251 | |
| 252 | * blkid.h, blkidP.h, cache.c, dev.c, devname.c, devno.c, probe.c, |
| 253 | probe.h, read.c, resolve.c, save.c, tag.c: Wholesale |
| 254 | changes to library to simplify the implementation and |
| 255 | shrink its size. Change library version to be 1.0. |
| 256 | |
Theodore Ts'o | 76b07bb | 2003-01-27 01:09:24 -0500 | [diff] [blame] | 257 | 2003-01-27 Theodore Ts'o <tytso@mit.edu> |
| 258 | |
| 259 | * read.c (parse_tag): Do not return that blkid_tag when parsing |
| 260 | the blkid.tag file. |
| 261 | |
| 262 | * resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in |
| 263 | code from removed functions |
| 264 | |
| 265 | * tag.c (blkid_create_tag): Don't return the newly tag strcture |
| 266 | any more, as it's not needed. |
| 267 | (blkid_find_tag_cache, blkid_get_tag_cache, |
| 268 | blkid_token_to_tag, blkid_find_tv_tags): Remove these |
| 269 | functions, as they are either only used once or have |
| 270 | interfaces that should be deprecated. |
| 271 | (blkid_find_tag_dev, blkid_find_head_cache): Replace use |
| 272 | of blkid_tag with one or two const char * type/value |
| 273 | arguments. |
| 274 | (blkid_find_dev_with_tag): Fold in code from removed functions |
| 275 | |
| 276 | * probe.h, probe.c: Use a more sophisticated set of byte-swapping |
| 277 | routines which are more compact and efficient. Drop |
| 278 | calculation of bid_free, since it's unnecessary. Avoid |
| 279 | |
| 280 | * save.c (blkid_save_cache): Set the permissions on the blkid |
| 281 | cache file to 644. |
| 282 | |
Theodore Ts'o | d3f9179 | 2003-01-25 00:26:48 -0500 | [diff] [blame] | 283 | 2003-01-25 Theodore Ts'o <tytso@mit.edu> |
| 284 | |
Theodore Ts'o | 7a603aa | 2003-01-26 01:54:39 -0500 | [diff] [blame] | 285 | * cache.c, dev.c, devname.c, devno.c, getsize.c, llseek.c, |
| 286 | probe.c, probe.h, read.c, resolve.c, save.c, tag.c, |
| 287 | blkid.h, blkidP.h: Separate public and private |
| 288 | interfaces into separate header files. Start |
| 289 | separating internal implementation details from the |
| 290 | publically exported interface. |
| 291 | |
Theodore Ts'o | 0f3ac480 | 2003-01-25 18:44:33 -0500 | [diff] [blame] | 292 | * devname.c: Add support for EVMS |
| 293 | |
Theodore Ts'o | d3f9179 | 2003-01-25 00:26:48 -0500 | [diff] [blame] | 294 | * blkid.h, cache.c, dev.c, devname.c, devno.c, probe.c, probe.h, |
| 295 | read.c, resolve.c, save.c, tag.c: Fix gcc -Wall nits. |
| 296 | |
Theodore Ts'o | 3a1d6f3 | 2003-01-24 23:11:29 -0500 | [diff] [blame] | 297 | 2003-01-24 Theodore Ts'o <tytso@mit.edu> |
| 298 | |
| 299 | * save.c (blkid_save_cache): Use mkstemp() instead mktemp(). |
| 300 | |
Theodore Ts'o | e12f2ae | 2003-01-23 16:45:16 -0500 | [diff] [blame] | 301 | 2002-10-04 Jordan Breeding <jordan.breeding@attbi.com> |
| 302 | |
| 303 | * Forward port to e2fsprogs 1.30 |
| 304 | |
| 305 | 2001-09-20 Andreas Dilger <adilger@turbolinux.com> |
| 306 | |
| 307 | * Initial release of libblkid. |