Hi,

I was wondering if it would be possible to re-export and NFS mount using AUFS? 
By default it is not possible to NFS export an NFS mountpoint from one server 
on another. However perhaps it is possible to sit AUFS in between which can be 
re-exported? I did a quick and dirty test but AUFS doesn't look too happy:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000008       
                                                                                
                                             
IP: [<ffffffffa02ea714>] au_do_h_d_reval+0x8e/0x159 [aufs]  
..
..
Process nfsd (pid: 22624, threadinfo ffff8802a24b0000, task ffff8804184e2e00)   
                                                                                
                                             
Stack:
 0000000000000000 0000000000000000 0000000000000000 0000000000000000
 0000000000000000 0000000000000000 0000000000000000 0000000000000000
 0000000000000000 0000000000000000 0000000000000000 0000000000000000
Call Trace:
 [<ffffffffa02eb776>] aufs_d_revalidate+0x259/0x383 [aufs]
 [<ffffffff810dd8ab>] do_revalidate+0x18/0x4d
 [<ffffffff810ddacc>] __lookup_hash+0x87/0xf1
 [<ffffffff8118085f>] ? security_inode_permission+0x21/0x23
 [<ffffffff810df76d>] lookup_one_len+0x4f/0x56
 [<ffffffffa07338d4>] compose_entry_fh+0xc8/0x11e [nfsd]
 [<ffffffffa0733b3b>] encode_entry+0x18a/0x3b8 [nfsd]
 [<ffffffff810cb4af>] ? add_partial+0x4d/0x57
 [<ffffffff810cc5a7>] ? virt_to_head_page+0xe/0x34
 [<ffffffff810cf6c4>] ? ksize+0x1b/0x82
..
..

The reason I ask is I'd like to try mount an NFS share across a WAN with local 
servers at each site then re-exporting the NFS share. I would like to use 
FS-Cache to cache reads at each site locally to disk and perhaps use AUFS to 
similarly redirect writes locally to disk. Another option for rexporting might 
be to use UNFS but I know very little about that project.

Regards,

Daire

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org

Reply via email to