History log of /external/e2fsprogs/debugfs/util.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/debugfs/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/debugfs/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/debugfs/util.c
f404167dda29a59d2be2882328aeb074b9899669 17-Dec-2013 Theodore Ts'o <tytso@mit.edu> Clean up sparse warnings

Mostly by adding static and removing excess extern qualifiers. Also
convert a few remaining non-ANSI function declarations to ANSI.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
fe56188b07668758c28912b6eaf31abb498a9e82 12-Dec-2013 Darrick J. Wong <darrick.wong@oracle.com> debugfs: handle 64bit block numbers

debugfs should use strtoull wrappers for reading block numbers from
the command line. "unsigned long" isn't wide enough to handle block
numbers on 32bit platforms.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
6854ab1d4a1f9fb3599f027d2593d9c4d64b5e32 12-Jun-2012 Theodore Ts'o <tytso@mit.edu> debugfs: interpret date strings of the form @dddd

Debugfs will now interpret date strings of the form @123 as 123
seconds after the start of the epoch. This is handy when editing an
orphan inode linked list using the inode's deletion time field.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
97a67c40dc36a4cfc50192fe96ed12689718af94 28-May-2012 Eric Sandeen <sandeen@redhat.com> debugfs: fix strtoblk for 64bit block numbers

Affects icheck, freeb, setb, testb...

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
8a1da3c5ae5d042c272fbcf5ea222ca561f566a5 14-Feb-2012 Theodore Ts'o <tytso@mit.edu> debugfs: use ss_safe_getenv() instead of getenv()

In the case where debugfs (or rdebugfs) is installed setgid disk, or
some such, we need to disable the use of environment variables for the
obvious reasons.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
8bf1e9184ed607aca8afaf50f0972c5a5a9a32db 17-Jan-2012 Theodore Ts'o <tytso@mit.edu> debugfs: add ncheck -c option

Add a -c option to ncheck will verifies the file type information in
the directory entry.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/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/debugfs/util.c
16c581d0e8d931f3cf0005de07481d7380ca4c0c 15-Sep-2011 Theodore Ts'o <tytso@mit.edu> debugfs: add 64-bit support to the set_field commands

The set_fields commands (set_super_value, set_inode_field,
set_block_group) now handle fields which store in split fields on
ext4's on-disk format. For example, the superblock fields
s_blocks_count and s_blocks_count_hi.

The user can either set the low or high part of the field via
"blocks_count_lo" or "blocks_count_hi", or both parts can be set via
"blocks_count".

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
048786d7e87a6de698936b0cf25f1ab70d5c15bc 08-Sep-2009 Valerie Aurora Henson <vaurora@redhat.com> debugfs: Convert to support 64-bit filesystems

Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
Signed-off-by: Nick Dokos <nicholas.dokos@hp.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/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/debugfs/util.c
ebabf2ad6d19af5c674b624bafe619dedbc94403 13-Jul-2008 Theodore Ts'o <tytso@mit.edu> Define _XOPEN_SOURCE to 600 consistently for Solaris C99 support

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>
/external/e2fsprogs/debugfs/util.c
a70f10dbc493c4eae488cadd8512e873220037d9 30-Mar-2008 Theodore Ts'o <tytso@mit.edu> Merge branch 'maint'
a2ff0f31c1987a480ffc4dacb7adf93f0aecf7f6 21-Mar-2008 Theodore Ts'o <tytso@mit.edu> debugfs, tune2fs: Handle daylight savings time when parsing a time string

We need to set tm_isdst to -1 so that mktime will automatically
determine whether or not daylight savings time (DST) is in effect.
Previously tm_isdst was set to 0, which caused mktime to interpret the
time as if it was always not using DST.

Addresses-Debian-Bug: #471882

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
abe85c9f1b267c4787af9c9b0d03dcf9600e7187 20-Mar-2008 Theodore Ts'o <tytso@mit.edu> Merge branch 'maint' into next
a7ee4e01838a2ae5e3adf2d159d2f8f824e17ed7 20-Mar-2008 Theodore Ts'o <tytso@mit.edu> debugfs: Don't use a pager if stdout is not a tty

If we are redirecting the output of debugfs to a file or to another
process via a pipe, there's no point sending the output to a pager.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
2d328bb76d2d63bdfdba923b54c28bd686bd8fec 18-Mar-2008 Theodore Ts'o <tytso@mit.edu> Fix miscellaneous gcc -Wall warnings

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
d8d12558dc24e32f489dc471ba19f25273edce7c 18-Feb-2008 Theodore Ts'o <tytso@mit.edu> debugfs: Fix error handling in strtoblk() and common_block_args_process()

