aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-09-27 23:35:57 -0400
committerSteve French <sfrench@us.ibm.com>2006-09-27 23:35:57 -0400
commit1bd5bbcb6531776a8f73e2cc6287fc4dd542e1c7 (patch)
tree7c41514f13224d6292a1bb90636f44c3c027b2e8 /fs/cifs/readdir.c
parent0889a9441d98af7951c5377647413d79c84c9efa (diff)
[CIFS] Legacy time handling for Win9x and OS/2 part 1
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r--fs/cifs/readdir.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index 9aeb58a7d36..71e86c38e63 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -135,12 +135,19 @@ static void fill_in_inode(struct inode *tmp_inode, int new_buf_type,
135 tmp_inode->i_ctime = 135 tmp_inode->i_ctime =
136 cifs_NTtimeToUnix(le64_to_cpu(pfindData->ChangeTime)); 136 cifs_NTtimeToUnix(le64_to_cpu(pfindData->ChangeTime));
137 } else { /* legacy, OS2 and DOS style */ 137 } else { /* legacy, OS2 and DOS style */
138/* struct timespec ts;*/
138 FIND_FILE_STANDARD_INFO * pfindData = 139 FIND_FILE_STANDARD_INFO * pfindData =
139 (FIND_FILE_STANDARD_INFO *)buf; 140 (FIND_FILE_STANDARD_INFO *)buf;
140 141
142/* ts = cnvrtDosUnixTm(
143 le16_to_cpu(pfindData->LastWriteDate),
144 le16_to_cpu(pfindData->LastWriteTime));*/
141 attr = le16_to_cpu(pfindData->Attributes); 145 attr = le16_to_cpu(pfindData->Attributes);
142 allocation_size = le32_to_cpu(pfindData->AllocationSize); 146 allocation_size = le32_to_cpu(pfindData->AllocationSize);
143 end_of_file = le32_to_cpu(pfindData->DataSize); 147 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 */
144 tmp_inode->i_atime = CURRENT_TIME; 151 tmp_inode->i_atime = CURRENT_TIME;
145 /* tmp_inode->i_mtime = BB FIXME - add dos time handling 152 /* tmp_inode->i_mtime = BB FIXME - add dos time handling
146 tmp_inode->i_ctime = 0; BB FIXME */ 153 tmp_inode->i_ctime = 0; BB FIXME */