Opened 4 months ago

#18972 new bug

df always prints RAMFS total size as 0

Reported by: dovsienko Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: File Systems/RAMFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Whilst the free size seems to be about correct, the total size is always zero:

> dd if=/dev/zero bs=1M count=500 of=/boot/system/var/shared_memory/zero.bin
500+0 records in
500+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 35.0816 s, 14.9 MB/s

> df -a
 Type      Total     Free      Flags   Device                   Mounted on
--------- --------- --------- ------- ------------------------ -----------------
rootfs            0         0 ------W                          /                 
devfs             0         0 ------W                          /dev              
bfs        22.0 GiB  10.5 GiB QAM-P-W   /dev/disk/scsi/0/0/0/0 /boot             
packagefs         0         0 QAM-P--                          /boot/system      
packagefs         0         0 QAM-P--                          /boot/home/config 
ramfs             0 427.9 MiB QAM--RW                          /boot/system/var/shared_memory 

> rm /boot/system/var/shared_memory/zero.bin 

> df -a
 Type      Total     Free      Flags   Device                   Mounted on
--------- --------- --------- ------- ------------------------ -----------------
rootfs            0         0 ------W                          /                 
devfs             0         0 ------W                          /dev              
bfs        22.0 GiB  10.5 GiB QAM-P-W   /dev/disk/scsi/0/0/0/0 /boot             
packagefs         0         0 QAM-P--                          /boot/system      
packagefs         0         0 QAM-P--                          /boot/home/config 
ramfs             0 936.9 MiB QAM--RW                          /boot/system/var/shared_memory

Change History (0)

Note: See TracTickets for help on using tickets.