Fix strtoblk() to allow a block number 0, and
common_block_args_process() so it prints an error message if a block
number that can't be parsed by strtoul().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/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/debugfs/util.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/debugfs/util.c
a4ea6b98f3c853d70bc08e01ce098c287c2ffd4c 11-Apr-2007 Theodore Ts'o <tytso@mit.edu> Fix debugfs's date parser so that it accepts integer values

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
3e41913c48614e93dc266ae66fdf0824a8c76ffb 10-Apr-2007 Eric Sandeen <sandeen@redhat.com> Handle large setb/testb/freeb commands in debugfs

Fix a signed vs. unsigned problem by using blk_t instead of int

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
/external/e2fsprogs/debugfs/util.c
9c07dc00b8ea175aa1446868b5cca5a21b41aecf 29-May-2006 Theodore Ts'o <tytso@mit.edu> Add missing backwards compatibility for ancient Linux systems

This fixes some (but not all) of the compatibility bugs which prevented
e2fsprogs from being compiled on a Linux 2.0.35 system. There are still
some unprotected use of long long's, and apparently some type problems
with the uuid library, but these can be fixed up later.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
4efae606bf3159f2134fa29a5ad78fb9f6331f92 25-Sep-2005 Theodore Ts'o <tytso@mit.edu> New debugfs command: set_current_time

