This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2016年08月27日 18:17 by socketpair, last changed 2022年04月11日 14:58 by admin.
| Messages (4) | |||
|---|---|---|---|
| msg273790 - (view) | Author: Марк Коренберг (socketpair) * | Date: 2016年08月27日 18:17 | |
I mean http://linux.die.net/man/2/syncfs |
|||
| msg273888 - (view) | Author: Josh Rosenberg (josh.r) * (Python triager) | Date: 2016年08月29日 21:50 | |
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? |
|||
| msg273900 - (view) | Author: Марк Коренберг (socketpair) * | Date: 2016年08月30日 03:48 | |
1. It is appropriate to call `sync()` when one calls `os.syncfs()` if `syncfs()` syscall is not supported in kernel. 2. https://technet.microsoft.com/sv-se/sysinternals/bb897438(en-us).aspx 3. https://github.com/EricGrange/FlushFileCache ? |
|||
| msg403584 - (view) | Author: Nir Soffer (nirs) * | Date: 2021年10月10日 13:06 | |
Updating python version, this is not relevant to 3.6 now. On linux users can use "sync --file-system /path" but it would be nice if we have something that works on multiple platforms. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:35 | admin | set | github: 72066 |
| 2021年10月10日 13:06:05 | nirs | set | nosy:
+ nirs messages: + msg403584 versions: + Python 3.11, - Python 3.6 |
| 2017年03月01日 15:28:30 | fdrake | set | nosy:
+ fdrake |
| 2016年08月30日 03:48:10 | socketpair | set | messages: + msg273900 |
| 2016年08月29日 21:50:03 | josh.r | set | nosy:
+ josh.r messages: + msg273888 |
| 2016年08月27日 18:17:12 | socketpair | create | |