Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108087
b: refs/heads/master
c: 0510eeb
h: refs/heads/master
i:
  108085: 957408c
  108083: c3c55ea
  108079: f075dd8
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed Aug 6, 2008
1 parent 06a8613 commit 77ef478
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: feb3e20cee25729447e1abdcb40c040b691d457a
refs/heads/master: 0510eeb7367aca017c6320d04cfd9cbc3b5dd992
22 changes: 17 additions & 5 deletions trunk/fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1709,21 +1709,18 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
return rc;
}

int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
static int
cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
{
int xid;
struct inode *inode = direntry->d_inode;
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
struct cifsTconInfo *pTcon = cifs_sb->tcon;
struct cifsInodeInfo *cifsInode = CIFS_I(inode);
char *full_path = NULL;
int rc = -EACCES;
__u32 dosattr = 0;
__u64 mode = NO_CHANGE_64;

if (pTcon->unix_ext)
return cifs_setattr_unix(direntry, attrs);

xid = GetXid();

cFYI(1, ("setattr on file %s attrs->iavalid 0x%x",
Expand Down Expand Up @@ -1850,6 +1847,21 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
return rc;
}

int
cifs_setattr(struct dentry *direntry, struct iattr *attrs)
{
struct inode *inode = direntry->d_inode;
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
struct cifsTconInfo *pTcon = cifs_sb->tcon;

if (pTcon->unix_ext)
return cifs_setattr_unix(direntry, attrs);

return cifs_setattr_nounix(direntry, attrs);

/* BB: add cifs_setattr_legacy for really old servers */
}

#if 0
void cifs_delete_inode(struct inode *inode)
{
Expand Down

0 comments on commit 77ef478

Please sign in to comment.