timestamps: superblock stores attributes cansettime,time_delta

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2010-10-12 09:42:36 -04:00
parent cc298599d8
commit e67560fd4a
4 changed files with 31 additions and 5 deletions

View file

@ -1546,6 +1546,10 @@ static bool_t decode_file_attrs(
if (!xdr_u_int32_t(xdr, &info->rdattr_error))
return FALSE;
}
if (attrs->attrmask.arr[0] & FATTR4_WORD0_CANSETTIME) {
if (!xdr_bool(xdr, &info->cansettime))
return FALSE;
}
if (attrs->attrmask.arr[0] & FATTR4_WORD0_CASE_INSENSITIVE) {
if (!xdr_bool(xdr, &info->case_insensitive))
return FALSE;
@ -1600,6 +1604,10 @@ static bool_t decode_file_attrs(
if (!xdr_nfstime4(xdr, &info->time_create))
return FALSE;
}
if (attrs->attrmask.arr[1] & FATTR4_WORD1_TIME_DELTA) {
if (!xdr_nfstime4(xdr, info->time_delta))
return FALSE;
}
if (attrs->attrmask.arr[1] & FATTR4_WORD1_TIME_MODIFY) {
if (!xdr_nfstime4(xdr, &info->time_modify))
return FALSE;