Whamcloud - gitweb
c693c8bf5726788eecd3f9a47fa54b922f481507
[tools/e2fsprogs.git] / lib / blkid / ChangeLog
1 2005-01-13  Matthias Andree  <matthias.andree@gmx.de>
2
3         * getsize.c: Move #include "blkidP.h" before <sys/queues.h> to avoid a
4         clash with the LIST_HEAD in the latter file.
5
6 2005-01-10  Theodore Ts'o  <tytso@mit.edu>
7
8         * probe.c: Integrate and fix up Janos Farkas's patch.  Version 0
9                 swap headers won't ever have uuid/labels.  Also, if the
10                 swap partition is recreated without a label, make sure
11                 label in the blkid file gets freed.
12                 (get_ext2_info, probe_vfat, probe_msdos, probe_reiserfs):
13                 Make sure the label is cleared from the blkid file if the
14                 label gets cleared from the filesystem.
15                 (probe_romfs): Avoid dereferencing a null pointer of the
16                 label is not present.
17
18 2005-01-10  Janos Farkas  <chexum+dev@gmail.com>
19
20         * probe.h: Define linux swap format.
21
22         * probe.c: Fetch uuid/label from swap headers if present.  Mark
23         swap types as needing extra probe.
24
25 2005-01-05  Theodore Ts'o  <tytso@mit.edu>
26
27         * save.c (save_dev): Don't save relative pathnames since they
28                 won't be useful to another process.
29
30         * devname.c (probe_one): Make sure the device is a block device
31                 before checking st_rdev.
32
33         * probe.c (probe_msdos): Mark msdos filesystems as type vfat, with
34                 a SEC_TYPE of msdos, so that mount will use vfat to mount
35                 msdos filesystems.  (Addresses Debian bug #287455)
36                 (probe_ext3): For ext3 filesystems, return a type of ext3
37                 and a SEC_TYPE of ext2, for similar reasons as above.
38                 (blkid_verify_devname): Allow non-block devices to be
39                 verified, for testing purposes.
40
41 2004-12-14  Theodore Ts'o  <tytso@mit.edu>
42
43         * Makefile.in: Use Linux-kernel-style makefile output for "make
44                 install"
45
46         * Makefile.in (installdirs): Use $(MKINSTALLDIRS) macro
47
48 2004-11-30  Theodore Ts'o  <tytso@mit.edu>
49
50         * probe.c, probe.h: Avoid using uint and uchar types, to allow
51                 compilation using dietlibc.
52
53         * Makefile.in: Use Linux-kernel-style makefile output to make it
54                 easier to see errors/warnings.
55
56 2004-11-19  Theodore Ts'o  <tytso@mit.edu>
57
58         * probe.c (probe_ocfs): Fix bug where the wrong size for "ocfs1"
59                 was being passed to blkid_set_tag().  Thanks to Andrea
60                 Dilger for pointing this out.
61
62 2004-09-17  Theodore Ts'o  <tytso@mit.edu>
63
64         * probe.c, probe.h: Add support for ocfs2 detection, courtesy of
65                 manish.singh@oracle.com
66
67         * getsize.c: Clean up header #include's.  Include sys/disk.h if
68                 present since this is the new place where the
69                 DIOCGMEDIASIZE ioctl is defined on FreeBSD systems.
70                 (Addresses Debian bug #264630)
71
72         * llseek.c (blkid_llseek): On non-linux systems, use lseek64() if
73                 it is present.  (Addresses Debian bug #269044)
74
75 2004-05-12  Theodore Ts'o  <tytso@mit.edu>
76
77         * read.c (blkid_read_cache): Add missing fclose() which was
78                 causing a memory and file descriptor leak.  Thanks to
79                 magnus.fromreide at teligent.se.
80
81 2004-04-19  Theodore Ts'o  <tytso@mit.edu>
82
83         * probe.c (blkid_verify_devname): If the time is earlier than the
84                 last modified time of the device, then force a reverify;
85                 it means the system time may not be trustworthy.
86
87 2004-04-12  Theodore Ts'o  <tytso@mit.edu>
88
89         * cache.c (blkid_get_cache): If the BLKID_FILE environment
90                 variable is set, use it to find the blkid.tab file if the
91                 calling application did not supply a filename.
92
93 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
94
95         * Makefile.in: Update the modtime even if subst doesn't need to
96                 update the libblkid man page, to avoid always re-running
97                 subst, especially since there are no dependencies on the
98                 man page.
99
100 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
101
102         * blkid_types.h.in: Remove check for _UUID_TYPES since uuid_types.h
103                 is no longer used.
104
105 2004-03-21  Theodore Ts'o  <tytso@mit.edu>
106
107         * getsize.c (blkid_get_dev_size): Don't close the file descriptor
108                 when determining the size.  This bug was introduced in the
109                 previous getsize changes, and was screwing up the blkid
110                 library probe functions.  (Addresses Debian Bug #239191)
111
112 2004-03-08  Theodore Ts'o  <tytso@mit.edu>
113
114         * getsize.c (blkid_get_dev_size): Only use the BLKGETSIZE64 ioctl
115                 on Linux 2.6 since it is unreliable in Linux 2.4..
116                 (Addresses Debian Bug #236528) Fix typo in the ioctl used
117                 for Mac OS X.
118
119 2004-03-04  Theodore Ts'o  <tytso@mit.edu>
120
121         * probe.c (probe_ocfs), probe.h: Add support for the Oracle
122                 Cluster Filesystem (ocfs).  Patches courtesy of Rusty
123                 Lynch (rusty@linux.co.intel.com).
124
125 2004-03-02  Theodore Ts'o  <tytso@mit.edu>
126
127         * getsize.c (blkid_get_dev_size): Update getsize functions to use
128                 Apple Darwin and Linux 64-bit ioctl's
129
130 2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
131
132         * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
133                 -fpic or -fPIC
134
135 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
136
137         * Release of E2fsprogs 1.35
138
139 2003-12-07  Theodore Ts'o  <tytso@mit.edu>
140
141         * probe.c, read.c, blkidP.h: Fix gcc -Wall nitpicks.
142
143 2003-07-25  Theodore Ts'o  <tytso@mit.edu>
144
145         * Release of E2fsprogs 1.34
146
147 2003-07-22  Theodore Ts'o  <tytso@mit.edu>
148
149         * probe.c (probe_udf): Add specific UDF probing code, and probe
150                 UDF before checking for ISO9660 filesystems.
151
152 2003-07-21  Theodore Ts'o  <tytso@mit.edu>
153
154         * probe.c (blkid_known_fstype): New function which returns true if
155                 the filesystem type is one which this blkid library supports.
156
157 2003-07-20  Theodore Ts'o  <tytso@mit.edu>
158
159         * probe.c: When revalidating a filesystem, delete the LABEL tag if
160                 the filesystem no longer has a label.
161
162 2003-07-18  Theodore Ts'o  <tytso@mit.edu>
163
164         * tag.c (blkid_find_dev_with_tag): If blkid_probe_all() returns an
165                 error, then reflect that error upwards; don't try again
166                 (forever).  This prevents an infinite loop when /proc and
167                 the /etc/blkid.tab file are not present.
168
169 2003-07-06  Theodore Ts'o  <tytso@mit.edu>
170
171         * blkid_types.h.in: Fix gcc -Wall nitpicks (don't use #elsif)
172
173         * cache.c: Fix gcc -Wall nitpicks (missing #include <string.h>)
174
175         * probe.h: Fix gcc -Wall nitpicks (missing casts)
176
177 2003-05-21  Theodore Ts'o  <tytso@mit.edu>
178
179         * Makefile.in (ELF_OTHER_LIBS): The blkid library depends on the
180                 uuid library.  (Addresses Debian bug: #194094)
181
182 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
183
184         * Release of E2fsprogs 1.33
185
186 2003-04-19  Theodore Ts'o  <tytso@mit.edu>
187
188         * blkidP.h: Fix gcc -Wall warnings by using __inline__ instead of
189                 inline. 
190
191 2003-04-02  Theodore Ts'o  <tytso@mit.edu>
192
193         * probe.c, probe.h: Fix XFS superblock definition.  Add support to
194                 extract UUID and labels for JFS and romfs.  (Thanks to
195                 Janos Farkas <chexum+dev@gmail.com>.)
196
197 2003-03-30  Theodore Ts'o  <tytso@mit.edu>
198
199         * getsize.c: #include stat.h for the Apple Darwin port
200
201 2003-03-17  Theodore Ts'o  <tytso@mit.edu>
202
203         * cache.c: Initialize blkid_debug_mask to zero since some
204                 operating systems can't deal with variables in the common
205                 section in shared libraries.
206  
207         * getsize.c (blkid_get_dev_size): Fix Apple Darwin port.
208
209 2003-03-06    <tytso@mit.edu>
210
211         * devname.c (probe_one): Fix bug; if a partition has no known
212                 type, don't derference a null pointer and crash.
213
214 2003-03-06  Theodore Tso  <tytso@mit.edu>
215
216         * blkid_types.h.in: Don't redefine types if other e2fsprogs
217                 *_types.h files have been included already.
218
219         * list.h, probe.h: Use static inline instead of extern inline to
220                 comply with C99 inline support.
221
222         * devname.c (blkid_probe_all): Avoid GCC extension; don't
223                 initialize an array with the address of an automatic
224                 variable.
225
226         * Makefile.in: Eliminate -Wall as a C compiler option by default;
227                 it's not portable.
228
229 2003-03-02  Theodore Ts'o  <tytso@mit.edu>
230
231         * Makefile.in: Don't install list.h, since it's not used by the
232                 public blkid.h file.
233
234         * blkid_types.h.in: Change #ifndef protection to use _BLKID_TYPES_H
235
236 2003-03-01  Theodore Ts'o  <tytso@mit.edu>
237
238         * tag.c (blkid_set_tag): Fix bug; don't return an error when
239                 deleting a tag by setting the value to NULL.  This
240                 caused a failed device verification to loop forever in
241                 blkid_verify_devname().
242
243         * resolve.c (main): Update debugging test program so that it
244                 compiles with the latest blkid API changes.
245
246         * libblkid.3.in: Update manual page to reflect recent API changes.
247
248         * resolve.c (blkid_get_tag_value): If the passed-in cache is NULL,
249                 then get and release a temporary cache as a convenience to
250                 the calling application.
251                 (blkid_get_devname): If the passed in token does not
252                 contain an '=', and value is NULL, then return the passed
253                 in token.
254
255         * read.c (blkid_read_cache): Don't return 0 since blkid_read_cache
256                 now returns void.
257
258         * blkid.h: Add include of sys/types.h, since we use dev_t
259
260 2003-02-27  Theodore Ts'o  <tytso@mit.edu>
261
262         * resolve.c (blkid_get_tag_value): Rename function (used to be
263                 blkid_get_tagname_devname)
264
265 2003-02-22  Theodore Ts'o  <tytso@mit.edu>
266
267         * devname.c (blkid_probe_all), tag.c (blkid_find_dev_with_tag): 
268                 Call blkid_read_cache to make sure the in-core version of
269                 the data structure is the latest.  After probing all of
270                 the devices in blkid_probe_all() force the cache file to
271                 be written out, the probe_all represents a lot of effort
272                 that shouldn't be lost.
273
274         * tag.c (blkid_set_tag): Always replace an existing tag with the
275                 new value; we no longer suppor multiple tags with the same
276                 value attached to a device, as this was never really
277                 supported well, and significantly increased the code
278                 complexity.
279
280         * probe.c (probe_ext2): Change handling of ext2/ext3 filesystems.
281                 Ext3 filesystems are now always treated as ext2
282                 filesystems, with a special SEC_TYPE tag set to ext3.
283                 This was necessary because we now longer support multiple
284                 tags with the same name attached to a device.
285
286         * save.c (save_dev): Don't special case the TYPE tag; just write
287                 it out along with all of the normal tags.
288                 (blkid_flush_cache): Eliminate special case code for stdout.
289
290         * cache.c (blkid_new_cache, blkid_get_cache): Eliminate
291                 blkid_new_cache and fold into blkid_get_cache (moved to
292                 cache.c)
293
294         * read.c (blkid_read_cache): New function created from
295                 blkid_get_cache which used to be in read.c that only
296                 updates the in-core cache data structure from the file.
297                 Uses the file modification time of the cache file to
298                 determine whether the cache file needs to be re-read.
299
300         * cache.c, dev.c, devname.c, devno.c, probe.c, read.c, resolve.c,
301                 save.c, tag.c, blkidP.h: Add dynamic debugging
302                 capabilities, controlled by the environment variable
303                 BLKID_DEBUG. 
304
305 2003-02-16  Theodore Ts'o  <tytso@mit.edu>
306
307         * blkid.h, dev.c, devname.c, probe.c, read.c, resolve.c: Rename
308                 blkid_get_devname() to blkid_get_dev().  Also rename
309                 blkid_get_token() to blkid_get_devname().  This more
310                 accurately describes what these functions do.
311
312 2003-02-14  Theodore Ts'o  <tytso@mit.edu>
313
314         * blkidP.h, devname.c (blkid_get_devname), read.c (parse_tag),
315                 save.c (save_dev): Remove bid_id, as it is not used for
316                 anything.
317
318         * Makefile.in (blkid): When building the blkid, don't link against
319                 the shared blkid library; link only against the static
320                 blkid library.
321
322         * blkidP.h (struct blkid_struct_dev): Remove bid_size and
323                 bid_devsize (since they aren't used any more) and add
324                 bid_pri to the device structure.
325
326         * devname.c (probe_one, lvm_probe_all, evms_probe_all,
327                 blkid_probe_all): Set the bid_pri filed in the device
328                 structure depending on type of device so that EVMS, LVM,
329                 and MD devices get priority over normal devices.
330
331         * tag.c (blkid_find_dev_with_tag): When looking for a device that
332                 matches the search criteria, return the one with the
333                 largest priority (bid_pri).
334
335         * save.c (save_dev): Write out the PRI tag from bid_pri.
336
337         * read.c (parse_tag): Parse the PRI tag and store its value in
338                 bid_pri.
339
340         * probe.c (blkid_verify_devname): If the device does not exist
341                 (open returns ENOENT), treat this as a fatal error and
342                 release the device.  After verifying the device, set the
343                 cache as being modified so the changes are written out.
344
345         * resolve.c (main): Change the test driver to get a blkid cache
346                 and pass it to blkid_get_tagname_devname and
347                 blkid_get_token, as the cache is no longer optional.
348
349 2003-02-12  Theodore Ts'o  <tytso@mit.edu>
350
351         * blkid.h, blkidP.h, cache.c, dev.c, devname.c, devno.c, probe.c,
352                 probe.h, read.c, resolve.c, save.c, tag.c: Wholesale
353                 changes to library to simplify the implementation and
354                 shrink its size.  Change library version to be 1.0.
355
356 2003-01-27  Theodore Ts'o  <tytso@mit.edu>
357
358         * read.c (parse_tag): Do not return that blkid_tag when parsing
359                 the blkid.tag file.
360
361         * resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in
362                 code from removed functions
363
364         * tag.c (blkid_create_tag): Don't return the newly tag strcture
365                 any more, as it's not needed.
366                 (blkid_find_tag_cache, blkid_get_tag_cache,
367                  blkid_token_to_tag, blkid_find_tv_tags): Remove these 
368                 functions, as they are either only used once or have
369                 interfaces that should be deprecated.
370                 (blkid_find_tag_dev, blkid_find_head_cache): Replace use
371                 of blkid_tag with one or two const char * type/value
372                 arguments.
373                 (blkid_find_dev_with_tag): Fold in code from removed functions
374
375         * probe.h, probe.c: Use a more sophisticated set of byte-swapping
376                 routines which are more compact and efficient.  Drop
377                 calculation of bid_free, since it's unnecessary.  Avoid 
378
379         * save.c (blkid_save_cache): Set the permissions on the blkid
380                 cache file to 644.
381         
382 2003-01-25  Theodore Ts'o  <tytso@mit.edu>
383
384         * cache.c, dev.c, devname.c, devno.c, getsize.c, llseek.c, 
385                 probe.c, probe.h, read.c, resolve.c, save.c, tag.c, 
386                 blkid.h, blkidP.h: Separate public and private
387                 interfaces into separate header files.  Start
388                 separating internal implementation details from the
389                 publically exported interface.
390
391         * devname.c: Add support for EVMS
392
393         * blkid.h, cache.c, dev.c, devname.c, devno.c, probe.c, probe.h,
394                 read.c, resolve.c, save.c, tag.c: Fix gcc -Wall nits.
395
396 2003-01-24  Theodore Ts'o  <tytso@mit.edu>
397
398         * save.c (blkid_save_cache): Use mkstemp() instead mktemp().
399
400 2002-10-04  Jordan Breeding  <jordan.breeding@attbi.com>
401
402         * Forward port to e2fsprogs 1.30
403
404 2001-09-20  Andreas Dilger  <adilger@turbolinux.com>
405
406         * Initial release of libblkid.