aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ismounted.c
Commit message (Collapse)AuthorAgeFilesLines
* Switch back to 1.42.9 now that there is a fixJP Abgrall2014-03-191-2/+4
| | | | | | 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-4/+2
| | | | | | | | | | | | | | | | 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>
* misc: cleanup unused variables on MacOSAndreas Dilger2012-12-291-0/+2
| | | | | | | Clean up unused variables found by GCC on MacOS. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Don't assume that the presence of mntent.h means that setmntent() existsTheodore Ts'o2012-04-051-2/+2
| | | | | | | | | | | Change autoconf to test for setmntent() and use that to decide whether to use getmntent() and setmntent(), since some systems don't have setmntent() but they do have the mntent.h header file. Also, remove the includes of mntent.h from e2fsck and mke2fs and other places where it is not needed. 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>
* fix fd leak that causes fsck to fail with "too many open files"Cristian Rodríguez2009-10-031-3/+0
| | | | | | | fsck leaks fds when invoked with -R -A -M -a -t noopts=nofail Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Merge branch 'maint'Theodore Ts'o2008-06-071-0/+4
|\
| * fsck: Fix build problem on MacOS XTheodore Ts'o2008-06-071-0/+4
| | | | | | | | | | | | Addresses-Sourceforge-Bug: #1972473 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* | Fix miscellaneous gcc -Wall warningsTheodore Ts'o2008-03-171-1/+3
|/ | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Make fsck ignore mounted filesystems if given the -M optionTheodore Ts'o2008-02-171-0/+212
Adapted from the SuSE patch, but fixes a number of very serious problems with the patch in SLES: 1) This changeset uses -M instead of -m; most lowercase options are reserved for use by the filesystem-specific fsck programs. All new fsck options must be upper case. 2) This changeset will skip the root filesystem in "fsck -AM", which the SLES patch will not do. 3) Loading /proc/mounts into the fs_info can cause -t opts matching to malfuction. So this changeset uses a simplified version of the ismounted.c function from the ext2fs library. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>