invalid nanosecond may be returned in file times

Bug #1811353 reported by Andrey Bondarenko on 2019-01-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smbnetfs (Ubuntu)

Bug Description

Smbnetfs may return invalid values nanosecond values for file times. Looks like nanosecond may be any random value even outside valid range [0,999999999] or even negative. This lead to problems with tools like rsync and "touch -r" which fail with 'Invalid argument' if source file is on smbnetfs backed FUSE filesystem.

Andrey Bondarenko (abone) wrote :

The bug is forwarded upstream, see

Attaching minimal workaround patch for the bug. It works for me, but I'm not an expert so upstream will provide better solution, some day...

The attachment "lp1811353.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Andrey Bondarenko (abone) wrote :

The patch in comment 1 does not fix problem. Another solution needed.

Andrey Bondarenko (abone) wrote :

The patch in comment 1 fixed only fstat, but further tests show that stat can also return invalid nsec values.
New patch fixes both functions stats and fstat.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers