dCache / nfs4j

Pure Java NFSv3 and NFSv4.2 implementation
Other
240 stars 76 forks source link

Nanosecond timestamp support #121

Open stevenxxiu opened 1 year ago

stevenxxiu commented 1 year ago

Android kernels don't have NFS by default, so I'm trying to use this in Android.

I see however that only millisecond timestamp resolution is supported. NFS supports nanosecond timestamp per https://www.ietf.org/rfc/rfc3530.txt.

Can timestamps be changed to nanoseconds?

kofemann commented 1 year ago

The solution will be to update the org.dcache.nfs.vfs.Stat class to use Instant instead of long for various timestamps.