aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs/dir.c
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2009-03-22 06:47:26 -0400
committerBoaz Harrosh <bharrosh@panasas.com>2009-03-31 12:44:36 -0400
commit8cf74b3936f5c65975b68333727f0540ec8350f4 (patch)
tree99eda92b32dc7869d6f3a28215f5b854675db6b1 /fs/exofs/dir.c
parentba9e5e98ca2f808fe92b103a8e6ce5271b10cc89 (diff)
exofs: export_operations
implement export_operations and set in superblock. It is now posible to export exofs via nfs Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/exofs/dir.c')
-rw-r--r--fs/exofs/dir.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/exofs/dir.c b/fs/exofs/dir.c
index 6865605fb6ab..65b0c8c776a1 100644
--- a/fs/exofs/dir.c
+++ b/fs/exofs/dir.c
@@ -381,6 +381,21 @@ struct exofs_dir_entry *exofs_dotdot(struct inode *dir, struct page **p)
381 return de; 381 return de;
382} 382}
383 383
384ino_t exofs_parent_ino(struct dentry *child)
385{
386 struct page *page;
387 struct exofs_dir_entry *de;
388 ino_t ino;
389
390 de = exofs_dotdot(child->d_inode, &page);
391 if (!de)
392 return 0;
393
394 ino = le64_to_cpu(de->inode_no);
395 exofs_put_page(page);
396 return ino;
397}
398
384ino_t exofs_inode_by_name(struct inode *dir, struct dentry *dentry) 399ino_t exofs_inode_by_name(struct inode *dir, struct dentry *dentry)
385{ 400{
386 ino_t res = 0; 401 ino_t res = 0;