Bug 124905 - RAMdisk doesn't keep its files
Summary: RAMdisk doesn't keep its files
Keywords:
Status: CLOSED DUPLICATE of bug 124904
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 2
Hardware: i686
OS: Linux
medium
low
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-06-01 11:49 UTC by Wouter Liefting
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:03:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Wouter Liefting 2004-06-01 11:49:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1)
Gecko/20021003

Description of problem:
After creating and mounting a RAM disk you can store files on it.
After unmounting and then mounting the RAM disk again these files are
gone. This used to work in other distributions and kernel versions.

Note: the fact that this does not work in itself is not a problem
since you should not use RAM disks for this but use shmfs instead. But
I've got the feeling that this a more fundamental bug somewhere in the
filesystem code, instead of a RAM disk bug. Hence the report.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
mkdir /mnt/ramdisk

dd if=/dev/zero of=/dev/ram0 bs=1024k count=4
mke2fs /dev/ram0

(Note - the RAM disk is now 16 MB instead of 4 MB. Strange...)

mount /dev/ram0 /mnt/ramdisk
df                                 (confirms that the FS size is 16 MB)
cp /etc/passwd /mnt/ramdisk/passwd
cat /mnt/ramdisk/passwd            (no problem)
umount /mnt/ramdisk

mount /dev/ram0 /mnt/ramdisk       (no problem so the filesystem info
is still there!)
cat /mnt/ramdisk/passwd            (no such file or directory!)
umount /mnt/ramdisk
    

Actual Results:
1. Filesystem is 16 MB
2. /mnt/ramdisk/passwd: no such file or directory

Expected Results:
1. Filesystem size should have been the size of the ramdisk - 4 MB
2. File should be there and viewable

Additional info:

This has always worked on 2.4 kernels and earlier. Does not work under
the default FC2 kernel, and the problem has been confirmed under
vanilla 2.6.6 as well.

Comment 1 Wouter Liefting 2004-06-01 11:54:08 UTC
Should not use the "back" button on my browser - this creates multiple
bug reports... :-(

*** This bug has been marked as a duplicate of 124904 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:03:54 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.