Hi, I have encountered a problem remounting a memory file system (mfs) read-only. When create a mfs with, say
# mount_mfs -s 16384 swap /mfs then I get the following output by mount: mfs:9556 on /mfs type mfs (asynchronous, local, size=16384 512-blocks) where the number 9556 is the process number. Now, when I want to remount this readonly, trying it the usual way I get the following error: # mount -ur /mfs mount_mfs: /dev/mfs:9556: No such file or directory The problem is revealed by # mount -dvur /mfs exec: mount_mfs -o async -o update -o ro mfs:9556 /mfs The problem is thus the name of the special which is taken from the mount table. I can now of course do the remount with the modified command line # mount_mfs -o async -o update -o ro swap /mfs The problem I am having here is that this way, I have to take care of all the mount options the mfs mount may have in addition to the ones above by myself since the mount_mfs command does not seem to collect these automagically like the mount command. I can for example modify the output of the mount -dvur command with sed to change mfs:<number> into "swap". But this is kind of a hack. So my question is: Is there a better way to remount the mfs? Thanks in advance, Michael