aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs/zap.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix clang warnings on architectures with a 64-bit longTheodore Ts'o2021-02-111-5/+10
| | | | | | | | | | | | On most systems where we compile e2fsprogs, the u64 type is an unsigned long long. However, there are platforms (such as the PowerPC) where a long 64-bits and so u64 is typedef'ed to be unsigned long instead of a unsigned long long. Fix this by using explicit casts in printf statements. For scanf calls, we need to receive the value into a unsigned long long, and then assign it to a u64, after doing range checks. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* debugfs: fix building rdebugfs (with READ_ONLY define)Theodore Ts'o2020-06-171-35/+0
| | | | | | | | Fix bitrot for building a restricted version of debugfs, which does not require read/write access to the file system, and which only allows access to the file system metadata. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Fix function declarations for ss commands to fix LTO warningsTheodore Ts'o2018-08-081-2/+4
| | | | Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* debugfs: add support to display details of extended attribute structuresTheodore Ts'o2018-06-131-4/+10
| | | | | | | Teach the inode_dump and block_dump commands the -x option, which tries to interpret the data structures as xattr data strucgtures. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* debugfs: add -b and -e options to the inode_dump commandTheodore Ts'o2018-05-261-5/+9
| | | | | | | | Teach the inode_dump command to dump out just the i_block array and the extra space in the inode, as a convenience to someone investigating a corrupted inode. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* misc: fix gcc warningsDarrick J. Wong2014-08-241-1/+0
| | | | | Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* debugfs: create inode_dump command to dump an inode in hexDarrick J. Wong2014-07-221-14/+19
| | | | | | | | | | | Create a command that will dump an entire inode's space in hex. [ Modified by tytso to add a description to the man page, and to add the more formal command name, inode_dump, in addition to short command name of "idump". ] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* debugfs: clean up debugfs man page and help textAndreas Dilger2013-12-151-3/+2
| | | | | | | | | | | | Clean up the formatting of the debugfs(8) man page: - add command aliases to the main descriptions - use bold for sub-commands and italics for their arguments - remove trailing spaces - add "dirty" sub-command - clarify "block_dump" and "zap_block" sub-commands Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* debugfs: fix gcc-wall complaintsTheodore Ts'o2013-01-141-5/+6
| | | | | | | | | | Fix the missing function prototypes from the recently added new debugfs commands, plus some signed vs unsigned comparison complaints. Also change the abbreviation of the block_dump command from "bp" to the more appropriate "bp". Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Fix gcc -Wall nitsTheodore Ts'o2013-01-011-5/+0
| | | | | | This fixes the last set of gcc -Wall complaints. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* debugfs: add the commands "zap_block" and "block_dump"Theodore Ts'o2012-12-241-0/+265
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>