Opened 3 years ago

Last modified 2 years ago

#16734 new bug

Occasionally duplicated ramdisk

Reported by: miqlas Owned by: axeld
Priority: critical Milestone: Unscheduled
Component: File Systems/BFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description

This is on hrev54850 64 bit.

I have the following in my /boot/home/config/settings/boot/UserBootscript :

ramdisk create -s 3gb
mkfs -q -t bfs /dev/disk/virtual/ram/0/raw RAMDisk
mountvolume RAMDisk

So a Ramdisk gets created at every start. Sometimes tracker shows the created ramdisk duplicated. Will do a screenshot next time i see it.

Attachments (1)

8EC25698-6000-412C-AD73-FA1321DD37DF.png (258.5 KB ) - added by miqlas 3 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by miqlas, 3 years ago

Just happened right now on 64 bit hrev54904:

/> ramdisk list
ID        Size  Associated file
-------------------------------
 0  4294967296                 
/>

According to the ramdisk output there is only one ramdisk, but :

/> ls -la /RAMDisk*
/RAMDisk:
total 12
drwxr-xr-x 1 user root 2048 jan.  23 16:13 .
drwxrwxrwx 1 user root    0 jan.  23 13:36 ..
drwxr-xr-x 1 user root 2048 jan.  23 13:36 trash

/RAMDisk1:
total 12
drwxr-xr-x 1 user root 2048 jan.  23 13:36 .
drwxrwxrwx 1 user root    0 jan.  23 13:36 ..
drwxr-xr-x 1 user root 2048 jan.  23 13:36 trash

/> touch /RAMDisk/TEST

/> ls -la /RAMDisk*
/RAMDisk:
total 14
drwxr-xr-x 1 user root 2048 jan.  23 16:13 .
drwxrwxrwx 1 user root    0 jan.  23 13:36 ..
-rw-r--r-- 1 user root    0 jan.  23 16:13 TEST
drwxr-xr-x 1 user root 2048 jan.  23 13:36 trash

/RAMDisk1:
total 12
drwxr-xr-x 1 user root 2048 jan.  23 13:36 .
drwxrwxrwx 1 user root    0 jan.  23 13:36 ..
drwxr-xr-x 1 user root 2048 jan.  23 13:36 trash
/> 

comment:2 by miqlas, 3 years ago

df output:

/> df
 Mount             Type      Total     Free      Flags   Device
----------------- --------- --------- --------- ------- ------------------------
(...unrelated entries removed...)
/RAMDisk          bfs         4.0 GiB   4.0 GiB QAM-P-W /dev/disk/virtual/ram/0/raw
/RAMDisk1         bfs         4.0 GiB   4.0 GiB QAM-P-W /dev/disk/virtual/ram/0/raw

comment:3 by miqlas, 3 years ago

After unmountin one in Tracker with the righ click menu:

/> df
 Mount             Type      Total     Free      Flags   Device
----------------- --------- --------- --------- ------- ------------------------
(...unrelated entries removed...)
/RAMDisk          bfs         4.0 GiB   4.0 GiB QAM-P-W /dev/disk/virtual/ram/0/raw
/> ramdisk list
ID        Size  Associated file
-------------------------------
 0  4294967296                 
/> 

comment:4 by waddlesplash, 2 years ago

Component: File Systems/RAMFSFile Systems/BFS
Owner: changed from nobody to axeld
Priority: normalcritical

It appears the disk has been mounted twice. That seems ... very bad.

Note: See TracTickets for help on using tickets.