Support more accurate timestamps for utimens().
authorDerrik Pates <demon@now.ai>
Sun, 4 Mar 2012 18:05:57 +0000 (11:05 -0700)
committerDerrik Pates <demon@now.ai>
Sun, 4 Mar 2012 18:05:57 +0000 (11:05 -0700)
commit8d3e4fdcf602ad70a22258cc4728c03509d81d3c
tree7c4e1964f45732bfdcdf80032af3168a7e715a48
parentedb5c38bcf65f8176b6886ad705d02ac7ba9b8c6
Support more accurate timestamps for utimens().

Added an option to Fuse::main(), specifically "utimens_as_array",
that causes timestamps to be passed as arrays containing the UNIX
timestamp (seconds since the epoch), followed by the number of
nanoseconds, instead of as a floating-point value, for better
precision. However, I've noticed that when (on Linux, at least)
you "touch" a file, which ends up with utimensat() getting passed
a NULL value for the timestamp array, the resulting timestamp that
utimens() gets always has a "0" for the nanosecond field. I think
that's a FUSE misfunction.
Fuse.pm
Fuse.xs