[issue27879] add os.syncfs()

Josh Rosenberg report at bugs.python.org
Mon Aug 29 17:50:03 EDT 2016


Josh Rosenberg added the comment:

So syncfs is basically "sync, but only for a single file system corresponding to a given open file"? Given it's Linux only (doesn't look like it's part of any standard that UNIX or BSD OSes would provide), it seems rather special purpose to expose in Python. Is there some equivalent API for UNIX/BSD variants that `syncfs` could use to provide a single API that works on at least all UNIX-like systems? If not, it seems like this is an optimization that doesn't generalize; is it worth providing it instead of just having users call os.sync and accepting the cost of syncing other file systems?

----------
nosy: +josh.r

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27879>
_______________________________________


More information about the Python-bugs-list mailing list