/*1* fs/cifs/export.c2*3* Copyright (C) International Business Machines Corp., 20074* Author(s): Steve French ([email protected])5*6* Common Internet FileSystem (CIFS) client7*8* Operations related to support for exporting files via NFSD9*10* This library is free software; you can redistribute it and/or modify11* it under the terms of the GNU Lesser General Public License as published12* by the Free Software Foundation; either version 2.1 of the License, or13* (at your option) any later version.14*15* This library is distributed in the hope that it will be useful,16* but WITHOUT ANY WARRANTY; without even the implied warranty of17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See18* the GNU Lesser General Public License for more details.19*20* You should have received a copy of the GNU Lesser General Public License21* along with this library; if not, write to the Free Software22* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA23*/2425/*26* See Documentation/filesystems/nfs/Exporting27* and examples in fs/exportfs28*29* Since cifs is a network file system, an "fsid" must be included for30* any nfs exports file entries which refer to cifs paths. In addition31* the cifs mount must be mounted with the "serverino" option (ie use stable32* server inode numbers instead of locally generated temporary ones).33* Although cifs inodes do not use generation numbers (have generation number34* of zero) - the inode number alone should be good enough for simple cases35* in which users want to export cifs shares with NFS. The decode and encode36* could be improved by using a new routine which expects 64 bit inode numbers37* instead of the default 32 bit routines in fs/exportfs38*39*/4041#include <linux/fs.h>42#include <linux/exportfs.h>43#include "cifsglob.h"44#include "cifs_debug.h"45#include "cifsfs.h"4647#ifdef CIFS_NFSD_EXPORT48static struct dentry *cifs_get_parent(struct dentry *dentry)49{50/* BB need to add code here eventually to enable export via NFSD */51cFYI(1, "get parent for %p", dentry);52return ERR_PTR(-EACCES);53}5455const struct export_operations cifs_export_ops = {56.get_parent = cifs_get_parent,57/* Following five export operations are unneeded so far and can default:58.get_dentry =59.get_name =60.find_exported_dentry =61.decode_fh =62.encode_fs = */63};6465#endif /* CIFS_NFSD_EXPORT */66676869