From: Zac Medico <zmedico@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Re: proj/portage:master commit in: man/, pym/portage/dbapi/, pym/portage/, cnf/
Date: Thu, 25 Oct 2012 08:01:00 -0700 [thread overview]
Message-ID: <5089542C.9030501@gentoo.org> (raw)
In-Reply-To: <20121025123212.GE85698@gentoo.org>
On 10/25/2012 05:32 AM, Fabian Groffen wrote:
> On 25-10-2012 02:45:41 -0700, Zac Medico wrote:
>>> can't you use os.fdatasync() or os.fsync() instead?
>>
>> os.fdatasync() or os.fsync() only work for single files, right? We don't
>> want to sync them individually, since that wastes disk bandwidth. It's
>> much more efficient to sync the whole filesystem at once, like syncfs does.
>
> You use syncfs, which according to the man-page requires a
> filedescriptor. Hence my suggestion.
Yeah, that's just an artifact of the syncfs api. Apparently the kernel
just needs that to map the call back to the relevant filesystem.
--
Thanks,
Zac
prev parent reply other threads:[~2012-10-25 15:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1351154722.10b6d0129d062f4d5d8a7611023c3f8cc43f1eab.zmedico@gentoo>
2012-10-25 9:34 ` [gentoo-portage-dev] Re: proj/portage:master commit in: man/, pym/portage/dbapi/, pym/portage/, cnf/ Fabian Groffen
2012-10-25 9:45 ` Zac Medico
2012-10-25 12:32 ` Fabian Groffen
2012-10-25 15:01 ` Zac Medico [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5089542C.9030501@gentoo.org \
--to=zmedico@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox