Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41167
b: refs/heads/master
c: 8d6286f
h: refs/heads/master
i:
  41165: 72aca23
  41163: 8434db2
  41159: f150cc9
  41151: 7f45c39
v: v3
  • Loading branch information
Steve French committed Nov 16, 2006
1 parent d6556c8 commit 3e3e589
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31ec35d6c81175016a6372571eab23b6bd40b406
refs/heads/master: 8d6286fdfd290589f8446ec1503702227263dcfd
6 changes: 6 additions & 0 deletions trunk/fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ int cifs_get_inode_info(struct inode **pinode,
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
char *tmp_path;
char *buf = NULL;
int adjustTZ = FALSE;

pTcon = cifs_sb->tcon;
cFYI(1,("Getting info on %s", search_path));
Expand Down Expand Up @@ -348,6 +349,7 @@ int cifs_get_inode_info(struct inode **pinode,
pfindData, cifs_sb->local_nls,
cifs_sb->mnt_cifs_flags &
CIFS_MOUNT_MAP_SPECIAL_CHR);
adjustTZ = TRUE;
}

}
Expand Down Expand Up @@ -444,6 +446,10 @@ int cifs_get_inode_info(struct inode **pinode,
inode->i_ctime =
cifs_NTtimeToUnix(le64_to_cpu(pfindData->ChangeTime));
cFYI(0, ("Attributes came in as 0x%x", attr));
if(adjustTZ && (pTcon->ses) && (pTcon->ses->server)) {
inode->i_ctime.tv_sec += pTcon->ses->server->timeAdj;
inode->i_mtime.tv_sec += pTcon->ses->server->timeAdj;
}

/* set default mode. will override for dirs below */
if (atomic_read(&cifsInfo->inUse) == 0)
Expand Down

0 comments on commit 3e3e589

Please sign in to comment.