Blame view
fs/cifs/cifsfs.h
5.95 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 |
/* * fs/cifs/cifsfs.h * |
297647c21 [CIFS] CIFS ACL s... |
4 |
* Copyright (c) International Business Machines Corp., 2002, 2007 |
1da177e4c Linux-2.6.12-rc2 |
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
* Author(s): Steve French (sfrench@us.ibm.com) * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software |
d38d8c74c [CIFS] whitespace... |
19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
1da177e4c Linux-2.6.12-rc2 |
20 21 22 23 |
*/ #ifndef _CIFSFS_H #define _CIFSFS_H |
02323db17 cifs: fix cifs_un... |
24 |
#include <linux/hash.h> |
1da177e4c Linux-2.6.12-rc2 |
25 |
#define ROOT_I 2 |
cc0bad755 cifs: add new cif... |
26 27 |
/* * ino_t is 32-bits on 32-bit arch. We have to squash the 64-bit value down |
02323db17 cifs: fix cifs_un... |
28 29 |
* so that it will fit. We use hash_64 to convert the value to 31 bits, and * then add 1, to ensure that we don't end up with a 0 as the value. |
cc0bad755 cifs: add new cif... |
30 |
*/ |
02323db17 cifs: fix cifs_un... |
31 32 33 |
static inline ino_t cifs_uniqueid_to_ino_t(u64 fileid) { |
1ee9f4bd1 Fix cifs_uniqueid... |
34 35 |
if ((sizeof(ino_t)) < (sizeof(u64))) return (ino_t)hash_64(fileid, (sizeof(ino_t) * 8) - 1) + 1; |
02323db17 cifs: fix cifs_un... |
36 |
return (ino_t)fileid; |
1ee9f4bd1 Fix cifs_uniqueid... |
37 |
|
02323db17 cifs: fix cifs_un... |
38 |
} |
cc0bad755 cifs: add new cif... |
39 |
|
a00be0e31 cifs: don't use -... |
40 41 42 43 44 45 46 47 48 |
static inline void cifs_set_time(struct dentry *dentry, unsigned long time) { dentry->d_fsdata = (void *) time; } static inline unsigned long cifs_get_time(struct dentry *dentry) { return (unsigned long) dentry->d_fsdata; } |
e6ab15827 [CIFS] DFS suppor... |
49 |
extern struct file_system_type cifs_fs_type; |
f5e54d6e5 [PATCH] mark addr... |
50 51 |
extern const struct address_space_operations cifs_addr_ops; extern const struct address_space_operations cifs_addr_ops_smallbuf; |
1da177e4c Linux-2.6.12-rc2 |
52 |
|
24261fc23 cifs: delay super... |
53 54 55 |
/* Functions related to super block operations */ extern void cifs_sb_active(struct super_block *sb); extern void cifs_sb_deactive(struct super_block *sb); |
1da177e4c Linux-2.6.12-rc2 |
56 |
/* Functions related to inodes */ |
754661f14 [PATCH] mark stru... |
57 |
extern const struct inode_operations cifs_dir_inode_ops; |
9b6763e0a cifs: Remove unus... |
58 |
extern struct inode *cifs_root_iget(struct super_block *); |
4acdaf27e switch ->create()... |
59 |
extern int cifs_create(struct inode *, struct dentry *, umode_t, |
ebfc3b49a don't pass nameid... |
60 |
bool excl); |
d95852777 make ->atomic_ope... |
61 |
extern int cifs_atomic_open(struct inode *, struct dentry *, |
30d904947 kill struct opendata |
62 |
struct file *, unsigned, umode_t, |
d95852777 make ->atomic_ope... |
63 |
int *); |
50c2f7538 [CIFS] whitespace... |
64 |
extern struct dentry *cifs_lookup(struct inode *, struct dentry *, |
00cd8dd3b stop passing name... |
65 |
unsigned int); |
5f0319a79 cifs: clean up va... |
66 |
extern int cifs_unlink(struct inode *dir, struct dentry *dentry); |
1da177e4c Linux-2.6.12-rc2 |
67 |
extern int cifs_hardlink(struct dentry *, struct inode *, struct dentry *); |
1a67aafb5 switch ->mknod() ... |
68 |
extern int cifs_mknod(struct inode *, struct dentry *, umode_t, dev_t); |
18bb1db3e switch vfs_mkdir(... |
69 |
extern int cifs_mkdir(struct inode *, struct dentry *, umode_t); |
1da177e4c Linux-2.6.12-rc2 |
70 |
extern int cifs_rmdir(struct inode *, struct dentry *); |
7c33d5972 cifs: support REN... |
71 72 |
extern int cifs_rename2(struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int); |
6feb9891d CIFS: Simplify in... |
73 74 |
extern int cifs_revalidate_file_attr(struct file *filp); extern int cifs_revalidate_dentry_attr(struct dentry *); |
abab095d1 cifs: add cifs_re... |
75 |
extern int cifs_revalidate_file(struct file *filp); |
df2cf170c cifs: overhaul ci... |
76 |
extern int cifs_revalidate_dentry(struct dentry *); |
6feb9891d CIFS: Simplify in... |
77 |
extern int cifs_invalidate_mapping(struct inode *inode); |
e284e53fd cifs: new helper ... |
78 |
extern int cifs_revalidate_mapping(struct inode *inode); |
4f73c7d34 cifs: fix potenti... |
79 |
extern int cifs_zap_mapping(struct inode *inode); |
1da177e4c Linux-2.6.12-rc2 |
80 81 |
extern int cifs_getattr(struct vfsmount *, struct dentry *, struct kstat *); extern int cifs_setattr(struct dentry *, struct iattr *); |
754661f14 [PATCH] mark stru... |
82 83 |
extern const struct inode_operations cifs_file_inode_ops; extern const struct inode_operations cifs_symlink_inode_ops; |
6e1d5dcc2 const: mark remai... |
84 |
extern const struct inode_operations cifs_dfs_referral_inode_operations; |
6d5ae0deb [CIFS] DFS suppor... |
85 |
|
1da177e4c Linux-2.6.12-rc2 |
86 |
/* Functions related to files and directories */ |
4b6f5d20b [PATCH] Make most... |
87 |
extern const struct file_operations cifs_file_ops; |
d38d8c74c [CIFS] whitespace... |
88 |
extern const struct file_operations cifs_file_direct_ops; /* if directio mnt */ |
8be7e6ba1 CIFS: Implement c... |
89 90 91 92 |
extern const struct file_operations cifs_file_strict_ops; /* if strictio mnt */ extern const struct file_operations cifs_file_nobrl_ops; /* no brlocks */ extern const struct file_operations cifs_file_direct_nobrl_ops; extern const struct file_operations cifs_file_strict_nobrl_ops; |
1da177e4c Linux-2.6.12-rc2 |
93 94 95 |
extern int cifs_open(struct inode *inode, struct file *file); extern int cifs_close(struct inode *inode, struct file *file); extern int cifs_closedir(struct inode *inode, struct file *file); |
e6a7bcb4c cifs: switch to -... |
96 97 |
extern ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to); extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to); |
3dae8750c cifs: switch to -... |
98 99 |
extern ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from); extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from); |
1da177e4c Linux-2.6.12-rc2 |
100 |
extern int cifs_lock(struct file *, int, struct file_lock *); |
02c24a821 fs: push i_mutex ... |
101 102 |
extern int cifs_fsync(struct file *, loff_t, loff_t, int); extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int); |
75e1fcc0b [PATCH] vfs: add ... |
103 |
extern int cifs_flush(struct file *, fl_owner_t id); |
1da177e4c Linux-2.6.12-rc2 |
104 |
extern int cifs_file_mmap(struct file * , struct vm_area_struct *); |
7a6a19b17 CIFS: Implement c... |
105 |
extern int cifs_file_strict_mmap(struct file * , struct vm_area_struct *); |
4b6f5d20b [PATCH] Make most... |
106 |
extern const struct file_operations cifs_dir_ops; |
1da177e4c Linux-2.6.12-rc2 |
107 |
extern int cifs_dir_open(struct inode *inode, struct file *file); |
be4ccdcc2 [readdir] convert... |
108 |
extern int cifs_readdir(struct file *file, struct dir_context *ctx); |
1da177e4c Linux-2.6.12-rc2 |
109 110 |
/* Functions related to dir entries */ |
4fd03e84d constify dentry_o... |
111 112 |
extern const struct dentry_operations cifs_dentry_ops; extern const struct dentry_operations cifs_ci_dentry_ops; |
1da177e4c Linux-2.6.12-rc2 |
113 |
|
01c64feac CIFS: Use d_autom... |
114 115 116 117 118 |
#ifdef CONFIG_CIFS_DFS_UPCALL extern struct vfsmount *cifs_dfs_d_automount(struct path *path); #else #define cifs_dfs_d_automount NULL #endif |
1da177e4c Linux-2.6.12-rc2 |
119 |
/* Functions related to symlinks */ |
fceef393a switch ->get_link... |
120 121 |
extern const char *cifs_get_link(struct dentry *, struct inode *, struct delayed_call *); |
1da177e4c Linux-2.6.12-rc2 |
122 123 |
extern int cifs_symlink(struct inode *inode, struct dentry *direntry, const char *symname); |
a9ae008f4 cifs: Switch to g... |
124 125 126 |
#ifdef CONFIG_CIFS_XATTR extern const struct xattr_handler *cifs_xattr_handlers[]; |
1da177e4c Linux-2.6.12-rc2 |
127 |
extern ssize_t cifs_listxattr(struct dentry *, char *, size_t); |
a9ae008f4 cifs: Switch to g... |
128 129 130 131 |
#else # define cifs_xattr_handlers NULL # define cifs_listxattr NULL #endif |
f9ddcca4c [CIFS] BKL-remova... |
132 |
extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg); |
f3a6a60e4 cifs: Fix typo 'C... |
133 |
#ifdef CONFIG_CIFS_NFSD_EXPORT |
396551644 exportfs: make st... |
134 |
extern const struct export_operations cifs_export_ops; |
f3a6a60e4 cifs: Fix typo 'C... |
135 |
#endif /* CONFIG_CIFS_NFSD_EXPORT */ |
297647c21 [CIFS] CIFS ACL s... |
136 |
|
5a4f7e8e7 Update cifs.ko ve... |
137 |
#define CIFS_VERSION "2.09" |
1da177e4c Linux-2.6.12-rc2 |
138 |
#endif /* _CIFSFS_H */ |