diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-10-26 08:38:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-27 09:43:57 +0200 |
commit | e6a09861b9a76b5527aa1310cff3d4e772b292b8 (patch) | |
tree | 4aec60947a1f1c72342a17c970d5435f080d40f6 /commands/Kconfig | |
parent | f9f0c098048f8fa76f9f4945b0fe16e9333530d5 (diff) | |
download | barebox-e6a09861b9a76b5527aa1310cff3d4e772b292b8.tar.gz |
commands: add new stat command
We have a couple of commands to help with debugging the VFS:
ll, devinfo, devlookup, but we lack a command that can just dump all
information we have in a struct stat or struct cdev. Add stat as such a
command. For most uses, it's not needed, but it can come in handy for
development. The stat_print and cdev_print functions underlying it are
exported, so they can called for debugging purposes.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221026063819.2355568-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r-- | commands/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index 9894ecb9aa..2ce990b561 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -947,6 +947,20 @@ config CMD_LS -C column format (opposite of long format) -R list subdirectories recursively +config CMD_STAT + tristate + prompt "stat" + select PRINTF_UUID + help + Display file status + + Usage: stat [-L] [FILEDIR...] + + Display status information about the specified files or directories. + + Options: + -L follow symlinks + config CMD_MD5SUM tristate select COMPILE_HASH |