From patchwork Wed Aug 4 14:11:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Metzmacher X-Patchwork-Id: 117046 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o74ECAaf020389 for ; Wed, 4 Aug 2010 14:13:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758040Ab0HDOMK (ORCPT ); Wed, 4 Aug 2010 10:12:10 -0400 Received: from mo-p05-ob.rzone.de ([81.169.146.182]:42319 "EHLO mo-p05-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758047Ab0HDOMJ (ORCPT ); Wed, 4 Aug 2010 10:12:09 -0400 X-RZG-AUTH: :IXQkeEW8Yfo/5haL0ckzWIsAYh739YBunhBBa3aNBybZ0RbCJO+qMzncuA== X-RZG-CLASS-ID: mo05 Received: from localhost.localdomain (xdsl-78-34-239-115.netcologne.de [78.34.239.115]) by post.strato.de (fruni mo33) (RZmta 23.4) with (EDH-RSA-DES-CBC3-SHA encrypted) ESMTP id c04253m74DdRcm ; Wed, 4 Aug 2010 16:12:06 +0200 (MEST) From: Stefan Metzmacher To: smfrench@gmail.com Cc: linux-cifs@vger.kernel.org, Stefan Metzmacher Subject: [PATCH 3/8] cifs: add CIFSCheckMFSymlink() as stub Date: Wed, 4 Aug 2010 16:11:44 +0200 Message-Id: <1280931109-22380-4-git-send-email-metze@samba.org> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 04 Aug 2010 14:13:30 +0000 (UTC) diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 2eaebbd..e94e095 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -409,4 +409,7 @@ extern int CIFSSMBSetPosixACL(const int xid, struct cifsTconInfo *tcon, extern int CIFSGetExtAttr(const int xid, struct cifsTconInfo *tcon, const int netfid, __u64 *pExtAttrBits, __u64 *pMask); extern void cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb); +extern int CIFSCheckMFSymlink(struct cifs_fattr *fattr, + const unsigned char *path, + struct cifs_sb_info *cifs_sb, int xid); #endif /* _CIFSPROTO_H */ diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index a15b3a9..c4121de 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -661,6 +661,13 @@ int cifs_get_inode_info(struct inode **pinode, if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) cifs_sfu_mode(&fattr, full_path, cifs_sb, xid); + /* query for SFU type info if supported and needed */ + if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MF_SYMLINKS) { + tmprc = CIFSCheckMFSymlink(&fattr, full_path, cifs_sb, xid); + if (tmprc) + cFYI(1, "CIFSCheckMFSymlink: %d", tmprc); + } + if (!*pinode) { *pinode = cifs_iget(sb, &fattr); if (!*pinode) diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 2358a5f..985373c 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c @@ -48,6 +48,14 @@ CIFSQueryMFSymLink(const int xid, struct cifsTconInfo *tcon, } int +CIFSCheckMFSymlink(struct cifs_fattr *fattr, + const unsigned char *path, + struct cifs_sb_info *cifs_sb, int xid) +{ + return 0; +} + +int cifs_hardlink(struct dentry *old_file, struct inode *inode, struct dentry *direntry) {