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/devname.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/devname.c
|
46f3eeca59a1fc8233790bbed604e4634e0f3fbe |
|
27-Apr-2009 |
Karel Zak <kzak@redhat.com> |
blkid: use /sys/block/dm-<N>/dm/name The Linux kernel (since 2.6.29, patch 784aae735d9b0bba3f8b9faef4c8b30df3bf0128) exports the real DM device names in /sys/block/<ptname>/dm/name. The sysfs based solution is nicer and faster than scan for devno in /dev/mapper/. CC: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
4271e23942bdc60e1fa6c0b26bc666a94a8b3e1d |
|
27-Apr-2009 |
Karel Zak <kzak@redhat.com> |
blkid: use /dev/mapper/<name> rather than /dev/dm-<N> The libblkid (since v1.41.1) returns private device-mapper names (e.g. /dev/dm-0). It's because the probe_one() function scans /dev before /dev/mapper. brw-rw---- 1 root disk 253, 0 2009-04-27 13:41 /dev/dm-0 brw-rw---- 1 root disk 253, 0 2009-04-27 13:41 /dev/mapper/TestVolGroup-TestLogVolume Old version: # blkid -t LABEL="TEST-LABEL" -o device /dev/dm-0 Fixed version: # blkid -t LABEL="TEST-LABEL" -o device /dev/mapper/TestVolGroup-TestLogVolume Addresses-Red-Hat-Bug: #497259 Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
4e60e06847c781efffc8c43342b7756bbe5cff45 |
|
23-Apr-2009 |
Eric Sandeen <sandeen@redhat.com> |
blkid: remove whole-disk entries from cache when partitions are found We can get into a situation in blkid where whole disks remain in the cache, even though partitions are found. For labels such as sun disklabels which may have the first partition beginning at sector 0, this is even somewhat likely. 1) create a sun disklabel w/partitions 2) mkfs the first partition (at sector 0) 3) remove the partition table 4) run blkid - this finds the fs on the whole disk, places in cache 5) recreate the partition table 6) run blkid - this finds the partition, places in cache And now we have both /dev/sda and /dev/sda1 in cache. There are heuristics in probe_all to avoid putting the whole disk in cache if it has partitions, but there is nothing to remove the whole-disk entry in the above case. I think the below patch suffices, although I haven't quite convinced myself that setting the lens[which]=0; is the right logic for that bit of state... Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
fe144e11e961a8fb2c568f486bd5bcd49582e24f |
|
18-Oct-2008 |
Theodore Ts'o <tytso@mit.edu> |
libblkid: Refuse to create a device structure for a non-existent device Fix blkid_get_dev() so it will never return a device structure if the device file doesn't exist. Addresses-Debian-Bug: #502541 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.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/devname.c
|
e6baebd2a9b205c2eaf8de0807e75bfba7061cad |
|
27-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
libblkid: Give a priority bonus to "leaf" devicemapper devices Give a boost to dm devices which are not used to build other dm devices, since "leaf" devices are generally more likely to be interesting as devices to mount. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
7515a7447836708241b2b30ca7d70d1257265e75 |
|
27-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
Remove use of devmapper library by the blkid library The devmapper library is no longer needed given commit f4e89bcd. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
f4e89bcdf2870820ff262e3aed04cbb5374d7fdd |
|
26-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
libblkid: Optimize devicemapper support This commit works by removing all calls from libdevmapper altogether, and using the standard support for "normal" non-dm devices. It depends on dm devices being placed in /dev/mapper (but the previous code had this dependency anyway), and /proc/partitions containing dm devices. We don't actually rip out the libdevmapper code in this commit, but just disable it via #undef HAVE_DEVMAPPER, just so it's easier to review and understand the fundamental code changes. A subsequent commit will remove the libdevmapper code, as well as unexport the blkid_devdirs string array. Thanks to Karel Zak for inspiring me to look at the dm code in blkid, so I could realize how much it deserved to ripped out by its roots. :-) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
5b7adf06904e6577c5d8bee7f0197a1b1032fa68 |
|
22-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
libblkid: Fix potential crash if blkid cache is out of date when probing Fix bug added in 57926c8c5566f0ef5b77db326d58aa0643cf6270 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
57926c8c5566f0ef5b77db326d58aa0643cf6270 |
|
10-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
blkid: Fix probing logic so we find renamed devices This fixes a bug where if there is an entry in the /etc/blkid.tab file for a particular device (major, minor) number but the filename does not exist, blkid wouldn't try to find the correct filename. Addresses-Debian-Bug: #493216
/external/e2fsprogs/lib/blkid/devname.c
|
bb47c2a4aff6ec6b9be7f30cd04cf7c858a84de4 |
|
14-Jul-2008 |
Theodore Ts'o <tytso@mit.edu> |
libblkid: Make sure we never reference a null dev->bid_type There were a few places where we don't check to make sure dev->bid_type is non-NULL before dereferencing the pointer, mostly in debug code. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
bf58e3d1c68be63d673d232154bde5854e031afc |
|
29-Jun-2008 |
Theodore Ts'o <tytso@mit.edu> |
blkid: Eliminate stale entries that duplicate a verified device Addresses-Debian-Bug: #487758, #487783 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
1f1ee1948525632736e8135d797db116d2a34c8d |
|
27-Feb-2008 |
Theodore Ts'o <tytso@mit.edu> |
libblkid: Add error checking to devicemapper code to avoid segfaults If a device mapper volume disappears while libblkid code is running, it is possible for the devicemapper code to return errors, and since libblkid wasn't checking for error returns, it would dereference a null pointer and crash. Add error checking to prevent this. Addresses-RedHat-Bugzilla: #433857 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
38361bbbb55735cf0f4ed6d56079c70fb3328036 |
|
29-Nov-2007 |
Eric Sandeen <sandeen@sandeen.net> |
e2fsprogs: fix blkid whole-disk scanning heuristics The heuristics in blkid/devname.c probe_all() for scanning whole disks with no partitions assume that a device name with no digit on the end will always be present as a delineator, i.e.: sda sda1 sdb sdc In this case, when sdc is seen, it's the clue to go back and scan sdb. However, for something like: sda sda1 sdb loop0 this falls down, and sdb is never scanned. (thanks to Karel Zak for pointing this out). Addresses-Red-Hat-Bugzilla: #400321 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
257ace82b77a281da6d0491294eda6f0b27ef424 |
|
07-Mar-2007 |
Theodore Ts'o <tytso@mit.edu> |
Fix memory leak in blkid library Addresses Debian Bug: #413661 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
a02fa9beb8ea198766a81c0bf01aa04dc8787237 |
|
12-Sep-2006 |
Theodore Ts'o <tytso@mit.edu> |
Fix bug in device mapper scanning; probe_one() doesn't want a leading /dev Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
f4f425b20bfec2bfa11a2b1df99b246541b3aff9 |
|
19-Mar-2006 |
Theodore Ts'o <tytso@mit.edu> |
Prevent error messages to stderr caused by libblkid calling libdevmapper Make the libdevmapper fail quietly if blkid is called without root privileges or the kernel does not include device mapper support. (What is the device mapper _library_ doing writing to stderr, anyway?) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
e324b250593a32680309015eba7c6c5db7851227 |
|
13-Mar-2006 |
Theodore Ts'o <tytso@mit.edu> |
Fix blkid's last verification logic to work when the system clock is insane Users have reported problems on newly installed systems when the Macintosh's system clock battery is dead and the hardware clock is returning a date of 1904. Turns out there were some bugs in handling dates before the Unix epoch. Addresses Red Hat Bug: #182188 probe.c (blkid_verify): Fix the bid_time sanity checking logic, so that if last verification time is more recent than the current time, or the comparison between the last verification time and the current time causes an overflow, a device verification will take place. devname.c (blkid_get_dev): Set the initial bid_time to be INT_MIN, to guarantee that blkid_verify will always be run even when the system clock is insane. dev.c (blkid_debug_dump_dev), read.c (debug_dump_dev), save.c (save_dev): Fix the printf format for dev->bid_time to match the fact that it is an signed type. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.c
|
4db2f59a718c18202a7ce1d559be18bfa1087747 |
|
08-Mar-2006 |
Karel Zak <kzak@redhat.com> |
Add device-mapper support to the blkid library On systems where is multi-path storage device is problem with duplicated filesystems. The solution is select "the best" device. This is possible by device-mapper library. Short quotation from RH bugzilla: With my patch, all dm devices remains in libblkid cache. Only the top level dm devices are given high priority and more appropriate node names (i.e. /dev/mapper/*) are used. For example, if we have linear mapped dm device "ov1" over dm device "disk1p3" which is multipath mapped to /dev/sdd3 and /dev/sdh3: # dmsetup.static ls --tree ov1 (253:5) <-- /dev/mapper/ov1 or /dev/dm-5 `-disk1p3 (253:4) <-- /dev/mapper/disk1p3 or /dev/dm-4 `-disk1 (253:0) |- (8:112) <-- /dev/sdh `- (8:48) <-- /dev/sdd Original version of blkid will show: # ./orig/blkid -t LABEL=mpdisk1p3 -l /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3" With my patch, blkid will show: # ./deptree/blkid -t LABEL=mpdisk1p3 -l /dev/mapper/ov1: LABEL="mpdisk1p3" ... TYPE="ext3" In blkid cache, all devices are listed: # ./orig/blkid -t LABEL=mpdisk1p3 /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3" /dev/sdh3: LABEL="mpdisk1p3" ... TYPE="ext3" /dev/dm-4: LABEL="mpdisk1p3" ... TYPE="ext3" /dev/dm-5: LABEL="mpdisk1p3" ... TYPE="ext3" # ./deptree/blkid -t LABEL=mpdisk1p3 /dev/mapper/ov1: LABEL="mpdisk1p3" ... TYPE="ext3" /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3" /dev/sdh3: LABEL="mpdisk1p3" ... TYPE="ext3" /dev/dm-4: LABEL="mpdisk1p3" ... TYPE="ext3" For more details see discussion on: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=156324 Addresses Red Hat Bug: #156324 Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/blkid/devname.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/devname.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/devname.c
|
d34588265c6fb68189090070be470725df3e8c48 |
|
12-Jan-2005 |
Matthias Andree <matthias.andree@gmx.de> |
we're reading unsigned long long, use %llu rather than %lld.
/external/e2fsprogs/lib/blkid/devname.c
|
2e6a9febb48ea0e57d32cacb5e67220443c0e059 |
|
05-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Adjust blkid library so that it returns vfat in preference to msdos so that mount will try to use the vfat filesystem. (Addresses Debian bug #287455) Similarly, the blkid library will now return an ext3 type for ext 2/3 filesystems that have the journal capability set. We allow files to be probed by the blkid library, to make it easier to test the library. However, we also added safety checks to avoid saving relative pathnames to blkid.tab, and probe_one() will only check block device files.
/external/e2fsprogs/lib/blkid/devname.c
|
cd0d521b829eca264f65f154373b0324db57d705 |
|
06-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix bug; if a partition has no known type, don't derference a null pointer and crash.
/external/e2fsprogs/lib/blkid/devname.c
|
ed78c021c3b111d8ab9a51aef5d5156e3004083f |
|
06-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix up lots of portability problems that caused e2fsprogs not to build successfully under Solaris.
/external/e2fsprogs/lib/blkid/devname.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/devname.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/devname.c
|
98999c399d563c248728bf217467a788cb0c1aad |
|
16-Feb-2003 |
Theodore Ts'o <tytso@mit.edu> |
Rename blkid_get_devname() to blkid_get_dev(), and blkid_get_token() to blkid_get_devname().
/external/e2fsprogs/lib/blkid/devname.c
|
bc40efd3d0b0c06437eade1a42a14c858c66151e |
|
14-Feb-2003 |
Theodore Ts'o <tytso@mit.edu> |
Remove bid_id from the blkid device structure, as it is not used for anything.
/external/e2fsprogs/lib/blkid/devname.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/devname.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/devname.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/devname.c
|
0f3ac480c76d4574b9274de22784e76fd627ad6a |
|
26-Jan-2003 |
Theodore Ts'o <tytso@mit.edu> |
devname.c: Add support for EVMS to the blkid library.
/external/e2fsprogs/lib/blkid/devname.c
|
d3f917989badf78d1f97654e46d60d1f3d25cd17 |
|
25-Jan-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nits.
/external/e2fsprogs/lib/blkid/devname.c
|
e12f2ae74c2eb8997bf13adf8fdd7e7313971eae |
|
23-Jan-2003 |
Theodore Ts'o <tytso@mit.edu> |
Integrate new blkid library.
/external/e2fsprogs/lib/blkid/devname.c
|