Hello List!

I just wanted to start using aufs but mounting an nfs branch
failed with kernel 2.6.15.7 and aufs 20070212.
So I modified fs/aufs/branch.h with this patch:

--- branch.h.orig       2007-02-14 16:03:04.000000000 +0100
+++ branch.h    2007-02-14 10:15:34.000000000 +0100
@@ -87,7 +87,7 @@
  /* 
---------------------------------------------------------------------- */

  #define _AufsNoNfsBranchMsg "NFS branch is not supported"
-#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,15)
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,14)
  #define AufsNoNfsBranch
  #define AufsNoNfsBranchMsg _AufsNoNfsBranchMsg
  #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) \

Then I did on a diskless client where /usr is mounted on /dev/rd/0:

mount -t aufs -o br:/usr=rw:/apps/master/usr=ro aufsroot /usr

where /apps/master is an nfs mounted copy of an installed server.
It looks like it works except:

# find /usr > /dev/null
find: WARNING: Hard link count is wrong for usr/lib: this may be a bug 
in your filesystem driver.  Automatically turning on find's -noleaf 
option.  Earlier results may have failed to include directories that 
should have been searched.

But I'm not sure if this warning can cause serious problems.
Why is it that on 2.6.15 NFS branch is not supported, what
test should I run to see if this problems exists on 2.6.15.7?

Cheers,

        Peter

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Reply via email to