History log of /external/e2fsprogs/lib/blkid/tag.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
18a1444b4f1e6a0948fd38fa0de382d86cfe04de 31-Dec-2013 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Add files that would normally be generated by the e2fsprogs build system

Android doesn't run ./configure and friends, so it has to rely on
pre-populated versions of the autogenerated files.

This is somewhat bogus (e.g. hardcoded little-endian reference in
lib/ext2fs/ext2_types.h) and should at some point be fixed, but it's
what Android has always done, not a regression from the 1.41.14 branch.

Also, don't #include config.h which we don't generate (we pass what it
usually contains as -D parameters from Android.mk) anywhere.

Add a new Android.mk file for the quota library.

Change-Id: I162c6327fee5bd06261d9cdcc34bda10f04a6f21
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/external/e2fsprogs/lib/blkid/tag.c
d1154eb460efe588eaed3d439c1caaca149fa362 18-Sep-2011 Theodore Ts'o <tytso@mit.edu> Shorten compile commands run by the build system

The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and
this was starting to cause some tools heartburn. It also made "make
V=1" almost useless, since trying to following the individual commands
run by make was lost in the noise of all of the defines.

So fix this by putting the configure-generated defines in lib/config.h
and the directory pathnames to lib/dirpaths.h.

In addition, clean up some vestigal defines in configure.in and in the
Makefiles to further shorten the cc command lines.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
45e338f5332a54295893dba2e32cc093d1316f60 23-Feb-2009 Jim Meyering <jim@meyering.net> remove useless if-before-free tests

In case you're wondering about whether this change is safe from a
portability standpoint, fear not. This has been beaten to death
in other forums. Here are a few threads:

http://thread.gmane.org/gmane.comp.version-control.git/74187
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/12712
http://thread.gmane.org/gmane.emacs.devel/98144
http://thread.gmane.org/gmane.comp.lib.glibc.alpha/13092

There has been debate about whether it's a good idea from a
performance standpoint, too, but imho you'll have a hard time
finding an instance where this sort of change induces a
measurable performance penalty. If you do, please let me know.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
efc6f628e15de95bcd13e4f0ee223cb42115d520 28-Aug-2008 Theodore Ts'o <tytso@mit.edu> Remove trailing whitespace for the entire source tree

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
b697f9d01c5f07842426f7d8e918bf3110028662 29-Jun-2008 Theodore Ts'o <tytso@mit.edu> blkid: Make sure a device returned by blkid_find_dev_with_tag exists

There could be stale entries in blkid file, so if the device does not
exist, skip it.

Addresses-Debian-Bug: #487758, #487783

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
ac7dd696d60a2cb6d27c2c4855fefc7b26a26d72 08-Jul-2007 Theodore Ts'o <tytso@mit.edu> Fix bug which could cause libblkid to loop forever

When revalidating a partition where there is obsolete information in
/etc/blkid.tab, we end up freeing a the type tag without clearing
dev->bid_type, causing blkid_verify() to loop forever.

Addresses-Debian-Bug: #432052

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
6fb57a92d19696c123d02d89cfa1f1e6703dfc32 19-May-2007 Theodore Ts'o <tytso@mit.edu> libblkid: Fix bug which could cuase bid_type to be corrupted

Fortunately bid_type isn't used much, and bid_label and bid_uuid is
only used by debugging code, so the impact of this bug was very
minor.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
d90be5b1437b839e5f1afcee7073798d833e4534 18-Mar-2007 Theodore Ts'o <tytso@mit.edu> [COVERITY] Allow blkid_dev_has_tag to check if a tag exists when value==NULL

