incubator-nuttx/fs
Junbo Zheng 7c8adecca8 fs/mount: correct `df -h` output format
config: ./tools/configure.sh sim:nsh
correct before
```
nsh> df
  Block    Number
  Size     Blocks       Used   Available Mounted on
     0          0          0           0 /bin
    64          8          8           0 /etc
     0          0          0           0 /proc
   512        985          2         983 /tmp
nsh>
nsh> df -h
  Filesystem    Size      Used  Available Mounted on
  binfs      0B        0B         0B /bin
  romfs      512B      512B         0B /etc
  procfs     0B        0B         0B /proc
  vfat       492K        1K       491K /tmp
nsh>
```
correct after
```
nsh> df
  Block    Number
  Size     Blocks       Used   Available Mounted on
     0          0          0           0 /bin
    64          8          8           0 /etc
     0          0          0           0 /proc
   512        985          2         983 /tmp
nsh> df -h
  Filesystem      Size      Used  Available Mounted on
  binfs             0B        0B         0B /bin
  romfs           512B      512B         0B /etc
  procfs            0B        0B         0B /proc
  vfat            492K        1K       491K /tmp
nsh>
```

config: ./tools/configure.sh ../vendor/sim/boards/miwear/configs/miwear -j16
correct before
```
nsh>
nsh> df
  Block    Number
  Size     Blocks       Used   Available Mounted on
     0          0          0           0 /bin
  4096  240075962   87644775   152431187 /data
    64       3621       3621           0 /etc
  4096  240075962   87644775   152431187 /font
  4096  240075962   87644775   152431187 /i18n
     0          0          0           0 /proc
  4096  240075962   87644775   152431187 /resource/app
  4096  240075962   87644775   152431187 /resource/misc
  4096  240075962   87644775   152431187 /resource/recovery
  4096  240075962   87644775   152431187 /resource/system
  4096  240075962   87644775   152431187 /system
   512         26         24           2 /tmp
  4096  240075962   87644775   152431187 /vendor
  4096  240075962   87644775   152431187 /watchface
nsh>
nsh> df -h
  Filesystem    Size      Used  Available Mounted on
  binfs      0B        0B         0B /bin
  hostfs     915G      334G       581G /data
  romfs      226K      226K         0B /etc
  hostfs     915G      334G       581G /font
  hostfs     915G      334G       581G /i18n
  procfs     0B        0B         0B /proc
  hostfs     915G      334G       581G /resource/app
  hostfs     915G      334G       581G /resource/misc
  hostfs     915G      334G       581G /resource/recovery
  hostfs     915G      334G       581G /resource/system
  hostfs     915G      334G       581G /system
  tmpfs      13K       12K         1K /tmp
  hostfs     915G      334G       581G /vendor
  hostfs     915G      334G       581G /watchface
```
correct after
```
nsh>
nsh> date
Mon, Jul 03 02:09:53 2023
nsh>
nsh> df
  Block    Number
  Size     Blocks       Used   Available Mounted on
     0          0          0           0 /bin
  4096  240075962   87644776   152431186 /data
    64       3621       3621           0 /etc
  4096  240075962   87644776   152431186 /font
  4096  240075962   87644776   152431186 /i18n
     0          0          0           0 /proc
  4096  240075962   87644776   152431186 /resource/app
  4096  240075962   87644776   152431186 /resource/misc
  4096  240075962   87644776   152431186 /resource/recovery
  4096  240075962   87644776   152431186 /resource/system
  4096  240075962   87644776   152431186 /system
   512         26         24           2 /tmp
  4096  240075962   87644776   152431186 /vendor
  4096  240075962   87644776   152431186 /watchface
nsh>
nsh> df -h
  Filesystem      Size      Used  Available Mounted on
  binfs             0B        0B         0B /bin
  hostfs          915G      334G       581G /data
  romfs           226K      226K         0B /etc
  hostfs          915G      334G       581G /font
  hostfs          915G      334G       581G /i18n
  procfs            0B        0B         0B /proc
  hostfs          915G      334G       581G /resource/app
  hostfs          915G      334G       581G /resource/misc
  hostfs          915G      334G       581G /resource/recovery
  hostfs          915G      334G       581G /resource/system
  hostfs          915G      334G       581G /system
  tmpfs            13K       12K         1K /tmp
  hostfs          915G      334G       581G /vendor
  hostfs          915G      334G       581G /watchface
nsh>
```

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2023-07-03 23:09:46 +03:00
..
aio libs/libc/aio: refactor the fd flags check procedure 2023-06-30 20:23:09 -03:00
binfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
cromfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
driver semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
fat fs/fat: Fix undefined behavior in signed integer overflow check 2023-06-28 23:02:25 +08:00
hostfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
inode libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
littlefs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
mmap semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
mount fs/mount: correct `df -h` output format 2023-07-03 23:09:46 +03:00
mqueue fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
nfs drivers/wireles/gs2200m: add NET_TCP dependency to NFS_DONT_BIND_TCP_SOCKET option 2023-07-03 13:32:31 +08:00
nxffs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
partition fs/partition: register partition device if caller doesn't provide handler 2023-05-27 20:23:17 -03:00
procfs sched: Remove the unnecessary cast from pid_t to int 2023-06-19 11:37:34 +03:00
romfs fs_romfs: avoid the romfs ERROR log when enable FDSAN 2023-06-17 19:31:17 +08:00
rpmsgfs fs/rpmsgfs: Zero dirs after realloc to avoid stale data 2023-06-28 10:29:21 -03:00
semaphore sem_unlink: return ENOENT when the named semaphore does not exist. 2023-01-09 22:46:30 +08:00
shm fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
smartfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
socket vfs/fs_truncate.c:Add socket judgment to return correct errno. 2023-01-17 10:29:41 +08:00
spiffs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
tmpfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
unionfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
userfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
vfs sendfile: Fixed behavior of sendfile when count is set to zero. 2023-06-22 16:10:58 +08:00
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Makefile Minor style clean up 2023-01-28 19:53:20 +02:00
fs_initialize.c fs: Flush the file system cache in BOARDIOC_POWEROFF too 2023-04-21 20:37:59 +03:00