From 566e857fff37b8fd760d74042e0b0c04cb43f37d Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 15 May 2021 13:08:57 +0200 Subject: doc: man-page for size command Provide a man-page for the size command. Signed-off-by: Heinrich Schuchardt --- doc/usage/index.rst | 1 + doc/usage/size.rst | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 doc/usage/size.rst (limited to 'doc') diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 528b3c745e7..6f45fd38780 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -38,6 +38,7 @@ Shell commands pstore qfw sbi + size true scp03 reset diff --git a/doc/usage/size.rst b/doc/usage/size.rst new file mode 100644 index 00000000000..f0c35e48265 --- /dev/null +++ b/doc/usage/size.rst @@ -0,0 +1,40 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +size command +============ + +Synopsis +-------- + +:: + + size + +Description +----------- + +The size command determines the size of a file and sets the environment variable +filesize to this value. If filename points to a directory, the value is set to +zero. + +If the command fails, the filesize environment variable is not changed. + +dev + device number + +part + partition number, defaults to 1 + +filename + path to file + +Configuration +------------- + +The size command is only available if CONFIG_CMD_FS_GENERIC=y. + +Return value +------------ + +The return value $? is set to 0 (true) if the command succeded and to 1 (false) +otherwise. -- cgit v1.2.3 From 06262c3836c3cb1b547c4bfd40e73d0e98b7a5fc Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 16 May 2021 00:34:28 +0200 Subject: doc: extension.rst missing in doc/usage/index.rst 'make htmldocs' results in a build warning checking consistency... doc/usage/extension.rst: WARNING: document isn't included in any toctree Add the document to the index. Fixes: 2f84e9cf06d3 ("cmd: add support for a new "extension" command") Signed-off-by: Heinrich Schuchardt --- doc/usage/index.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 6f45fd38780..c1f9b6a53b3 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -26,6 +26,7 @@ Shell commands conitrace echo exception + extension exit false fatinfo -- cgit v1.2.3