Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!mmdf From: unix3@ce.chalmers.se (Unix Internt. Labgrupp 3) Newsgroups: comp.os.minix Subject: Re: fix to diskcheck(1) Message-ID: <31216@nigel.ee.udel.edu> Date: 21 Sep 90 22:43:12 GMT Sender: mmdf@ee.udel.edu Lines: 21 >]I reformatted my HD this week-end. After this, I tried to run diskcheck on >]my Minix partitions. It failed, saying it couldn't purge the disk cache. Of >]course it couldn't: it does this by reading NR_BUFS from /dev/ram, and I >]have no ramdisk! So I fixed diskcheck; it will now print a warning, then >]continue (if you get this warning, you might get wrong results as reads are >]now cached). >Just a thought: >wouldn't it be better to read NR_BUFS from /dev/null or /dev/mem? I have been thinking about this ever since I first saw the diskcheck source. Why is there a need for messing with NR_BUFS? I presume there is one, as you are not using a simple sync() ... Perhaps you could explain this or if it would suffice why it isn't there?! With My Regards, Andrew Olausson