Whamcloud - gitweb
Use Linux-kernel-style makefile output to make it easier to
[tools/e2fsprogs.git] / lib / blkid / ChangeLog
1 2004-11-30  Theodore Ts'o  <tytso@mit.edu>
2
3         * Makefile.in: Use Linux-kernel-style makefile output to make it
4                 easier to see errors/warnings.
5
6 2004-11-19  Theodore Ts'o  <tytso@mit.edu>
7
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.
11
12 2004-09-17  Theodore Ts'o  <tytso@mit.edu>
13
14         * probe.c, probe.h: Add support for ocfs2 detection, courtesy of
15                 manish.singh@oracle.com
16
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)
21
22         * llseek.c (blkid_llseek): On non-linux systems, use lseek64() if
23                 it is present.  (Addresses Debian bug #269044)
24
25 2004-05-12  Theodore Ts'o  <tytso@mit.edu>
26
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.
30
31 2004-04-19  Theodore Ts'o  <tytso@mit.edu>
32
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.
36
37 2004-04-12  Theodore Ts'o  <tytso@mit.edu>
38
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.
42
43 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
44
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
48                 man page.
49
50 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
51
52         * blkid_types.h.in: Remove check for _UUID_TYPES since uuid_types.h
53                 is no longer used.
54
55 2004-03-21  Theodore Ts'o  <tytso@mit.edu>
56
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)
61
62 2004-03-08  Theodore Ts'o  <tytso@mit.edu>
63
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
67                 for Mac OS X.
68
69 2004-03-04  Theodore Ts'o  <tytso@mit.edu>
70
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).
74
75 2004-03-02  Theodore Ts'o  <tytso@mit.edu>
76
77         * getsize.c (blkid_get_dev_size): Update getsize functions to use
78                 Apple Darwin and Linux 64-bit ioctl's
79
80 2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
81
82         * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
83                 -fpic or -fPIC
84
85 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
86
87         * Release of E2fsprogs 1.35
88
89 2003-12-07  Theodore Ts'o  <tytso@mit.edu>
90
91         * probe.c, read.c, blkidP.h: Fix gcc -Wall nitpicks.
92
93 2003-07-25  Theodore Ts'o  <tytso@mit.edu>
94
95         * Release of E2fsprogs 1.34
96
97 2003-07-22  Theodore Ts'o  <tytso@mit.edu>
98
99         * probe.c (probe_udf): Add specific UDF probing code, and probe
100                 UDF before checking for ISO9660 filesystems.
101
102 2003-07-21  Theodore Ts'o  <tytso@mit.edu>
103
104         * probe.c (blkid_known_fstype): New function which returns true if
105                 the filesystem type is one which this blkid library supports.
106
107 2003-07-20  Theodore Ts'o  <tytso@mit.edu>
108
109         * probe.c: When revalidating a filesystem, delete the LABEL tag if
110                 the filesystem no longer has a label.
111
112 2003-07-18  Theodore Ts'o  <tytso@mit.edu>
113
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.
118
119 2003-07-06  Theodore Ts'o  <tytso@mit.edu>
120
121         * blkid_types.h.in: Fix gcc -Wall nitpicks (don't use #elsif)
122
123         * cache.c: Fix gcc -Wall nitpicks (missing #include <string.h>)
124
125         * probe.h: Fix gcc -Wall nitpicks (missing casts)
126
127 2003-05-21  Theodore Ts'o  <tytso@mit.edu>
128
129         * Makefile.in (ELF_OTHER_LIBS): The blkid library depends on the
130                 uuid library.  (Addresses Debian bug: #194094)
131
132 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
133
134         * Release of E2fsprogs 1.33
135
136 2003-04-19  Theodore Ts'o  <tytso@mit.edu>
137
138         * blkidP.h: Fix gcc -Wall warnings by using __inline__ instead of
139                 inline. 
140
141 2003-04-02  Theodore Ts'o  <tytso@mit.edu>
142
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>.)
146
147 2003-03-30  Theodore Ts'o  <tytso@mit.edu>
148
149         * getsize.c: #include stat.h for the Apple Darwin port
150
151 2003-03-17  Theodore Ts'o  <tytso@mit.edu>
152
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.
156  
157         * getsize.c (blkid_get_dev_size): Fix Apple Darwin port.
158
159 2003-03-06    <tytso@mit.edu>
160
161         * devname.c (probe_one): Fix bug; if a partition has no known
162                 type, don't derference a null pointer and crash.
163
164 2003-03-06  Theodore Tso  <tytso@mit.edu>
165
166         * blkid_types.h.in: Don't redefine types if other e2fsprogs
167                 *_types.h files have been included already.
168
169         * list.h, probe.h: Use static inline instead of extern inline to
170                 comply with C99 inline support.
171
172         * devname.c (blkid_probe_all): Avoid GCC extension; don't
173                 initialize an array with the address of an automatic
174                 variable.
175
176         * Makefile.in: Eliminate -Wall as a C compiler option by default;
177                 it's not portable.
178
179 2003-03-02  Theodore Ts'o  <tytso@mit.edu>
180
181         * Makefile.in: Don't install list.h, since it's not used by the
182                 public blkid.h file.
183
184         * blkid_types.h.in: Change #ifndef protection to use _BLKID_TYPES_H
185
186 2003-03-01  Theodore Ts'o  <tytso@mit.edu>
187
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().
192
193         * resolve.c (main): Update debugging test program so that it
194                 compiles with the latest blkid API changes.
195
196         * libblkid.3.in: Update manual page to reflect recent API changes.
197
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
203                 in token.
204
205         * read.c (blkid_read_cache): Don't return 0 since blkid_read_cache
206                 now returns void.
207
208         * blkid.h: Add include of sys/types.h, since we use dev_t
209
210 2003-02-27  Theodore Ts'o  <tytso@mit.edu>
211
212         * resolve.c (blkid_get_tag_value): Rename function (used to be
213                 blkid_get_tagname_devname)
214
215 2003-02-22  Theodore Ts'o  <tytso@mit.edu>
216
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.
223
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
228                 complexity.
229
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.
235
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.
239
240         * cache.c (blkid_new_cache, blkid_get_cache): Eliminate
241                 blkid_new_cache and fold into blkid_get_cache (moved to
242                 cache.c)
243
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.
249
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
253                 BLKID_DEBUG. 
254
255 2003-02-16  Theodore Ts'o  <tytso@mit.edu>
256
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.
261
262 2003-02-14  Theodore Ts'o  <tytso@mit.edu>
263
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
266                 anything.
267
268         * Makefile.in (blkid): When building the blkid, don't link against
269                 the shared blkid library; link only against the static
270                 blkid library.
271
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.
275
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.
280
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).
284
285         * save.c (save_dev): Write out the PRI tag from bid_pri.
286
287         * read.c (parse_tag): Parse the PRI tag and store its value in
288                 bid_pri.
289
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.
294
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.
298
299 2003-02-12  Theodore Ts'o  <tytso@mit.edu>
300
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.
305
306 2003-01-27  Theodore Ts'o  <tytso@mit.edu>
307
308         * read.c (parse_tag): Do not return that blkid_tag when parsing
309                 the blkid.tag file.
310
311         * resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in
312                 code from removed functions
313
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
322                 arguments.
323                 (blkid_find_dev_with_tag): Fold in code from removed functions
324
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 
328
329         * save.c (blkid_save_cache): Set the permissions on the blkid
330                 cache file to 644.
331         
332 2003-01-25  Theodore Ts'o  <tytso@mit.edu>
333
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.
340
341         * devname.c: Add support for EVMS
342
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.
345
346 2003-01-24  Theodore Ts'o  <tytso@mit.edu>
347
348         * save.c (blkid_save_cache): Use mkstemp() instead mktemp().
349
350 2002-10-04  Jordan Breeding  <jordan.breeding@attbi.com>
351
352         * Forward port to e2fsprogs 1.30
353
354 2001-09-20  Andreas Dilger  <adilger@turbolinux.com>
355
356         * Initial release of libblkid.