blob: f0c35e4826575d7f1d622b2db5e96ee9b50d212f [file] [log] [blame]
Heinrich Schuchardt41e24242021-05-15 13:08:57 +02001.. SPDX-License-Identifier: GPL-2.0+
2
3size command
4============
5
6Synopsis
7--------
8
9::
10
11 size <interface> <dev[:part]> <filename>
12
13Description
14-----------
15
16The size command determines the size of a file and sets the environment variable
17filesize to this value. If filename points to a directory, the value is set to
18zero.
19
20If the command fails, the filesize environment variable is not changed.
21
22dev
23 device number
24
25part
26 partition number, defaults to 1
27
28filename
29 path to file
30
31Configuration
32-------------
33
34The size command is only available if CONFIG_CMD_FS_GENERIC=y.
35
36Return value
37------------
38
39The return value $? is set to 0 (true) if the command succeded and to 1 (false)
40otherwise.