diff options
author | Steve French <sfrench@us.ibm.com> | 2006-10-06 17:47:09 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-10-06 17:47:09 -0400 |
commit | 268f3be177ce93791da38facc34126b5038cd851 (patch) | |
tree | 93603e3ac7209dd390125d8c71cfaee3ceff7547 /fs/cifs/readdir.c | |
parent | 1a70d6529ad9f5978af846440f8a809784d6e813 (diff) |
[CIFS] readdir (ffirst) enablement of accurate timestamps from legacy servers
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index b0e5db10664c..81e7b2e5fb4d 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c | |||
@@ -139,19 +139,19 @@ static void fill_in_inode(struct inode *tmp_inode, int new_buf_type, | |||
139 | FIND_FILE_STANDARD_INFO * pfindData = | 139 | FIND_FILE_STANDARD_INFO * pfindData = |
140 | (FIND_FILE_STANDARD_INFO *)buf; | 140 | (FIND_FILE_STANDARD_INFO *)buf; |
141 | 141 | ||
142 | /* ts = cnvrtDosUnixTm( | 142 | tmp_inode->i_mtime = cnvrtDosUnixTm( |
143 | le16_to_cpu(pfindData->LastWriteDate), | 143 | le16_to_cpu(pfindData->LastWriteDate), |
144 | le16_to_cpu(pfindData->LastWriteTime));*/ | 144 | le16_to_cpu(pfindData->LastWriteTime)); |
145 | tmp_inode->i_atime = cnvrtDosUnixTm( | ||
146 | le16_to_cpu(pfindData->LastAccessDate), | ||
147 | le16_to_cpu(pfindData->LastAccessTime)); | ||
148 | tmp_inode->i_ctime = cnvrtDosUnixTm( | ||
149 | le16_to_cpu(pfindData->LastWriteDate), | ||
150 | le16_to_cpu(pfindData->LastWriteTime)); | ||
151 | |||
145 | attr = le16_to_cpu(pfindData->Attributes); | 152 | attr = le16_to_cpu(pfindData->Attributes); |
146 | allocation_size = le32_to_cpu(pfindData->AllocationSize); | 153 | allocation_size = le32_to_cpu(pfindData->AllocationSize); |
147 | end_of_file = le32_to_cpu(pfindData->DataSize); | 154 | end_of_file = le32_to_cpu(pfindData->DataSize); |
148 | /* do not need to use current_fs_time helper function since | ||
149 | time not stored for this case so atime can not "go backwards" | ||
150 | by pulling newer older from disk when inode refrenshed */ | ||
151 | tmp_inode->i_atime = CURRENT_TIME; | ||
152 | /* tmp_inode->i_mtime = BB FIXME - add dos time handling | ||
153 | tmp_inode->i_ctime = 0; BB FIXME */ | ||
154 | |||
155 | } | 155 | } |
156 | 156 | ||
157 | /* Linux can not store file creation time unfortunately so ignore it */ | 157 | /* Linux can not store file creation time unfortunately so ignore it */ |