File truncation fails within CFS mounted directory

Bug #226609 reported by restamp
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cfs (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Hardy by cecst
Nominated for Intrepid by cecst
Nominated for Jaunty by cecst

Bug Description

Binary package hint: cfs

Any operation involving the truncation of a file seems to fail within a CFS mounted filesystem.

Further investigation seems to show this problem was introduced with Gutsy, although I didn't use CFS much on that OS, so I didn't notice it until Hardy. It works fine on Feisty. Perhaps there was a change in Gutsy with the way truncation requests are passed to the NFS daemon?

Example:

$ cmkdir xxx
Key:
Again:
$ cattach xxx
Key:
$ cd /crypt/xxx
$ echo hi > hi
$ echo low > hi
ksh: hi: cannot create [Invalid argument]
$ echo low >> hi
$ cat hi
hi
low
$ > hi
ksh: hi: cannot create [Invalid argument]
$ rm hi
$ echo low > hi
$

Revision history for this message
restamp (restamp) wrote :

Further investigation revealed that the Ubuntu libc has apparently started boundary checking the tv_usec fields of utimes(). For some reason, one of the tv_usec files being passed was 1000000. I added boundary checking, and it appears to have resolved the problem. Patch code attached.

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Any updates on this? Could someone set the importance please.

Changed in cfs (Ubuntu):
status: New → Incomplete
Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in cfs (Ubuntu):
status: Incomplete → Invalid
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.