Re: Does Linux sync(2) wait?
From: Pascal Schmidt
Date: Sun Mar 21 2004 - 10:32:03 EST
On Sun, 21 Mar 2004 11:40:08 +0100, you wrote in linux.kernel:
> Looking at 2.4 and 2.6 sources, Linux does appear to wait before returning.
> I'm especially interested if NFS data is sent to the server. (I want to
> be able to take a stable snapshot of a netapp volume.)
No idea about NFS, but sync(1) does wait. When I push 500M out to my
MO drive, the cp operation returns fairly quickly because I usually
have more than 500M free memory. Then I run sync(1), which takes about
20 minutes before it returns.
--
Ciao,
Pascal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/