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