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