aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ntfs/super.c')
-rw-r--r--fs/ntfs/super.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
index b676cf6fd93c..78416eb2a168 100644
--- a/fs/ntfs/super.c
+++ b/fs/ntfs/super.c
@@ -2250,40 +2250,6 @@ static struct super_operations ntfs_sops = {
2250 proc. */ 2250 proc. */
2251}; 2251};
2252 2252
2253
2254/**
2255 * Declarations for NTFS specific export operations (fs/ntfs/namei.c).
2256 */
2257extern struct dentry *ntfs_get_parent(struct dentry *child_dent);
2258extern struct dentry *ntfs_get_dentry(struct super_block *sb, void *fh);
2259
2260/**
2261 * Export operations allowing NFS exporting of mounted NTFS partitions.
2262 *
2263 * We use the default ->decode_fh() and ->encode_fh() for now. Note that they
2264 * use 32 bits to store the inode number which is an unsigned long so on 64-bit
2265 * architectures is usually 64 bits so it would all fail horribly on huge
2266 * volumes. I guess we need to define our own encode and decode fh functions
2267 * that store 64-bit inode numbers at some point but for now we will ignore the
2268 * problem...
2269 *
2270 * We also use the default ->get_name() helper (used by ->decode_fh() via
2271 * fs/exportfs/expfs.c::find_exported_dentry()) as that is completely fs
2272 * independent.
2273 *
2274 * The default ->get_parent() just returns -EACCES so we have to provide our
2275 * own and the default ->get_dentry() is incompatible with NTFS due to not
2276 * allowing the inode number 0 which is used in NTFS for the system file $MFT
2277 * and due to using iget() whereas NTFS needs ntfs_iget().
2278 */
2279static struct export_operations ntfs_export_ops = {
2280 .get_parent = ntfs_get_parent, /* Find the parent of a given
2281 directory. */
2282 .get_dentry = ntfs_get_dentry, /* Find a dentry for the inode
2283 given a file handle
2284 sub-fragment. */
2285};
2286
2287/** 2253/**
2288 * ntfs_fill_super - mount an ntfs filesystem 2254 * ntfs_fill_super - mount an ntfs filesystem
2289 * @sb: super block of ntfs filesystem to mount 2255 * @sb: super block of ntfs filesystem to mount