tags 547172 confirmed
thanks

Thanks for Your bugreport. I'll fix this problem ASAP. :)


On 14:03 Thu 17 Sep     , Pozsar Balazs wrote:
PB> Package: mhddfs

PB> See the following example:
PB> 1. Create to source filesystems:
PB> mkfs.ext2 /dev/ram1
PB> mkfs.ext2 /dev/ram2
PB> mkdir -p /mnt/1
PB> mkdir -p /mnt/2
PB> mount /dev/ram1 /mnt/1
PB> mount /dev/ram2 /mnt/2

PB> 2. Create a file on each disks:
PB> echo "FIRST DISK" >/mnt/1/first.txt
PB> echo "SECOND DISK" >/mnt/2/second.txt

PB> 3. Mount mhddfs:
PB> mkdir -p /mnt/mhddfs
PB> mhddfs /mnt/1,/mnt/2 /mnt/mhddfs

PB> 4. Check the previously created files:
PB> # cat /mnt/mhddfs/first.txt
PB> FIRST DISK
PB> # cat /mnt/mhddfs/second.txt
PB> SECOND DISK

PB> Everything is ok so far.

PB> 5. Rename second.txt to first.txt:
PB> mv /mnt/mhddfs/second.txt /mnt/mhddfs/first.txt

PB> 6. Now /mnt/mhddfs/first.txt should contain:
PB> SECOND DISK
PB> BUT: it contains: # cat /mnt/mhddfs/first.txt
PB> FIRST DISK

PB> The problem is clear if we look at the source directories:
PB> # ls -l /mnt/1/first.txt
PB> -rw-r--r-- 1 root root 11 2009-09-17 11:50 /mnt/1/first.txt
PB> # ls -l /mnt/2/first.txt
PB> -rw-r--r-- 1 root root 12 2009-09-17 11:50 /mnt/2/first.txt

PB> The file "second.txt" was renamed to "first.txt" under /mnt/2, but
PB> /mnt/1/first.txt was left there, and when requesting
PB> /mnt/mhddfs/first.txt, mhddfs finds /mnt/1/first.txt first, so we get
PB> the old file.

PB> I think that when renaming, mhddfs should delete files named as the
PB> targetfrom all disks. That whould prevent the above bug.
--
... mpd is off

. ''`.                               Dmitry E. Oboukhov
: :’  :   email: [email protected] jabber://[email protected]
`. `~’              GPGKey: 1024D / F8E26537 2006-11-21
  `- 1B23 D4F8 8EC0 D902 0555  E438 AB8C 00CF F8E2 6537

Attachment: signature.asc
Description: Digital signature

Reply via email to