ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / fs / cifs / xattr.c
1 /*
2  *   fs/cifs/xattr.c
3  *
4  *   Copyright (c) International Business Machines  Corp., 2003
5  *   Author(s): Steve French (sfrench@us.ibm.com)
6  *
7  *   This library is free software; you can redistribute it and/or modify
8  *   it under the terms of the GNU Lesser General Public License as published
9  *   by the Free Software Foundation; either version 2.1 of the License, or
10  *   (at your option) any later version.
11  *
12  *   This library is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
15  *   the GNU Lesser General Public License for more details.
16  *
17  *   You should have received a copy of the GNU Lesser General Public License
18  *   along with this library; if not, write to the Free Software
19  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */
21
22 #include <linux/fs.h>
23
24 int cifs_removexattr(struct dentry * direntry, const char * name)
25 {
26         int rc = -EOPNOTSUPP;
27         return rc;
28 }
29
30 int cifs_setxattr(struct dentry * direntry, const char * name,
31         const void * value, size_t size, int flags)
32 {
33         int rc = -EOPNOTSUPP;
34         return rc;
35 }
36
37 ssize_t cifs_getxattr(struct dentry * direntry, const char * name,
38          void * value, size_t size)
39 {
40         ssize_t rc = -EOPNOTSUPP;
41         return rc;
42 }
43
44 ssize_t cifs_listxattr(struct dentry * direntry, char * ea_data, size_t ea_size)
45 {
46         ssize_t rc = -EOPNOTSUPP;
47
48         /* return dosattributes as pseudo xattr */
49         /* return alt name if available as pseudo attr */
50
51         /* if proc/fs/cifs/streamstoxattr is set then
52                 search server for EAs or streams to 
53                 returns as xattrs */
54
55         return rc;
56 }