invalid nanosecond may be returned in file times

Bug #1811353 reported by Andrey Bondarenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smbnetfs (Ubuntu)
Fix Released
Medium
Unassigned

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.

Revision history for this message
Andrey Bondarenko (abone) wrote :

The bug is forwarded upstream, see
https://sourceforge.net/p/smbnetfs/bugs/46/

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...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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
Revision history for this message
Andrey Bondarenko (abone) wrote :

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

Revision history for this message
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.

Mathew Hodson (mhodson)
Changed in smbnetfs (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Mathew Hodson (mhodson) wrote :
tags: added: patch-rejected-upstream
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Hi Andrey, thanks for your work on this!

Could you please update your debdiff to include the patch that was accepted upstream?

Additionally, was your plan to get this sponsored to a stable release, or just the development release? If you wanted to get it sponsored to a stable release, please adjust the bug description to follow the SRU template, which you can find here: https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template

Revision history for this message
Simon Quigley (tsimonq2) wrote :

Unsubscribing the sponsors team; please resubscribe once those questions are answered.

Thanks again!

Revision history for this message
Tehnick (tehnick) wrote :

Fixed in 0.6.3-1

Changed in smbnetfs (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.