Hello <list>,

   I use AUFS in the common copy-on-write scenario. When writing to a file that
   has hardlinks in the readonly-branch I run into an I/O-Error. The following
   script reproduces the problem both on kernel 2.6.32 (aufs 2.1) and 3.2.0
   (aufs 3.2-20120109):

   $ mkdir rw
   $ mkdir ro
   $ mkdir cow
   $ echo "foo" > ro/foo
   $ ln ro/foo ro/bar
   $ mount -t aufs -o br=./rw=rw:./ro=rr,udba=none,rw hardlink_test cow
   $ echo "bar" > cow/foo  # fail!

   The `echo "bar" > cow/foo` fails with an I/O-Error while producing an empty
   file "rw/foo".

   Checking the log files I see the following:

   $ dmesg | grep aufs | tail -1

   aufs au_lkup_neg:326:aufsd/0[43]: I/O Error, foo should be negative on b0.

   Subsequent writes to cow/foo work perfectly fine.

   Is this a known issue?

   Best,

   René
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to