1 |
On 10/25/2012 05:32 AM, Fabian Groffen wrote: |
2 |
> On 25-10-2012 02:45:41 -0700, Zac Medico wrote: |
3 |
>>> can't you use os.fdatasync() or os.fsync() instead? |
4 |
>> |
5 |
>> os.fdatasync() or os.fsync() only work for single files, right? We don't |
6 |
>> want to sync them individually, since that wastes disk bandwidth. It's |
7 |
>> much more efficient to sync the whole filesystem at once, like syncfs does. |
8 |
> |
9 |
> You use syncfs, which according to the man-page requires a |
10 |
> filedescriptor. Hence my suggestion. |
11 |
|
12 |
Yeah, that's just an artifact of the syncfs api. Apparently the kernel |
13 |
just needs that to map the call back to the relevant filesystem. |
14 |
-- |
15 |
Thanks, |
16 |
Zac |