public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* BUG: Link from sub volume, then remove the subvolume -> wrong link
@ 2009-12-11 19:54 Goffredo Baroncelli
  2009-12-12  0:24 ` TARUISI Hiroaki
  0 siblings, 1 reply; 10+ messages in thread
From: Goffredo Baroncelli @ 2009-12-11 19:54 UTC (permalink / raw)
  To: linux-btrfs

Hi all

when I tried to reproduce the bug highlighted by Andrew, I discovered another 
bug. When I link a file from a subvolume to another, then remove the subvolume 
I got a wrong link: in my test an *hard* link becomes a *soft* link !!!!

Steps to reproduce the bug:

	root@venice:/tmp/test# sudo btrfsctl -S subvol2 .
	operation complete
	Btrfs Btrfs v0.19
	root@venice:/tmp/test# echo 123 >>subvol2/myfile
	root@venice:/tmp/test# ln subvol2/myfile .
	root@venice:/tmp/test# ls -l . subvol2/
	.:
	total 4
	-rw-r--r-- 2 root root  4 2009-12-11 20:40 myfile
	drwx------ 1 root root 12 2009-12-11 20:40 subvol2

	subvol2/:
	total 4
	-rw-r--r-- 2 root root 4 2009-12-11 20:40 myfile
	root@venice:/tmp/test# btrfsctl -D subvol2 .
	operation complete
	Btrfs Btrfs v0.19
	root@venice:/tmp/test# ls -l
	total 0
	lrwxrwxrwx 1 root root 3 2009-11-22 10:56 myfile -> lib

Now myfile is a soft link instead to a hard link!!!! Moreover the soft link is 
to an incorrect target ( 1) lib doesn't exist, 2) in any case is not the right 
target).


BR
Goffredo
-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijackATinwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-12-17  0:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11 19:54 BUG: Link from sub volume, then remove the subvolume -> wrong link Goffredo Baroncelli
2009-12-12  0:24 ` TARUISI Hiroaki
2009-12-12 13:54   ` Goffredo Baroncelli
2009-12-12 18:39   ` Andy Lutomirski
2009-12-13 23:42     ` TARUISI Hiroaki
2009-12-14 18:43       ` Andrew Lutomirski
2009-12-15  0:15         ` TARUISI Hiroaki
2009-12-15  4:04           ` Andy Lutomirski
2009-12-15 17:31             ` David Nicol
2009-12-17  0:00               ` TARUISI Hiroaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox