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