afs-attrs-cast-date-to-int-to-avoid-negative-dates-20020516

cheap hack to avoid negative date problem which occasionally plagues solaris
This commit is contained in:
Derrick Brashear 2002-05-16 14:47:28 +00:00
parent 10486b5652
commit c28c22cead

View File

@ -97,7 +97,7 @@ afs_CopyOutAttrs(avc, attrs)
attrs->va_nlink = fakedir ? 100 : avc->m.LinkCount; attrs->va_nlink = fakedir ? 100 : avc->m.LinkCount;
attrs->va_size = fakedir ? 4096 : avc->m.Length; attrs->va_size = fakedir ? 4096 : avc->m.Length;
attrs->va_atime.tv_sec = attrs->va_mtime.tv_sec = attrs->va_ctime.tv_sec = attrs->va_atime.tv_sec = attrs->va_mtime.tv_sec = attrs->va_ctime.tv_sec =
fakedir ? 0 : avc->m.Date; fakedir ? 0 : (int)avc->m.Date;
/* set microseconds to be dataversion # so that we approximate NFS-style /* set microseconds to be dataversion # so that we approximate NFS-style
* use of mtime as a dataversion #. We take it mod 512K because * use of mtime as a dataversion #. We take it mod 512K because
* microseconds *must* be less than a million, and 512K is the biggest * microseconds *must* be less than a million, and 512K is the biggest