Generalize the time parsing code and move it to
util.c:string_to_time(). Add new command, set_current_time, which
sets the time used to set the filesystems's time fields.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/debugfs/util.c
030970ed750b6a169c32ffb8b19bce3150198629 21-Mar-2005 Theodore Ts'o <tytso@mit.edu> Fix e2fsck, debugfs, and the ext2fs_mkdir function so that when we create
a new inode we make sure that the extra information in the inode (any extra
fields in a large inode and any ea-in-inode information) is cleared. This
can happen when e2fsck creates a new root inode or a new lost+found directory,
or when the user uses the debugfs write, mknod, or mkdir commands. Otherwise,
the newly create inode could inherit garbage (or old EA information) from
a previously deleted inode.
/external/e2fsprogs/debugfs/util.c
ea822eeba373bd0bed6e58a35ce123a9f2768113 21-Mar-2005 Theodore Ts'o <tytso@mit.edu> Enhance debugfs's stat command so it can dump extended attributes
which are stored in the inode body.
/external/e2fsprogs/debugfs/util.c
acb79d9d19737cdd3c64bfd83c101fdeed47766e 15-Dec-2004 Theodore Ts'o <tytso@mit.edu> Fix stupid core dumping bug if the TZ environment variable isn't set.
/external/e2fsprogs/debugfs/util.c
8ff1a86005121edcbf04cfaf8f0812591cb916c6 01-Dec-2004 Theodore Ts'o <tytso@mit.edu> If the TZ environment variable is set to GMT, use gmtime()
instead of localtime() or ctime() to force the use of GMT.
This is because the dietlibc doesn't honor the TZ environment
variable.
/external/e2fsprogs/debugfs/util.c
0f72ab64616f936144061078116b8adbf0ade492 11-Apr-2004 Theodore Ts'o <tytso@mit.edu> util.c (open_pager): Use DEBUGFS_PAGER in preference to PAGER
(Addresses Debian Bug #239547)
/external/e2fsprogs/debugfs/util.c
2b5ddd75c90ed4dce2ecdca12b59688a46b11b01 25-Jan-2004 Theodore Ts'o <tytso@mit.edu> For debugfs, use the "more" pager in preference to "less",
since "less" doesn't work terribly well for debugfs's purpose.

Document the DEBUGFS_PAGER and PAGER environment variables.
/external/e2fsprogs/debugfs/util.c
2b696a98569339287894df4a40676745f6111d7e 25-Dec-2003 Theodore Ts'o <tytso@mit.edu> Try to use the DEBUGFS_PAGER environment
variable first, and then fall back to the PAGER
environment variable. Finally, search for an appropriate
pager executable.
/external/e2fsprogs/debugfs/util.c
ec7fdb8f76ea88ba838690ae151735ae5ef800ba 07-Dec-2003 Theodore Ts'o <tytso@mit.edu> util.c (open_pager): Search for the pager to use, starting with
'pager', and then falling back to 'less' and then 'more'.
(Addresses Debian Bug: #221977)
/external/e2fsprogs/debugfs/util.c
88494bb6d440f703db98b6cc4452f63d7aa392b9 14-May-2003 Theodore Ts'o <tytso@mit.edu> util.c, ls.c, logdump.c, htree.c, dump.c, debugfs.h, debugfs.c, ChangeLog:
util.c (reset_getopt), debugfs.c (do_open_filesys,
do_show_super_stats), ls.c (do_list_dir), dump.c (do_dump),
htree.c (do_htree_dump, do_dx_hash), logdump.c (do_logdump):
Define and use a new function, reset_getopt(), which does whatever
is necessary to reset getopt() again. This is different for
different implementations, so the portabilty issues are a bit of a
nightmare. (Addresses Debian bug #192834)
/external/e2fsprogs/debugfs/util.c
b38cd283637dafff6b39d4b76bf76fa2789eb21f 12-May-2002 Theodore Ts'o <tytso@mit.edu> Add a new command "bmap" to debugfs which calculates the logical->physical block
mapping for a particular inode.

Fixed a bug in the libext2 library which broke ext2fs_bmap if no inode structre
was passed inside for here.

Fixed bad calling parameters to parse_ulong which broken the -b and -s
options to debugfs, as well as do_init, and the testb, setb, clearb functions.
/external/e2fsprogs/debugfs/util.c
e5b3b27966ac71ca8b445a18a6ee1238684fb3f4 01-Apr-2002 Theodore Ts'o <tytso@mit.edu> util.c (parse_ulong): Fix typo which cases parse_ulong to
coredump if the err variable is filled in (for example, if
the -b or -s options are passed to the debugfs's
command-line invocation).
/external/e2fsprogs/debugfs/util.c
df614db6ef79c767745b8154c26d69398b571605 25-Feb-2002 Theodore Ts'o <tytso@mit.edu> Add initial support in debugfs for examining directory indexing
information.
/external/e2fsprogs/debugfs/util.c
e1018eeaa3285cd0ca26986d929194c1b577d211 03-Jan-2002 Theodore Ts'o <tytso@mit.edu> Add new debugfs commands and arguments which make it easier to
recover deleted files. The lsdel command now takes an optional
argument which allows the user to only see the most recently
deleted files. Also added a new command, undel, which automates
undeleting a deleted inode and linking it back to a directory.
Also added an optional count argument to the testb, freeb, setb,
and find_free_block commands. The ls command now takes a new
option, -d, which lists deleted directory entries.

Factored out out commonly used code into utility subroutines
for ease of maintenance and to make the executable size smaller.
/external/e2fsprogs/debugfs/util.c
571fc5a89c17985626df29823617b63094d10b31 02-Dec-2001 Theodore Ts'o <tytso@mit.edu> Fixes necessary for e2fsprogs to work using the diet libc.

- Renamed linux/list.h to be linux/linked_list.h to work around a
problem caused by diet libc insistence to search the kernel
header files ahead of all other files in the include path,
including the user specified include files.

- Worked around a bug in diet libc which core dumps when using
putc with stderr by using fputs instead. As a bonus, this
also shaved a few bytes off of com_err.o.

- Fixed a real bug in debugfs which was detected because diet libc
was more sensitive than glibc when incorrectly using fclose()
where pclose() is required.
/external/e2fsprogs/debugfs/util.c
b044c2e02af46c54206f0f6e29896ab32681a7db 11-Jan-2001 Theodore Ts'o <tytso@mit.edu> Many files:
debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,
setsuper.c, util.c: Change ino_t to ext2_ino_t. Fix a few minor
gcc-wall complaints while we're at it.
/external/e2fsprogs/debugfs/util.c
9131a759318963d9c86a7de7138ac8cee9641f8c 23-Aug-2000 Theodore Ts'o <tytso@mit.edu> ChangeLog, util.c:
util.c (string_to_inode): Use strtoul instead of atoi, so that hex
inode numbers will be accepted.
/external/e2fsprogs/debugfs/util.c
2c4a540636142a936889bbe4b85a2b9c56bfa458 19-Aug-2000 Theodore Ts'o <tytso@mit.edu> debugfs.c:
Fixup one more missing use of lb->f instead stdout when printing the
comma separator.
ChangeLog, util.c:
util.c (open_pager): Set SIGPIPE to be ignored, so that quitting out
of the pager doesn't blow away debugfs.
/external/e2fsprogs/debugfs/util.c
c6bd0c97e4dc42511015b9a20b3e35dcdc8fd411 14-Aug-2000 Theodore Ts'o <tytso@mit.edu> Makefile.in, debug_cmds.ct, setsuper.c, ChangeLog:
setsuper.c: New function which implements the set_super_value command.
Allows the user to set arbitrary superblock fields.
ChangeLog, util.c:
util.c (open_pager): If the PAGER environment variable is not set,
default to using "more".
/external/e2fsprogs/debugfs/util.c
d61f6176024865007d5a0da49c61c21e9d498007 27-May-2000 Theodore Ts'o <tytso@mit.edu> Makefile.in:
Fix stupid dependency bug.
ChangeLog, debugfs.c, debugfs.h, util.c:
debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
coredumping if the bitmaps aren't loaded.
util.c (check_fs_bitmaps): New function which checks whether or not
the bitmaps are loaded.
/external/e2fsprogs/debugfs/util.c
1e3472c5f37ca3686dd69b079d4d02a302f5798d 29-Apr-1997 Theodore Ts'o <tytso@mit.edu> Many files:
Checked in e2fsprogs 1.05
/external/e2fsprogs/debugfs/util.c
3839e65723771b85975f4263102dd3ceec4523c0 26-Apr-1997 Theodore Ts'o <tytso@mit.edu> Many files:
Checkin of e2fsprogs 0.5b
/external/e2fsprogs/debugfs/util.c