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