Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: proj/portage:master commit in: man/, pym/portage/dbapi/, pym/portage/, cnf/
Date: Thu, 25 Oct 2012 15:10:55
Message-Id: 5089542C.9030501@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Re: proj/portage:master commit in: man/, pym/portage/dbapi/, pym/portage/, cnf/ by Fabian Groffen
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