1 2004-11-30 Theodore Ts'o <tytso@mit.edu>
3 * Makefile.in: Use Linux-kernel-style makefile output to make it
4 easier to see errors/warnings.
6 2004-11-19 Theodore Ts'o <tytso@mit.edu>
8 * probe.c (probe_ocfs): Fix bug where the wrong size for "ocfs1"
9 was being passed to blkid_set_tag(). Thanks to Andrea
10 Dilger for pointing this out.
12 2004-09-17 Theodore Ts'o <tytso@mit.edu>
14 * probe.c, probe.h: Add support for ocfs2 detection, courtesy of
15 manish.singh@oracle.com
17 * getsize.c: Clean up header #include's. Include sys/disk.h if
18 present since this is the new place where the
19 DIOCGMEDIASIZE ioctl is defined on FreeBSD systems.
20 (Addresses Debian bug #264630)
22 * llseek.c (blkid_llseek): On non-linux systems, use lseek64() if
23 it is present. (Addresses Debian bug #269044)
25 2004-05-12 Theodore Ts'o <tytso@mit.edu>
27 * read.c (blkid_read_cache): Add missing fclose() which was
28 causing a memory and file descriptor leak. Thanks to
29 magnus.fromreide at teligent.se.
31 2004-04-19 Theodore Ts'o <tytso@mit.edu>
33 * probe.c (blkid_verify_devname): If the time is earlier than the
34 last modified time of the device, then force a reverify;
35 it means the system time may not be trustworthy.
37 2004-04-12 Theodore Ts'o <tytso@mit.edu>
39 * cache.c (blkid_get_cache): If the BLKID_FILE environment
40 variable is set, use it to find the blkid.tab file if the
41 calling application did not supply a filename.
43 2004-04-03 Theodore Ts'o <tytso@mit.edu>
45 * Makefile.in: Update the modtime even if subst doesn't need to
46 update the libblkid man page, to avoid always re-running
47 subst, especially since there are no dependencies on the
50 2004-04-03 Theodore Ts'o <tytso@mit.edu>
52 * blkid_types.h.in: Remove check for _UUID_TYPES since uuid_types.h
55 2004-03-21 Theodore Ts'o <tytso@mit.edu>
57 * getsize.c (blkid_get_dev_size): Don't close the file descriptor
58 when determining the size. This bug was introduced in the
59 previous getsize changes, and was screwing up the blkid
60 library probe functions. (Addresses Debian Bug #239191)
62 2004-03-08 Theodore Ts'o <tytso@mit.edu>
64 * getsize.c (blkid_get_dev_size): Only use the BLKGETSIZE64 ioctl
65 on Linux 2.6 since it is unreliable in Linux 2.4..
66 (Addresses Debian Bug #236528) Fix typo in the ioctl used
69 2004-03-04 Theodore Ts'o <tytso@mit.edu>
71 * probe.c (probe_ocfs), probe.h: Add support for the Oracle
72 Cluster Filesystem (ocfs). Patches courtesy of Rusty
73 Lynch (rusty@linux.co.intel.com).
75 2004-03-02 Theodore Ts'o <tytso@mit.edu>
77 * getsize.c (blkid_get_dev_size): Update getsize functions to use
78 Apple Darwin and Linux 64-bit ioctl's
80 2004-02-29 Brian Bergstrand <brian@bergstrand.org>
82 * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
85 2004-02-28 Theodore Ts'o <tytso@mit.edu>
87 * Release of E2fsprogs 1.35
89 2003-12-07 Theodore Ts'o <tytso@mit.edu>
91 * probe.c, read.c, blkidP.h: Fix gcc -Wall nitpicks.
93 2003-07-25 Theodore Ts'o <tytso@mit.edu>
95 * Release of E2fsprogs 1.34
97 2003-07-22 Theodore Ts'o <tytso@mit.edu>
99 * probe.c (probe_udf): Add specific UDF probing code, and probe
100 UDF before checking for ISO9660 filesystems.
102 2003-07-21 Theodore Ts'o <tytso@mit.edu>
104 * probe.c (blkid_known_fstype): New function which returns true if
105 the filesystem type is one which this blkid library supports.
107 2003-07-20 Theodore Ts'o <tytso@mit.edu>
109 * probe.c: When revalidating a filesystem, delete the LABEL tag if
110 the filesystem no longer has a label.
112 2003-07-18 Theodore Ts'o <tytso@mit.edu>
114 * tag.c (blkid_find_dev_with_tag): If blkid_probe_all() returns an
115 error, then reflect that error upwards; don't try again
116 (forever). This prevents an infinite loop when /proc and
117 the /etc/blkid.tab file are not present.
119 2003-07-06 Theodore Ts'o <tytso@mit.edu>
121 * blkid_types.h.in: Fix gcc -Wall nitpicks (don't use #elsif)
123 * cache.c: Fix gcc -Wall nitpicks (missing #include <string.h>)
125 * probe.h: Fix gcc -Wall nitpicks (missing casts)
127 2003-05-21 Theodore Ts'o <tytso@mit.edu>
129 * Makefile.in (ELF_OTHER_LIBS): The blkid library depends on the
130 uuid library. (Addresses Debian bug: #194094)
132 2003-04-21 Theodore Ts'o <tytso@mit.edu>
134 * Release of E2fsprogs 1.33
136 2003-04-19 Theodore Ts'o <tytso@mit.edu>
138 * blkidP.h: Fix gcc -Wall warnings by using __inline__ instead of
141 2003-04-02 Theodore Ts'o <tytso@mit.edu>
143 * probe.c, probe.h: Fix XFS superblock definition. Add support to
144 extract UUID and labels for JFS and romfs. (Thanks to
145 Janos Farkas <chexum@acomp.hu>.)
147 2003-03-30 Theodore Ts'o <tytso@mit.edu>
149 * getsize.c: #include stat.h for the Apple Darwin port
151 2003-03-17 Theodore Ts'o <tytso@mit.edu>
153 * cache.c: Initialize blkid_debug_mask to zero since some
154 operating systems can't deal with variables in the common
155 section in shared libraries.
157 * getsize.c (blkid_get_dev_size): Fix Apple Darwin port.
159 2003-03-06 <tytso@mit.edu>
161 * devname.c (probe_one): Fix bug; if a partition has no known
162 type, don't derference a null pointer and crash.
164 2003-03-06 Theodore Tso <tytso@mit.edu>
166 * blkid_types.h.in: Don't redefine types if other e2fsprogs
167 *_types.h files have been included already.
169 * list.h, probe.h: Use static inline instead of extern inline to
170 comply with C99 inline support.
172 * devname.c (blkid_probe_all): Avoid GCC extension; don't
173 initialize an array with the address of an automatic
176 * Makefile.in: Eliminate -Wall as a C compiler option by default;
179 2003-03-02 Theodore Ts'o <tytso@mit.edu>
181 * Makefile.in: Don't install list.h, since it's not used by the
184 * blkid_types.h.in: Change #ifndef protection to use _BLKID_TYPES_H
186 2003-03-01 Theodore Ts'o <tytso@mit.edu>
188 * tag.c (blkid_set_tag): Fix bug; don't return an error when
189 deleting a tag by setting the value to NULL. This
190 caused a failed device verification to loop forever in
191 blkid_verify_devname().
193 * resolve.c (main): Update debugging test program so that it
194 compiles with the latest blkid API changes.
196 * libblkid.3.in: Update manual page to reflect recent API changes.
198 * resolve.c (blkid_get_tag_value): If the passed-in cache is NULL,
199 then get and release a temporary cache as a convenience to
200 the calling application.
201 (blkid_get_devname): If the passed in token does not
202 contain an '=', and value is NULL, then return the passed
205 * read.c (blkid_read_cache): Don't return 0 since blkid_read_cache
208 * blkid.h: Add include of sys/types.h, since we use dev_t
210 2003-02-27 Theodore Ts'o <tytso@mit.edu>
212 * resolve.c (blkid_get_tag_value): Rename function (used to be
213 blkid_get_tagname_devname)
215 2003-02-22 Theodore Ts'o <tytso@mit.edu>
217 * devname.c (blkid_probe_all), tag.c (blkid_find_dev_with_tag):
218 Call blkid_read_cache to make sure the in-core version of
219 the data structure is the latest. After probing all of
220 the devices in blkid_probe_all() force the cache file to
221 be written out, the probe_all represents a lot of effort
222 that shouldn't be lost.
224 * tag.c (blkid_set_tag): Always replace an existing tag with the
225 new value; we no longer suppor multiple tags with the same
226 value attached to a device, as this was never really
227 supported well, and significantly increased the code
230 * probe.c (probe_ext2): Change handling of ext2/ext3 filesystems.
231 Ext3 filesystems are now always treated as ext2
232 filesystems, with a special SEC_TYPE tag set to ext3.
233 This was necessary because we now longer support multiple
234 tags with the same name attached to a device.
236 * save.c (save_dev): Don't special case the TYPE tag; just write
237 it out along with all of the normal tags.
238 (blkid_flush_cache): Eliminate special case code for stdout.
240 * cache.c (blkid_new_cache, blkid_get_cache): Eliminate
241 blkid_new_cache and fold into blkid_get_cache (moved to
244 * read.c (blkid_read_cache): New function created from
245 blkid_get_cache which used to be in read.c that only
246 updates the in-core cache data structure from the file.
247 Uses the file modification time of the cache file to
248 determine whether the cache file needs to be re-read.
250 * cache.c, dev.c, devname.c, devno.c, probe.c, read.c, resolve.c,
251 save.c, tag.c, blkidP.h: Add dynamic debugging
252 capabilities, controlled by the environment variable
255 2003-02-16 Theodore Ts'o <tytso@mit.edu>
257 * blkid.h, dev.c, devname.c, probe.c, read.c, resolve.c: Rename
258 blkid_get_devname() to blkid_get_dev(). Also rename
259 blkid_get_token() to blkid_get_devname(). This more
260 accurately describes what these functions do.
262 2003-02-14 Theodore Ts'o <tytso@mit.edu>
264 * blkidP.h, devname.c (blkid_get_devname), read.c (parse_tag),
265 save.c (save_dev): Remove bid_id, as it is not used for
268 * Makefile.in (blkid): When building the blkid, don't link against
269 the shared blkid library; link only against the static
272 * blkidP.h (struct blkid_struct_dev): Remove bid_size and
273 bid_devsize (since they aren't used any more) and add
274 bid_pri to the device structure.
276 * devname.c (probe_one, lvm_probe_all, evms_probe_all,
277 blkid_probe_all): Set the bid_pri filed in the device
278 structure depending on type of device so that EVMS, LVM,
279 and MD devices get priority over normal devices.
281 * tag.c (blkid_find_dev_with_tag): When looking for a device that
282 matches the search criteria, return the one with the
283 largest priority (bid_pri).
285 * save.c (save_dev): Write out the PRI tag from bid_pri.
287 * read.c (parse_tag): Parse the PRI tag and store its value in
290 * probe.c (blkid_verify_devname): If the device does not exist
291 (open returns ENOENT), treat this as a fatal error and
292 release the device. After verifying the device, set the
293 cache as being modified so the changes are written out.
295 * resolve.c (main): Change the test driver to get a blkid cache
296 and pass it to blkid_get_tagname_devname and
297 blkid_get_token, as the cache is no longer optional.
299 2003-02-12 Theodore Ts'o <tytso@mit.edu>
301 * blkid.h, blkidP.h, cache.c, dev.c, devname.c, devno.c, probe.c,
302 probe.h, read.c, resolve.c, save.c, tag.c: Wholesale
303 changes to library to simplify the implementation and
304 shrink its size. Change library version to be 1.0.
306 2003-01-27 Theodore Ts'o <tytso@mit.edu>
308 * read.c (parse_tag): Do not return that blkid_tag when parsing
311 * resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in
312 code from removed functions
314 * tag.c (blkid_create_tag): Don't return the newly tag strcture
315 any more, as it's not needed.
316 (blkid_find_tag_cache, blkid_get_tag_cache,
317 blkid_token_to_tag, blkid_find_tv_tags): Remove these
318 functions, as they are either only used once or have
319 interfaces that should be deprecated.
320 (blkid_find_tag_dev, blkid_find_head_cache): Replace use
321 of blkid_tag with one or two const char * type/value
323 (blkid_find_dev_with_tag): Fold in code from removed functions
325 * probe.h, probe.c: Use a more sophisticated set of byte-swapping
326 routines which are more compact and efficient. Drop
327 calculation of bid_free, since it's unnecessary. Avoid
329 * save.c (blkid_save_cache): Set the permissions on the blkid
332 2003-01-25 Theodore Ts'o <tytso@mit.edu>
334 * cache.c, dev.c, devname.c, devno.c, getsize.c, llseek.c,
335 probe.c, probe.h, read.c, resolve.c, save.c, tag.c,
336 blkid.h, blkidP.h: Separate public and private
337 interfaces into separate header files. Start
338 separating internal implementation details from the
339 publically exported interface.
341 * devname.c: Add support for EVMS
343 * blkid.h, cache.c, dev.c, devname.c, devno.c, probe.c, probe.h,
344 read.c, resolve.c, save.c, tag.c: Fix gcc -Wall nits.
346 2003-01-24 Theodore Ts'o <tytso@mit.edu>
348 * save.c (blkid_save_cache): Use mkstemp() instead mktemp().
350 2002-10-04 Jordan Breeding <jordan.breeding@attbi.com>
352 * Forward port to e2fsprogs 1.30
354 2001-09-20 Andreas Dilger <adilger@turbolinux.com>
356 * Initial release of libblkid.