Skip to content

Make os.fsync() failure non-fatal. Needed on mounted CIFS file systems.#38

Open
dov wants to merge 1 commit into
bup:masterfrom
dov:master
Open

Make os.fsync() failure non-fatal. Needed on mounted CIFS file systems.#38
dov wants to merge 1 commit into
bup:masterfrom
dov:master

Conversation

@dov

@dov dov commented Nov 6, 2017

Copy link
Copy Markdown

Signed-off-by: Dov Grobgeld dov.grobgeld@gmail.com

Trying to do os.fsync() on a CIFS mounted file system from Linux is not supported. This patch makes the failure non-fatal.

Signed-off-by: Dov Grobgeld <dov.grobgeld@gmail.com>
@rlbdv

rlbdv commented Dec 28, 2017

Copy link
Copy Markdown
Member

Thanks for the help. In accordance with HACKING I've redirected this pull request to the list for discussion: https://groups.google.com/d/msg/bup-list/oJbemMZwnic/icvYnhJABAAJ

@kronenpj kronenpj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception could be more specific, OSError is what I see being thrown.

@ccorn

ccorn commented Feb 21, 2020

Copy link
Copy Markdown
Contributor

There are some interesting 2009 posts by Linus Torvalds with potentially relevant clues about git/fsync/CIFS there and there. What I take away from those is that the real question usually is whether the code that actually does file updates does them such that fsync is nice to have, but not terribly important. If so, then the above patch seems to do the right thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants