Whamcloud - gitweb
Fixx gcc -Wall nitpicks.
[tools/e2fsprogs.git] / lib / blkid / ChangeLog
1 2003-07-06  Theodore Ts'o  <tytso@mit.edu>
2
3         * blkid_types.h.in: Fix gcc -Wall nitpicks (don't use #elsif)
4
5         * cache.c: Fix gcc -Wall nitpicks (missing #include <string.h>)
6
7         * probe.h: Fix gcc -Wall nitpicks (missing casts)
8
9 2003-05-21  Theodore Ts'o  <tytso@mit.edu>
10
11         * Makefile.in (ELF_OTHER_LIBS): The blkid library depends on the
12                 uuid library.  (Addresses Debian bug: #194094)
13
14 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
15
16         * Release of E2fsprogs 1.33
17
18 2003-04-19  Theodore Ts'o  <tytso@mit.edu>
19
20         * blkidP.h: Fix gcc -Wall warnings by using __inline__ instead of
21                 inline. 
22
23 2003-04-02  Theodore Ts'o  <tytso@mit.edu>
24
25         * probe.c, probe.h: Fix XFS superblock definition.  Add support to
26                 extract UUID and labels for JFS and romfs.  (Thanks to
27                 Janos Farkas <chexum@acomp.hu>.)
28
29 2003-03-30  Theodore Ts'o  <tytso@mit.edu>
30
31         * getsize.c: #include stat.h for the Apple Darwin port
32
33 2003-03-17  Theodore Ts'o  <tytso@mit.edu>
34
35         * cache.c: Initialize blkid_debug_mask to zero since some
36                 operating systems can't deal with variables in the common
37                 section in shared libraries.
38  
39         * getsize.c (blkid_get_dev_size): Fix Apple Darwin port.
40
41 2003-03-06    <tytso@mit.edu>
42
43         * devname.c (probe_one): Fix bug; if a partition has no known
44                 type, don't derference a null pointer and crash.
45
46 2003-03-06  Theodore Tso  <tytso@mit.edu>
47
48         * blkid_types.h.in: Don't redefine types if other e2fsprogs
49                 *_types.h files have been included already.
50
51         * list.h, probe.h: Use static inline instead of extern inline to
52                 comply with C99 inline support.
53
54         * devname.c (blkid_probe_all): Avoid GCC extension; don't
55                 initialize an array with the address of an automatic
56                 variable.
57
58         * Makefile.in: Eliminate -Wall as a C compiler option by default;
59                 it's not portable.
60
61 2003-03-02  Theodore Ts'o  <tytso@mit.edu>
62
63         * Makefile.in: Don't install list.h, since it's not used by the
64                 public blkid.h file.
65
66         * blkid_types.h.in: Change #ifndef protection to use _BLKID_TYPES_H
67
68 2003-03-01  Theodore Ts'o  <tytso@mit.edu>
69
70         * tag.c (blkid_set_tag): Fix bug; don't return an error when
71                 deleting a tag by setting the value to NULL.  This
72                 caused a failed device verification to loop forever in
73                 blkid_verify_devname().
74
75         * resolve.c (main): Update debugging test program so that it
76                 compiles with the latest blkid API changes.
77
78         * libblkid.3.in: Update manual page to reflect recent API changes.
79
80         * resolve.c (blkid_get_tag_value): If the passed-in cache is NULL,
81                 then get and release a temporary cache as a convenience to
82                 the calling application.
83                 (blkid_get_devname): If the passed in token does not
84                 contain an '=', and value is NULL, then return the passed
85                 in token.
86
87         * read.c (blkid_read_cache): Don't return 0 since blkid_read_cache
88                 now returns void.
89
90         * blkid.h: Add include of sys/types.h, since we use dev_t
91
92 2003-02-27  Theodore Ts'o  <tytso@mit.edu>
93
94         * resolve.c (blkid_get_tag_value): Rename function (used to be
95                 blkid_get_tagname_devname)
96
97 2003-02-22  Theodore Ts'o  <tytso@mit.edu>
98
99         * devname.c (blkid_probe_all), tag.c (blkid_find_dev_with_tag): 
100                 Call blkid_read_cache to make sure the in-core version of
101                 the data structure is the latest.  After probing all of
102                 the devices in blkid_probe_all() force the cache file to
103                 be written out, the probe_all represents a lot of effort
104                 that shouldn't be lost.
105
106         * tag.c (blkid_set_tag): Always replace an existing tag with the
107                 new value; we no longer suppor multiple tags with the same
108                 value attached to a device, as this was never really
109                 supported well, and significantly increased the code
110                 complexity.
111
112         * probe.c (probe_ext2): Change handling of ext2/ext3 filesystems.
113                 Ext3 filesystems are now always treated as ext2
114                 filesystems, with a special SEC_TYPE tag set to ext3.
115                 This was necessary because we now longer support multiple
116                 tags with the same name attached to a device.
117
118         * save.c (save_dev): Don't special case the TYPE tag; just write
119                 it out along with all of the normal tags.
120                 (blkid_flush_cache): Eliminate special case code for stdout.
121
122         * cache.c (blkid_new_cache, blkid_get_cache): Eliminate
123                 blkid_new_cache and fold into blkid_get_cache (moved to
124                 cache.c)
125
126         * read.c (blkid_read_cache): New function created from
127                 blkid_get_cache which used to be in read.c that only
128                 updates the in-core cache data structure from the file.
129                 Uses the file modification time of the cache file to
130                 determine whether the cache file needs to be re-read.
131
132         * cache.c, dev.c, devname.c, devno.c, probe.c, read.c, resolve.c,
133                 save.c, tag.c, blkidP.h: Add dynamic debugging
134                 capabilities, controlled by the environment variable
135                 BLKID_DEBUG. 
136
137 2003-02-16  Theodore Ts'o  <tytso@mit.edu>
138
139         * blkid.h, dev.c, devname.c, probe.c, read.c, resolve.c: Rename
140                 blkid_get_devname() to blkid_get_dev().  Also rename
141                 blkid_get_token() to blkid_get_devname().  This more
142                 accurately describes what these functions do.
143
144 2003-02-14  Theodore Ts'o  <tytso@mit.edu>
145
146         * blkidP.h, devname.c (blkid_get_devname), read.c (parse_tag),
147                 save.c (save_dev): Remove bid_id, as it is not used for
148                 anything.
149
150         * Makefile.in (blkid): When building the blkid, don't link against
151                 the shared blkid library; link only against the static
152                 blkid library.
153
154         * blkidP.h (struct blkid_struct_dev): Remove bid_size and
155                 bid_devsize (since they aren't used any more) and add
156                 bid_pri to the device structure.
157
158         * devname.c (probe_one, lvm_probe_all, evms_probe_all,
159                 blkid_probe_all): Set the bid_pri filed in the device
160                 structure depending on type of device so that EVMS, LVM,
161                 and MD devices get priority over normal devices.
162
163         * tag.c (blkid_find_dev_with_tag): When looking for a device that
164                 matches the search criteria, return the one with the
165                 largest priority (bid_pri).
166
167         * save.c (save_dev): Write out the PRI tag from bid_pri.
168
169         * read.c (parse_tag): Parse the PRI tag and store its value in
170                 bid_pri.
171
172         * probe.c (blkid_verify_devname): If the device does not exist
173                 (open returns ENOENT), treat this as a fatal error and
174                 release the device.  After verifying the device, set the
175                 cache as being modified so the changes are written out.
176
177         * resolve.c (main): Change the test driver to get a blkid cache
178                 and pass it to blkid_get_tagname_devname and
179                 blkid_get_token, as the cache is no longer optional.
180
181 2003-02-12  Theodore Ts'o  <tytso@mit.edu>
182
183         * blkid.h, blkidP.h, cache.c, dev.c, devname.c, devno.c, probe.c,
184                 probe.h, read.c, resolve.c, save.c, tag.c: Wholesale
185                 changes to library to simplify the implementation and
186                 shrink its size.  Change library version to be 1.0.
187
188 2003-01-27  Theodore Ts'o  <tytso@mit.edu>
189
190         * read.c (parse_tag): Do not return that blkid_tag when parsing
191                 the blkid.tag file.
192
193         * resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in
194                 code from removed functions
195
196         * tag.c (blkid_create_tag): Don't return the newly tag strcture
197                 any more, as it's not needed.
198                 (blkid_find_tag_cache, blkid_get_tag_cache,
199                  blkid_token_to_tag, blkid_find_tv_tags): Remove these 
200                 functions, as they are either only used once or have
201                 interfaces that should be deprecated.
202                 (blkid_find_tag_dev, blkid_find_head_cache): Replace use
203                 of blkid_tag with one or two const char * type/value
204                 arguments.
205                 (blkid_find_dev_with_tag): Fold in code from removed functions
206
207         * probe.h, probe.c: Use a more sophisticated set of byte-swapping
208                 routines which are more compact and efficient.  Drop
209                 calculation of bid_free, since it's unnecessary.  Avoid 
210
211         * save.c (blkid_save_cache): Set the permissions on the blkid
212                 cache file to 644.
213         
214 2003-01-25  Theodore Ts'o  <tytso@mit.edu>
215
216         * cache.c, dev.c, devname.c, devno.c, getsize.c, llseek.c, 
217                 probe.c, probe.h, read.c, resolve.c, save.c, tag.c, 
218                 blkid.h, blkidP.h: Separate public and private
219                 interfaces into separate header files.  Start
220                 separating internal implementation details from the
221                 publically exported interface.
222
223         * devname.c: Add support for EVMS
224
225         * blkid.h, cache.c, dev.c, devname.c, devno.c, probe.c, probe.h,
226                 read.c, resolve.c, save.c, tag.c: Fix gcc -Wall nits.
227
228 2003-01-24  Theodore Ts'o  <tytso@mit.edu>
229
230         * save.c (blkid_save_cache): Use mkstemp() instead mktemp().
231
232 2002-10-04  Jordan Breeding  <jordan.breeding@attbi.com>
233
234         * Forward port to e2fsprogs 1.30
235
236 2001-09-20  Andreas Dilger  <adilger@turbolinux.com>
237
238         * Initial release of libblkid.