Question about file system checks

Ivan Voras ivoras at freebsd.org
Fri Mar 28 14:03:35 PDT 2008


On 28/03/2008, David Malone <dwmalone at maths.tcd.ie> wrote:
> On Fri, Mar 28, 2008 at 04:26:16PM +0100, Ivan Voras wrote:
>  > All were tested within the same time: 50 seconds. Details: the machine
>  > being tested was connected to a "reporter" machine via plain crossover
>  > cable, the reporter had a TCP server and the tested machine had a TCP
>  > client that run a tight loop of IO operations, single threaded, randomly
>  > choosing between creating files and directories, appending to them and
>  > changing (a random amount of data in a random position) them, then
>  > sending to the server a description (log) of each IO operation after it
>  > has been done. These were several Python scripts I wrote.
>
>  Our of curiosity, if you call fsync on some subset of the files
>  after creating them, do they all the files on which fsync completed
>  exist after the fsck?

It should be easy to check, but I don't have the hardware any more so
I can't. For what it's worth, files were opened and closed for the
duration of the operations. I agree that fsync-ing files should make
them more persistent.


More information about the freebsd-stable mailing list