aboutsummaryrefslogtreecommitdiffstats
path: root/lib/blkid/cache.c
Commit message (Collapse)AuthorAgeFilesLines
* Switch back to 1.42.9 now that there is a fixJP Abgrall2014-03-191-1/+6
| | | | | | Revert "Revert changes that moved from 1.41.14 to 1.42.9" This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
* Revert changes that moved from 1.41.14 to 1.42.9JP Abgrall2014-03-061-6/+1
| | | | | | | | | | | | | | | | Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H" commit e80e74c41d85ff93f3d212ba6512340f48054a93. Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master" This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Revert "Prepare for upstream 1.42.9" This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Bug: 13340735 Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8 Signed-off-by: JP Abgrall <jpa@google.com>
* Add files that would normally be generated by the e2fsprogs build systemBernhard Rosenkränzer2014-01-051-1/+0
| | | | | | | | | | | | | | | | | 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>
* Try to use secure_getenv() in preference to __secure_getenv()Theodore Ts'o2013-06-161-1/+6
| | | | | | | | | If secure_getenv() use it in preference to __secure_getenv(). Starting with (e)glibc version 2.17, secure_getenv() exists, while __secure_getenv() only works with shared library links (where it is a weak symbol), but not for static links with /lib/libc.a Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Shorten compile commands run by the build systemTheodore Ts'o2011-09-181-0/+1
| | | | | | | | | | | | | | | 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>
* remove useless if-before-free testsJim Meyering2009-03-081-2/+1
| | | | | | | | | | | | | | | | | | | 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>
* Remove trailing whitespace for the entire source treeTheodore Ts'o2008-08-271-8/+8
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* blkid: use list_for_each_safe in garbage collectionEric Sandeen2008-06-281-2/+2
| | | | | | | | | | | | | We need to use list_for_each_safe in case a device gets removed from the list during garbage collection. Also make the manpage slightly more informative about what the -g garbage collection option does. Addresses-Debian-Bug: #487758, #487783 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Add new function blkid_gc_cache()Theodore Ts'o2007-05-181-0/+28
| | | | | | | New function which performs a garbage collection pass on the /etc/blkid.tab file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Fix false positives from valgrind: prctl(PR_GET_DUMPABLE)Theodore Ts'o2005-07-251-2/+2
| | | | | | | | | Pass in zero to the unusued arguments of prctl(PR_GET_DUMPABLE) to avoid false positives from valgrind. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Fix gcc -Wall nits in the blkid library.Theodore Ts'o2005-05-071-2/+2
|
* Clean up the debugging code in the blkid library so that we don't use Theodore Ts'o2005-05-071-1/+21
| | | | | | the inline functions DEB_DUMP_* and instead use the private functions blkid_debug_dump_*().
* Fix typo so that we actually ignore environment variables when gid != egid.Theodore Ts'o2005-04-161-1/+1
|
* Add paranoia checks into the blkid, ext2fs, and ss libraries to ignoreTheodore Ts'o2005-04-061-2/+38
| | | | | | | | | | environment variables if the libraries are called from setuid or setguid programs, or if kernel believes that the process is not eligible to create a core dump. In addition, if the libc has __secure_getenv(), use it so that the libc can also do any additional limitations regarding when libraries can trust environment variables (i.e., to integrate with systems like SELinux and Posix capabilities).
* Ignore the BLKID_FILE environment variable if blkid_get_cache() is Theodore Ts'o2005-03-211-1/+1
| | | | | called from a setuid program.
* In the blkid library, if the BLKID_FILE environmentTheodore Ts'o2004-04-121-1/+5
| | | | | | variable is set, use it to find the blkid.tab file if the calling application did not supply a filename.
* Fixx gcc -Wall nitpicks.Theodore Ts'o2003-07-061-0/+1
|
* cache.c: Initialize blkid_debug_mask to zero since someTheodore Ts'o2003-03-171-1/+1
| | | | | | operating systems can't deal with variables in the common section in shared libraries.
* Internal changes to the blkid library:Theodore Ts'o2003-02-221-6/+15
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add dynamic debugging capabilities to the blkid library, Theodore Ts'o2003-02-221-9/+17
| | | | | | controlled by the environment variable BLKID_DEBUG. The debugging code is enabled by a new configuration option, --enable-blkid-debug.
* Wholesale changes to blkid library to simplify the implementation Theodore Ts'o2003-02-121-7/+17
| | | | | and shrink its size. Change library version to be 1.0.
* Separate public and private interfaces into separate header files.Theodore Ts'o2003-01-261-11/+14
| | | | | | Start separating internal implementation details from the publically exported interface of the blkid library.
* Fix gcc -Wall nits.Theodore Ts'o2003-01-251-5/+5
|
* Integrate new blkid library.Theodore Ts'o2003-01-231-0/+90