blkid_dev_has_tag() will immediately return -1 (an error if value is
NULL. Thus at the test later on value cannot be NULL. There are two
possible ways to go about fixing this. The first would be to remove the
first NULL check for value. The second one would be to remove the
second check (and the deadcode).

I chose the second path because the functionality added is something
which a programmer could reasonably expect given the function name, and
it is highly unlikely any existing code is depending on the fact that
blkid_dev_has_tag() will return an error if value is NULL.

Coverity ID: 3: Deadcode

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
12a829dcdc57fb8ddc4887b07b40136288b6e7fe 30-May-2006 Matthias Andree <matthias.andree@gmx.de> Add a bunch of type fixes for debug/"make check" code paths.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
/external/e2fsprogs/lib/blkid/tag.c
ba5e38494e6b42d77f76d9ad18744388958eca7c 11-Mar-2006 Theodore Ts'o <tytso@mit.edu> Add EXT_JOURNAL to the blkid tag of ext3 filesystems.

If the filesystem has an external journal, store the UUID of the
external journal in the tag EXT_JOURNAL.

If the filesystem type has changed, clear all the tags on the device,
not just a preset list of LABEL, UUID, TYPE, and SEC_TYPE.

Fix a bug so that blkid_set_tag will work correctly when freeing a tag
when the input name parameter comes from the tag that we are freeing.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
438961210d6b3231deb934009447867b4c1570f3 29-Dec-2005 Theodore Ts'o <tytso@mit.edu> Add missing parameter to error printf in blkid test program.

The blkid tag.c's test driver program had a missing parameter to an
error message printf.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/tag.c
ed6acfa337ca74912079b85196cf1263f6daf1a2 07-May-2005 Theodore Ts'o <tytso@mit.edu> Add a new option to the blkid program, -l, which will more efficiently search
for a single device.

Add a new function to the blkid library, blkid_probe_all_new().

Optimize blkid_find_dev_with_tag() so that extraneous device validation are
skipped. (Makes a difference for system with a large number of disks).
/external/e2fsprogs/lib/blkid/tag.c
78c7d0efae91cde1a992f69c1a0157b39e971670 07-May-2005 Theodore Ts'o <tytso@mit.edu> Clean up the debugging code in the blkid library so that we don't use
the inline functions DEB_DUMP_* and instead use the private functions
blkid_debug_dump_*().
/external/e2fsprogs/lib/blkid/tag.c
c37543df2f58f454c29fece5997bd0e9d6ee7533 07-May-2005 Theodore Ts'o <tytso@mit.edu> Add new two new functions to the blkid library: blkid_dev_set_search(), and
blkid_dev_has_tag(), and change the blkid program to take advantage of these
functions.
/external/e2fsprogs/lib/blkid/tag.c
18d12963335b04a402d097af1d714e8708805ada 28-Jan-2005 Theodore Ts'o <tytso@mit.edu> blkid.c (main, compare_search_type): Make blkid -t work more
consistently when the blkid cache file is explicitly set
to /dev/null. (Addresses Debian Bug #292425)

Also expose blkid_verify() as a public function to the blkid library.
/external/e2fsprogs/lib/blkid/tag.c
849c6102507c93ca96efa68c0e575514e7560467 19-Jul-2003 Theodore Ts'o <tytso@mit.edu> tag.c (blkid_find_dev_with_tag): If blkid_probe_all() returns an
error, then reflect that error upwards; don't try again
(forever). This prevents an infinite loop when /proc and
the /etc/blkid.tab file are not present.
/external/e2fsprogs/lib/blkid/tag.c
7e89304878045b35c811201b04d3efd38916dbd1 02-Mar-2003 Theodore Ts'o <tytso@mit.edu> tag.c (blkid_set_tag): Fix bug; don't return an error when
deleting a tag by setting the value to NULL. This
caused a failed device verification to loop forever in
blkid_verify_devname().
/external/e2fsprogs/lib/blkid/tag.c
79dd234a799434b6dc8365c49e743f00eb09d2fd 22-Feb-2003 Theodore Ts'o <tytso@mit.edu> Internal changes to the blkid library:

1) Only one tag with a particular name can be attached to a device
at a time. This significantly simplifies the library, and was needed
to allow the cache file to be re-read and changes integrated into the
in-core version of the data structure in a simpler fashion than earlier
versions of the library.

2) To accomodate this, the ext2/ext3 filesystems are now always tagged
as "ext2" type filesystems. Ext3 filesystems are tagged with a
SEC_TYPE tag with the value ext3.

3) The new blkid_read_cache() function checks the mod time of the
cache file, and if the file has been changed since the last time the
cache file was read into memory, it is re-read. This function is now
called before probing all of the devices in the system or searching
all devices in the cache for a specific tag value.

4) After probing all devices, blkid_flush_cache() is called to write
out the cache file. This assures that all of the hard work involved
in doing a blkid_probe_all() is saved to disk.
/external/e2fsprogs/lib/blkid/tag.c
f0a22d0fd3ec3f45b562af5afba8811f72b94a28 22-Feb-2003 Theodore Ts'o <tytso@mit.edu> Add dynamic debugging capabilities to the blkid library,
controlled by the environment variable BLKID_DEBUG. The debugging
code is enabled by a new configuration option, --enable-blkid-debug.
/external/e2fsprogs/lib/blkid/tag.c
ce72b862c59da24ba16b354d687549276a24f908 14-Feb-2003 Theodore Ts'o <tytso@mit.edu> Add a priority label to the device structure, so we can give
preference to EVMS and LVM devices when searching for a device
matching a particular LABEL or UUID in the blkid library.
/external/e2fsprogs/lib/blkid/tag.c
50b380b4d4ab668bad45033e3a8aaf93c7f42844 13-Feb-2003 Theodore Ts'o <tytso@mit.edu> Wholesale changes to blkid library to simplify the implementation
and shrink its size. Change library version to be 1.0.
/external/e2fsprogs/lib/blkid/tag.c
76b07bb1bc9cbcb70a94cb235954eaac993920ad 27-Jan-2003 Theodore Ts'o <tytso@mit.edu> Roto-till and clean up libblkid API.


read.c (parse_tag): Do not return that blkid_tag when parsing
the blkid.tag file.

resolve.c (blkid_get_token, blkid_get_tagname_devname): Fold in
code from removed functions

tag.c (blkid_create_tag): Don't return the newly tag strcture
any more, as it's not needed.
(blkid_find_tag_cache, blkid_get_tag_cache,
blkid_token_to_tag, blkid_find_tv_tags): Remove these
functions, as they are either only used once or have
interfaces that should be deprecated.
(blkid_find_tag_dev, blkid_find_head_cache): Replace use
of blkid_tag with one or two const char * type/value
arguments.
(blkid_find_dev_with_tag): Fold in code from removed functions

probe.h, probe.c: Use a more sophisticated set of byte-swapping
routines which are more compact and efficient. Drop
calculation of bid_free, since it's unnecessary. Avoid

save.c (blkid_save_cache): Set the permissions on the blkid
cache file to 644.
/external/e2fsprogs/lib/blkid/tag.c
7a603aa89fcffb8798eca34ca3858db6f0393046 26-Jan-2003 Theodore Ts'o <tytso@mit.edu> Separate public and private interfaces into separate header files.
Start separating internal implementation details from the
publically exported interface of the blkid library.
/external/e2fsprogs/lib/blkid/tag.c
d3f917989badf78d1f97654e46d60d1f3d25cd17 25-Jan-2003 Theodore Ts'o <tytso@mit.edu> Fix gcc -Wall nits.
/external/e2fsprogs/lib/blkid/tag.c
e12f2ae74c2eb8997bf13adf8fdd7e7313971eae 23-Jan-2003 Theodore Ts'o <tytso@mit.edu> Integrate new blkid library.
/external/e2fsprogs/lib/blkid/tag.c