1 2003-03-17 Theodore Ts'o <tytso@mit.edu>
3 * getsize.c (blkid_get_dev_size): Fix Apple Darwin port.
5 2003-03-06 <tytso@mit.edu>
7 * devname.c (probe_one): Fix bug; if a partition has no known
8 type, don't derference a null pointer and crash.
10 2003-03-06 Theodore Tso <tytso@mit.edu>
12 * blkid_types.h.in: Don't redefine types if other e2fsprogs
13 *_types.h files have been included already.
15 * list.h, probe.h: Use static inline instead of extern inline to
16 comply with C99 inline support.
18 * devname.c (blkid_probe_all): Avoid GCC extension; don't
19 initialize an array with the address of an automatic
22 * Makefile.in: Eliminate -Wall as a C compiler option by default;
25 2003-03-02 Theodore Ts'o <tytso@mit.edu>
27 * Makefile.in: Don't install list.h, since it's not used by the
30 * blkid_types.h.in: Change #ifndef protection to use _BLKID_TYPES_H
32 2003-03-01 Theodore Ts'o <tytso@mit.edu>
34 * tag.c (blkid_set_tag): Fix bug; don't return an error when
35 deleting a tag by setting the value to NULL. This
36 caused a failed device verification to loop forever in
37 blkid_verify_devname().
39 * resolve.c (main): Update debugging test program so that it
40 compiles with the latest blkid API changes.
42 * libblkid.3.in: Update manual page to reflect recent API changes.
44 * resolve.c (blkid_get_tag_value): If the passed-in cache is NULL,
45 then get and release a temporary cache as a convenience to
46 the calling application.
47 (blkid_get_devname): If the passed in token does not
48 contain an '=', and value is NULL, then return the passed
51 * read.c (blkid_read_cache): Don't return 0 since blkid_read_cache
54 * blkid.h: Add include of sys/types.h, since we use dev_t
56 2003-02-27 Theodore Ts'o <tytso@mit.edu>
58 * resolve.c (blkid_get_tag_value): Rename function (used to be
59 blkid_get_tagname_devname)
61 2003-02-22 Theodore Ts'o <tytso@mit.edu>
63 * devname.c (blkid_probe_all), tag.c (blkid_find_dev_with_tag):
64 Call blkid_read_cache to make sure the in-core version of
65 the data structure is the latest. After probing all of
66 the devices in blkid_probe_all() force the cache file to
67 be written out, the probe_all represents a lot of effort
68 that shouldn't be lost.
70 * tag.c (blkid_set_tag): Always replace an existing tag with the
71 new value; we no longer suppor multiple tags with the same
72 value attached to a device, as this was never really
73 supported well, and significantly increased the code
76 * probe.c (probe_ext2): Change handling of ext2/ext3 filesystems.
77 Ext3 filesystems are now always treated as ext2
78 filesystems, with a special SEC_TYPE tag set to ext3.
79 This was necessary because we now longer support multiple
80 tags with the same name attached to a device.
82 * save.c (save_dev): Don't special case the TYPE tag; just write
83 it out along with all of the normal tags.
84 (blkid_flush_cache): Eliminate special case code for stdout.
86 * cache.c (blkid_new_cache, blkid_get_cache): Eliminate
87 blkid_new_cache and fold into blkid_get_cache (moved to
90 * read.c (blkid_read_cache): New function created from
91 blkid_get_cache which used to be in read.c that only
92 updates the in-core cache data structure from the file.
93 Uses the file modification time of the cache file to
94 determine whether the cache file needs to be re-read.
96 * cache.c, dev.c, devname.c, devno.c, probe.c, read.c, resolve.c,
97 save.c, tag.c, blkidP.h: Add dynamic debugging
98 capabilities, controlled by the environment variable
101 2003-02-16 Theodore Ts'o <tytso@mit.edu>
103 * blkid.h, dev.c, devname.c, probe.c, read.c, resolve.c: Rename
104 blkid_get_devname() to blkid_get_dev(). Also rename
105 blkid_get_token() to blkid_get_devname(). This more
106 accurately describes what these functions do.
108 2003-02-14 Theodore Ts'o <tytso@mit.edu>
110 * blkidP.h, devname.c (blkid_get_devname), read.c (parse_tag),
111 save.c (save_dev): Remove bid_id, as it is not used for
114 * Makefile.in (blkid): When building the blkid, don't link against
115 the shared blkid library; link only against the static
118 * blkidP.h (struct blkid_struct_dev): Remove bid_size and
119 bid_devsize (since they aren't used any more) and add
120 bid_pri to the device structure.
122 * devname.c (probe_one, lvm_probe_all, evms_probe_all,
123 blkid_probe_all): Set the bid_pri filed in the device
124 structure depending on type of device so that EVMS, LVM,
125 and MD devices get priority over normal devices.
127 * tag.c (blkid_find_dev_with_tag): When looking for a device that
128 matches the search criteria, return the one with the
129 largest priority (bid_pri).
131 * save.c (save_dev): Write out the PRI tag from bid_pri.
133 * read.c (parse_tag): Parse the PRI tag and store its value in
136 * probe.c (blkid_verify_devname): If the device does not exist
137 (open returns ENOENT), treat this as a fatal error and
138 release the device. After verifying the device, set the
139 cache as being modified so the changes are written out.
141 * resolve.c (main): Change the test driver to get a blkid cache
142 and pass it to blkid_get_tagname_devname and
143 blkid_get_token, as the cache is no longer optional.
145 2003-02-12 Theodore Ts'o <tytso@mit.edu>
147 * blkid.h, blkidP.h, cache.c, dev.c, devname.c, devno.c, probe.c,
148 probe.h, read.c, resolve.c, save.c, tag.c: Wholesale
149 changes to library to simplify the implementation and
150 shrink its size. Change library version to be 1.0.
152 2003-01-27 Theodore Ts'o <tytso@mit.edu>
154 * read.c (parse_tag): Do not return that blkid_tag when parsing
157 * resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in
158 code from removed functions
160 * tag.c (blkid_create_tag): Don't return the newly tag strcture
161 any more, as it's not needed.
162 (blkid_find_tag_cache, blkid_get_tag_cache,
163 blkid_token_to_tag, blkid_find_tv_tags): Remove these
164 functions, as they are either only used once or have
165 interfaces that should be deprecated.
166 (blkid_find_tag_dev, blkid_find_head_cache): Replace use
167 of blkid_tag with one or two const char * type/value
169 (blkid_find_dev_with_tag): Fold in code from removed functions
171 * probe.h, probe.c: Use a more sophisticated set of byte-swapping
172 routines which are more compact and efficient. Drop
173 calculation of bid_free, since it's unnecessary. Avoid
175 * save.c (blkid_save_cache): Set the permissions on the blkid
178 2003-01-25 Theodore Ts'o <tytso@mit.edu>
180 * cache.c, dev.c, devname.c, devno.c, getsize.c, llseek.c,
181 probe.c, probe.h, read.c, resolve.c, save.c, tag.c,
182 blkid.h, blkidP.h: Separate public and private
183 interfaces into separate header files. Start
184 separating internal implementation details from the
185 publically exported interface.
187 * devname.c: Add support for EVMS
189 * blkid.h, cache.c, dev.c, devname.c, devno.c, probe.c, probe.h,
190 read.c, resolve.c, save.c, tag.c: Fix gcc -Wall nits.
192 2003-01-24 Theodore Ts'o <tytso@mit.edu>
194 * save.c (blkid_save_cache): Use mkstemp() instead mktemp().
196 2002-10-04 Jordan Breeding <jordan.breeding@attbi.com>
198 * Forward port to e2fsprogs 1.30
200 2001-09-20 Andreas Dilger <adilger@turbolinux.com>
202 * Initial release of libblkid.