e0ed7404719a9ddd2ba427a80db5365c8bad18c0 |
|
20-Mar-2014 |
JP Abgrall <jpa@google.com> |
Switch back to 1.42.9 now that there is a fix Revert "Revert changes that moved from 1.41.14 to 1.42.9" This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
/external/e2fsprogs/misc/util.c
|
65f0aab98b20b5994a726ab90d355248bcddfffd |
|
06-Mar-2014 |
JP Abgrall <jpa@google.com> |
Revert changes that moved from 1.41.14 to 1.42.9 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>
/external/e2fsprogs/misc/util.c
|
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/misc/util.c
|
82896cbe0e83fc084abbe1ae2f043d2ec9058963 |
|
16-Dec-2013 |
Kazuya Mio <k-mio@sx.jp.nec.com> |
mke2fs: fix force option to create filesystem on mounted device According to mke2fs man, we can create a filesystem on the mounted device when -FF option is specified. However, currently we have to specify -F option third to force mke2fs. This patch fixes the problem. Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com> Reviewed-by: Zheng Liu <wenqing.lz@taobao.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
14b283ae565930144ef5ace12483d602cc3e7539 |
|
29-Sep-2011 |
Theodore Ts'o <tytso@mit.edu> |
mke2fs: set s_max_mnt_count to -1 by default If the enable_periodic_fsck option is false in /etc/mke2fs.conf (which is also the default), s_max_mnt_count needs to be set to -1, instead of 0. Kernels newer than 3.0 will interpret 0 to disable periodic checks, but older kernels will print a warning message on each mount, which will annoy users. Addresses-Debian-Bug: #632637 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
0f5eba7501f467f757792ee449d16c9259b994fd |
|
24-Sep-2011 |
Andreas Dilger <adilger@whamcloud.com> |
ext2fs: add multi-mount protection (INCOMPAT_MMP) Multi-mount protection is feature that allows mke2fs, e2fsck, and others to detect if the filesystem is mounted on a remote node (on SAN disks) and avoid corrupting the filesystem. For e2fsprogs this means that it checks the MMP block to see if the filesystem is in use, and marks the filesystem busy while e2fsck is running on the system. This is useful on SAN disks that are shared between high-availability servers, or accessible by multiple nodes that aren't in HA pairs. MMP isn't intended to serve as a primary HA exclusion mechanism, but as a failsafe to protect against user, software, or hardware errors. There is no requirement that e2fsck updates the MMP block at regular intervals, but e2fsck does this occasionally to provide useful information to the sysadmin in case of a detected conflict. For the kernel (since Linux 3.0) MMP adds a "heartbeat" mechanism to periodically write to disk (every few seconds by default) to notify other nodes that the filesystem is still in use and unsafe to modify. Originally-by: Kalpak Shah <kalpak@clusterfs.com> Signed-off-by: Johann Lombardi <johann@whamcloud.com> Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/util.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/misc/util.c
|
c859cb1de0d624caa0779fb17d1a53766143136e |
|
16-Sep-2011 |
Lukas Czerner <lczerner@redhat.com> |
e2fsprogs: create open() and stat() helpers In many places we are using #ifdef HAVE_OPEN64 to determine if we can use open64() but that's ugly. This commit creates two new helpers ext2fs_open_file() for open() and ext2fs_stat() for stat(). Also we need new typedef ext2fs_struct_stat for struct stat. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
faa2dcdad0f5af3945a70bdecc8713b3a74cdf9c |
|
14-Sep-2011 |
Lukas Czerner <lczerner@redhat.com> |
mke2fs: Use ext2fs_flush() only once We are doing ext2fs_flush() twice right now at the end of the mke2fs. First by directly calling ext2fs_flush() which is intended to write superblock and fs accounting information. And then it is invoked again when we are calling ext2fs_close(), only this time, because the fs is not dirty, we are writing out only superblock. I think it is bad to call it twice because even when writing only super block it takes some time on bigger file systems and moreover ext2fs_close() can fail without any reasonable explanation for the user. Also ext2fs_flush() is printing out progress and it is confusing for the users. Fix all this by removing the ext2fs_flush() and leaving it all to ext2fs_close(). However we need to introduce new variables to store check interval and max mount count, because fs structure is freed on ext2fs_close() and we really want to print those information as the last info for the user. [ Fixed type mismatch in a printf format statement -tytso] Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
97d26ce9e3589e9f5fa17014467a9730a884d158 |
|
07-Jun-2010 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: e2fsck/journal.c e2fsck/pass1.c e2fsck/pass2.c misc/mke2fs.c
|
1bb14a22b5ea31ce4b9b5d9d8c7e75f02fad77ee |
|
01-Apr-2010 |
Eric Sandeen <sandeen@redhat.com> |
mke2fs: be explicit if external journal device is not found This for RH bug #572935 - RFE: Misleading error message from mke2fs -J option If the journal device UUID is typo'd or otherwise not found, the error message looks like it's a usage() type of problem. It'd be helpful to explicitly say that the device requested could not be found. Addresses-Red-Hat-Bug: #572935 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
4efbac6fed75c29d3d5f1b676b932754653a2ac5 |
|
08-Sep-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Convert uses of super->s_*_blocks_count to ext2fs_*_blocks_count() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.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/misc/util.c
|
7087bbecceba43248953b57a46a6a8be700ee9c7 |
|
25-Jul-2008 |
Theodore Ts'o <tytso@mit.edu> |
mke2fs/tune2fs: Fix max journal size in message to be consistent/correct Addresses-Debian-Bug: #491620 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
d9039ae0ff3f7929ede576058b3ad3e9c62a47c4 |
|
20-Oct-2007 |
Dmitry V. Levin <ldv@altlinux.org> |
Check fgets(3) return value When fgets() function fails, contents of the buffer is undefined. That is, fgets() return value needs to be checked, to avoid undefined behavior. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
d4e0b1c6f5aa8c6a248d9149ed5634a310952411 |
|
04-Aug-2007 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall warnings Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
56d1236726d8e4624d2f3a2f4713864c1e66bb40 |
|
21-Jun-2007 |
Theodore Ts'o <tytso@mit.edu> |
Add default journal size function Factor out the code which sets the default journal size and move it into libext2fs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
f331acbe56d88dcd38ffe0f029240ed55fdaea9e |
|
07-Apr-2007 |
Andreas Dilger <adilger@clusterfs.com> |
Allow the journal size to up to 10,240,000 blocks Increase the maximum size of the journal to 100 times the previous maximum, but add a restriction that it can be no more than half the size of the filesystem. Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
45415c2dc1975efef329002133549895c57dbc1e |
|
28-Mar-2007 |
Brian Behlendorf <behlendorf1@llnl.gov> |
[COVERITY] Fix memory leak in tune2fs and mke2fs when parsing journal options Coverity ID: 33: Resource Leak Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
d49db19e0d7810662ba5f8c985e924734d4ebb6c |
|
02-Oct-2006 |
Theodore Ts'o <tytso@mit.edu> |
Increase default journal size to guarantee working on-line resizing Make the smallest journal be 1400 blocks instead of 1024 blocks to make sure there is enough room to support on-line resizing. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
c16e610c5100cd5829d969272af3035fac8e1a31 |
|
06-Aug-2006 |
Andreas Dilger <adilger@clusterfs.com> |
Require mke2fs -F -F for really dangerous operations Disambiguate the use of "-F" (force) flag for mke2fs to avoid dangerous situations. The use of -F is needed for regular backing files and for filesystems on whole block devices. It should NOT be confused with mke2fs on an apparently-mounted or in-use filesystem. Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
9dc6ad1ecb0ba3caf14e05279f1cc3cea52095a2 |
|
24-Mar-2006 |
Theodore Ts'o <tytso@mit.edu> |
Change mke2fs to use /etc/mke2fs.conf as a configuration file Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/util.c
|
2fa8f37ffff4687228d9f204062f2d27b0e5b919 |
|
05-Jun-2005 |
Theodore Ts'o <tytso@mit.edu> |
On Linux 2.6 systems, mke2fs and badblocks will check to see whether the filesystem appears to be busy; if so, the programs will print an error message and abort. (Addresses Debian Bug #308594).
/external/e2fsprogs/misc/util.c
|
7e69ba2ae2604456cc17257bf14dc7a0576657cf |
|
10-May-2005 |
Theodore Ts'o <tytso@mit.edu> |
Change the default journal size to be bigger for larger filesystems, given modern memory sizes. Now, for filesystems greater than 4GB, we use a journal of 128 MB instead 32 MB.
/external/e2fsprogs/misc/util.c
|
289e0557c24c68290b6d9b73b09674447801fdac |
|
30-Mar-2004 |
Matthias Andree <matthias.andree@gmx.de> |
GNU/KFreeBSD portability fixes. (Addresses Debian Bug #239934)
/external/e2fsprogs/misc/util.c
|
b34cbddbd66baedc163d36dd281b63ef478f547a |
|
28-Dec-2003 |
Matthias Andree <matthias.andree@gmx.de> |
Re-add FreeBSD support. Tested on FreeBSD 5.2-CURRENT as of 2003-12-28. Tested on FreeBSD 4.9-STABLE as of 2003-12-27.
/external/e2fsprogs/misc/util.c
|
544349270e4c74a6feb971123884a8cf5052a7ee |
|
07-Dec-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nitpicks
/external/e2fsprogs/misc/util.c
|
d07b150371f4a46f2729ab2635fc8f23c9ffca58 |
|
21-Nov-2003 |
Theodore Ts'o <tytso@mit.edu> |
util.c (check_plausibility): Support 2.6 kernel header files, instead of having the build to crash. (Addresses Debian bug #221778)
/external/e2fsprogs/misc/util.c
|
ddc32a045bd3bd35968ace2dbe22179470baec0b |
|
04-May-2003 |
Theodore Ts'o <tytso@mit.edu> |
Add Czech translation. Remove "NYC" translation. Add Czech translation from Miloslav Trmac <mitr@volny.cz> Random NLS and other display fixes from Miloslav.
/external/e2fsprogs/misc/util.c
|
ed1b33e8fb310641684d68a177c940b58f2f529d |
|
02-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Minor bug fixes in the blkid library. Convert mke2fs, fsck, and tune2fs to use the blkid library.
/external/e2fsprogs/misc/util.c
|
0072f8de528310d82700b1a6a381895b4ca93c10 |
|
26-Feb-2002 |
Andreas Dilger <adilger@clusterfs.com> |
Add check for mkfs.ext3 and create a journal in this case.
/external/e2fsprogs/misc/util.c
|
4ea7bd04390935e1f8b473c8b857e518df2e226b |
|
17-Dec-2001 |
Theodore Ts'o <tytso@mit.edu> |
Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus error message could be printed on an malloc() failure, and e2image was optimized to avoid needless system calls by using the stashed inode functions.
/external/e2fsprogs/misc/util.c
|
6ef3920a82c8fb3dad78409eca9d5f3d1b66176b |
|
14-Nov-2001 |
Theodore Ts'o <tytso@mit.edu> |
util.c (check_plausibility): Use stat64 if available so that check_plausibility() works with files > 2GB.
/external/e2fsprogs/misc/util.c
|
2d15576dfe8ffd8521a6f4211cef3d2a663dc379 |
|
17-Aug-2001 |
Andreas Dilger <adilger@clusterfs.com> |
get_device_by_label.[ch], fsck.c, util.c: New interpret_spec() function in get_device_by_label.c to allow the use of UUID= or LABEL= when creating filesystems which use external journal dev (e.g. mke2fs -J device=LABEL=<journal_label>). tune2fs.c: Use superblock s_journal_uuid to locate an external journal device instead of s_journal_dev when removing it. Allow opening journal devices to set the label and UUID in the ext2 superblock. mke2fs.c, tune2fs.c: Free journal_device after use, as it is malloc'd in interpret spec.
/external/e2fsprogs/misc/util.c
|
66cf2f60350ad6ef9ce5b000b5107d4508634887 |
|
14-Jun-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h: tune2fs.c, mke2fs.c, util.c, util.h (print_check_message): Move the message which displays how often the filesystem will be checked from mke2fs into a utility subroutine. Then cause tune2fs to call that function to display the message after adding a journal to a filesystem. mke2fs.8.in: Add manual page fixups and explanation for why it's good to check filesystems periodically from Andreas Dilger.
/external/e2fsprogs/misc/util.c
|
54c637d4d29af3e6365779f8b12976abe95a4753 |
|
14-May-2001 |
Theodore Ts'o <tytso@mit.edu> |
Many files: badblocks.c, chattr.c, dumpe2fs.c, e2image.c, findsuper.c, lsattr.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c: Change location of ext2_fs.h to be ext2fs/ext2_fs.h ChangeLog, Makefile.in, resize2fs.h: resize2fs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h ChangeLog, Makefile.in, debugfs.h: debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h ChangeLog, Makefile.in, e2fsck.h, scantest.c: e2fsck.h, scantest.c: Change location of ext2_fs.h to be ext2fs/ext2_fs.h ChangeLog, Makefile.in, tst_uuid.c, uuid_time.c: tst_uuid.c, uuid_time.c: Remove unneeded #include of ext2_fs.h ChangeLog, Makefile.in, e2p.h: e2p.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h ChangeLog, Makefile.in, test_icount.c, test_rel.c: test_icount.c, test_rel.c: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
/external/e2fsprogs/misc/util.c
|
d71a495dd060f9bf318c689406eff2a96511e952 |
|
07-May-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, util.c: util.c: Use specific check for HAVE_SYS_STAT_H.
/external/e2fsprogs/misc/util.c
|
d6a27e0048537ab6367a6aa97fbe84a423119eea |
|
17-Apr-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, mke2fs.c: mke2fs.c (create_journal_dev): Call ext2fs_create_journal_superblock() first, so if it's going to error out, the user finds out before waiting for the entire device to get zero'ed. ChangeLog, util.c: util.c (parse_journal_opts): Remove code which allowed a bare number to be treated as a journal size.
/external/e2fsprogs/misc/util.c
|
2537b6d0c1aa9710a05cdfafc281b4884c67bdb2 |
|
26-Mar-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h: ke2fs.8.in, tune2fs.8.in: Change man paegs to document that the journal must be bewteen 1024 and 10,240 file system blocks. mke2fs.c, tune2fs.c: Change to use figure_journal_size() util.c, util.h (figure_journal_size): Change journal_default_size into routine which also converts the requested journal size into filesystem blocks and does bounds checking to make sure the journal is sized reasonably. Renamed function to journal_default_size. parse_journal_opts): Remove bounds check for the journal size, since this is now done in figure_journal_size, and based on the number of filesystem blocks, as opposed to using the absolute size of the journal.
/external/e2fsprogs/misc/util.c
|
5683e6e2c78ef4c620f3830c4e2fa4c2ead0eb4c |
|
18-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, util.c, util.h: util.h, util.c (journal_default_size): New function from Andreas Dilger to calculate an appropriate default journal size given a filesystem size. util.c (parse_journal_opts): Allow the creation of a journal as small as 1MB.
/external/e2fsprogs/misc/util.c
|
c8c071a07319939dfd7ae2ff1dedec644d750deb |
|
11-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c: e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c: Fix gcc -Wall complaints, including one bug in tune2fs caused by a block automatic shadowing version of the variable we really wanted to use, which broke the logic testing to see if the filesystem was mounted. ChangeLog, MCONFIG.in: (gcc-wall-new): Added new target which forgoes the make clean so we only check the newly modified .c files.
/external/e2fsprogs/misc/util.c
|
63985320384bf143eaac9857af424800d9867a1a |
|
03-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, Makefile.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h: tune2fs.c (update_feature_set, add_journal): Moved to separate functions. Added ability to add and remove the journal while the filesystem is live. Added support for setting a time-based UUID. Removed zero-initialized static variables. mke2fs.c, util.c, util.h (strcasecmp, proceed_question, check_plausibility, parse_journal_opts, check_mount): Moved functions to util.c so they can be used by tune2fs. mke2fs.c (main): Change ext2fs_add_journal_fs() to ext2fs_add_journal_inode() to reflect function renaming.
/external/e2fsprogs/misc/util.c
|