summaryrefslogtreecommitdiff
path: root/lib/ext2fs/tdb.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-09libext2fs: change getpagesize to sysconfMike Frysinger1-5/+1
Newer versions of glibc no longer export the getpagesize() prototype when using recent versions of POSIX (_XOPEN_SOURCE). So building tdb.c gives use implicit function declaration warnings. Fix the issue by using the portable sysconf() function which returns the same answer. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-11-29e2fsck: speed up runs when using tdb for large atypical filesystemsTheodore Ts'o1-4/+4
Optimize how the tdb library so that running with [scratch_files] in /etc/e2fsck.conf is more efficient. Use a better hash function, supplied by Rogier Wolff, and supply an estimate of the size of the hash table to tdb_open instead of using the default (which is way too small in most cases). Also, disable the tdb locking and fsync calls, since it's not necessary for our use in this case (which is essentially as cheap swap space; the tdb files do not contain persistent data.) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-11-28configure: check for msync() for portability reasonsTheodore Ts'o1-1/+1
Turns out the Hurd defines MS_SYNC but doesn't define msync(). Go figure. So check for both. Reported by Svante Signell. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-11-05libext2fs: don't leak tdb_null out of the shared library namespaceTheodore Ts'o1-2/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-18Shorten compile commands run by the build systemTheodore Ts'o1-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>
2008-08-27Remove trailing whitespace for the entire source treeTheodore Ts'o1-111/+111
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-13Define _XOPEN_SOURCE to 600 consistently for Solaris C99 supportTheodore Ts'o1-1/+1
Solaris's header files are very picky about which C compiler can be used for SUSv3 conformance. Use of C99 is not compatible with SUSv2 (_XOPEN_SOURCE=500), and C89 is not compatible with SUSv3 (_XOPEN_SOURCE=600). Since we need some SUSv3 functions, consistently use SUSv3 so that e2fsprogs will build on Solaris using c99. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-17Update to latest samba tdb library before LGPLv3 changeTheodore Ts'o1-54/+213
The major changes were: * Fix realloc() leak on failure case from Jim Meyering * Fixed various problems in transaction lock code * Made transaction_brlock() static * Added more fine-grained locking features Moved from svn revision #22080 to #23590 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-17Add portability checks to support DJGPPChristophe GRENIER1-0/+2
DJGPP lacks sys/select.h and sys/un.h; add header checks to be more portable. Signed-off-by: Christophe Grenier <grenier@cgsecurity.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2007-04-04Add tdb from Samba into libext2fs library.Theodore Ts'o1-0/+3982
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>