434413ccde34a56dd29996786dabbd02f70aa4c8 |
|
08-Jun-2016 |
Matthias Andree <matthias.andree@gmx.de> |
libblkid: avoid DIOCGDINFO where missing. FreeBSD 11 will remove the DIOCGINFO ioctl(), so check if it is defined before referencing it. Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.c
|
f1644c324bd6bc0ed8f48275d64ccde4ce13a044 |
|
13-Jul-2015 |
Theodore Ts'o <tytso@mit.edu> |
Eliminate doubly defined _LARGEFILE_SOURCE warning Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.c
|
51050544b5bf5d4a39b5ea06e8c808df0c7b267c |
|
11-Jun-2014 |
Andreas Dilger <adilger@dilger.ca> |
blkid: remove unnecessary header and comment The LIST_HEAD macro is not directly used in getsize.c, so <sys/queue.h> is not needed at all, and could cause confusion at some later point if the Linux-style list macros are ever used. Build was verified on MacOS which defined HAVE_SYS_DISK_H true. I manually inspected the sources for recent *BSD headers to check if this was needed there or not. MacOS and FreeBSD <sys/disk.h> do not use lists at all. NetBSD and OpenBSD <sys/disk.h> and all of the <sys/mount.h> headers include <sys/queue.h> internally. I used http://fxr.watson.org/fxr/source/sys/mount.h?v={OSTYPE} as a reference, checking both old and new *BSD versions. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.c
|
45ff69ffeb700012a7c052f5e45882557a40be7e |
|
16-Dec-2013 |
Andreas Dilger <adilger@dilger.ca> |
build: quiet LLVM non-literal string format warning Compiling with LLVM generates a large number of warnings due to the use of _() for wrapping strings for i18n: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ./nls-enable.h:4:14: note: expanded from macro '_' #define _(a) (gettext (a)) ^~~~~~~~~~~~ These warnings are fixed by using "%s" as the format string, and then _() is used as the string argument. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.c
|
3e554cc116a55c9fffe17f4e819d5f2ecf8ad0af |
|
23-Nov-2012 |
Andreas Dilger <adilger@dilger.ca> |
ext2fs, blkid: localize environment-specific variables Restructure the ext2fs_get_device_size() and blkid_get_dev_size() code to localize the variables used for different device probing methods. This at least reduces the #ifdef mess to only one part of the code for each method, and avoids "unused variable" compiler warnings added when variables are declared without being #ifdef'd. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.c
|
7270fbe7fa51cbce01a07d031f03872f314206d1 |
|
24-Feb-2012 |
Andreas Dilger <adilger@whamcloud.com> |
build: fix compile warnings on OSX Clean up some compile warnings related to fstat64(), which is verbosely deprecated on OSX. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.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/getsize.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/getsize.c
|
a98b51e9dd0384d37a4721d52f5f36a15c2ac94a |
|
04-Aug-2007 |
Theodore Ts'o <tytso@mit.edu> |
Miscellaneous Cleanups Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: Girish Shilamkar <girish@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.c
|
de8f3a76218255e443ba57dec5d74850180fa75d |
|
25-May-2007 |
Andreas Dilger <adilger@clusterfs.com> |
Fix gcc -Wall warnings, especially on 64-bit systems Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/getsize.c
|
9a519c0284de70baadfe39e773c369c378aae6a6 |
|
21-Jun-2006 |
Andreas Dilger <adilger@clusterfs.com> |
fix comment for blkid_get_dev_size() Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
/external/e2fsprogs/lib/blkid/getsize.c
|
a0dfc6ea8c28c639e4ec7d49d7c5251d1d6e7a9d |
|
30-May-2006 |
Matthias Andree <matthias.andree@gmx.de> |
Revise DIOCGDINFO (sys/disklabel.h) related FreeBSD comment. Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
/external/e2fsprogs/lib/blkid/getsize.c
|
5beaabb0f88e3fb2a4b3617fed9ac76f7a60f440 |
|
30-May-2006 |
Matthias Andree <matthias.andree@gmx.de> |
Enable sys/disklabel.h and DIOCGDINFO based getsize code. Tested on FreeBSD 4.11-RELEASE i386. Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
/external/e2fsprogs/lib/blkid/getsize.c
|
f72b8ff09837d6e495d604b6eef4f4e732193df9 |
|
30-May-2006 |
Matthias Andree <matthias.andree@gmx.de> |
Implement DIOCGMEDIASIZE for FreeBSD's GEOM. Try DIOCGMEDIASIZE ioctl() if defined, to obtain the media size on FreeBSD 5.0 and newer. The binary search fallback doesn't work, as FreeBSD block devices are unbuffered and refuse reads below the block size. Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
/external/e2fsprogs/lib/blkid/getsize.c
|
9b7d811ddad946e728d9348a78cb06dee159df96 |
|
10-Jul-2005 |
Andreas Dilger <adilger@clusterfs.com> |
This patch adds a check to use fstat or fstat64 in getsize.c if the target is a regular file, instead of doing binary searching. It also fixes a couple of cases where a file descriptor is leaked in the ext2fs_getsize() routine on error. Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
/external/e2fsprogs/lib/blkid/getsize.c
|
b22ea17742b3e354c3ee1372d43630dda21a59f5 |
|
17-Mar-2005 |
Theodore Ts'o <tytso@mit.edu> |
getsize.c (blkid_get_dev_size): Fix compilation problem on Darwin systems.
/external/e2fsprogs/lib/blkid/getsize.c
|
f892826b8d25369ea513dd8d1c7e714f23dabf99 |
|
13-Jan-2005 |
Matthias Andree <matthias.andree@gmx.de> |
lib/blkid/getsize.c: Move #include "blkidP.h" before <sys/queues.h> to avoid a clash with the LIST_HEAD in the latter file that results in compilation failure.
/external/e2fsprogs/lib/blkid/getsize.c
|
9845cf5dbd4d06ebc1fe0db99078d7a0be641e0a |
|
18-Sep-2004 |
Theodore Ts'o <tytso@mit.edu> |
Clean up the header file #include's for lib/blkid/getsize.c and lib/ext2fs/getsize.c In lib/blkid/getsize.c, include <sys/disk.h> if present since this is where the DIOCGMEDIASIZE ioctl is defined on FreeBSD. (Addresses Debian Bug #264630)
/external/e2fsprogs/lib/blkid/getsize.c
|
1cdb6f760215b36709aa434ba9b24720b6d2872f |
|
22-Mar-2004 |
Theodore Ts'o <tytso@mit.edu> |
Don't close the file descriptor when determining the size. This bug was introduced in the previous getsize changes, and was screwing up the blkid library probe functions. (Addresses Debian Bug #239191)
/external/e2fsprogs/lib/blkid/getsize.c
|
2c5cfbcb99f70d90f8e679bd2994b263ca6d11d6 |
|
08-Mar-2004 |
Theodore Ts'o <tytso@mit.edu> |
Only use the BLKGETSIZE64 ioctl on Linux 2.6 since it is unreliable in Linux 2.4. (Addresses Debian Bug #236528). Fix typo in the ioctl used for Mac OS X.
/external/e2fsprogs/lib/blkid/getsize.c
|
85b870034437e590e4aca77e325f3f5d6815eb39 |
|
02-Mar-2004 |
Theodore Ts'o <tytso@mit.edu> |
Update getsize functions to use the Apple Darwin and Linux 64-bit ioctl's.
/external/e2fsprogs/lib/blkid/getsize.c
|
0faabe5dea669fdc595041fe5fae16c70958bdad |
|
31-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
getsize.c: #include stat.h for the Apple Darwin port
/external/e2fsprogs/lib/blkid/getsize.c
|
aa75ecccab67ea7428fc19c66e80a28fb1ca941f |
|
17-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix the Apple Darwin port.
/external/e2fsprogs/lib/blkid/getsize.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/getsize.c
|
e12f2ae74c2eb8997bf13adf8fdd7e7313971eae |
|
23-Jan-2003 |
Theodore Ts'o <tytso@mit.edu> |
Integrate new blkid library.
/external/e2fsprogs/lib/blkid/getsize.c
|