* removing a snapshot that is outside the subvolume directory fails, sorta
@ 2010-01-21 1:11 Brian Neu
2010-01-21 18:43 ` Goffredo Baroncelli
0 siblings, 1 reply; 2+ messages in thread
From: Brian Neu @ 2010-01-21 1:11 UTC (permalink / raw)
To: linux-btrfs
Well, it fails the way that I'm trying to do it.
kernel: 2.6.31.9-174.fc12.x86_64
btrfs-progs: btrfs-progs-0.19-9.fc12.x86_64
On a new filesystem:
$ cd /mnt/btrfs1
$ btrfsctl -S subvol1 .
operation complete
Btrfs Btrfs v0.19
$ btrfsctl -s snapofsubvol1 subvol1
operation complete
Btrfs Btrfs v0.19
$ btrfsctl -D snapofsubvol1 subvol1
ioctl:: No such file or directory
$ btrfsctl -S subvol2 .
operation complete
Btrfs Btrfs v0.19
--------> # cd subvol2 <------------
$ btrfsctl -s snapofsubvol2 subvol2
operation complete
Btrfs Btrfs v0.19
$ btrfsctl -D snapofsubvol2 subvol2
operation complete
Btrfs Btrfs v0.19
AHA, I figured it out!
$ btrfsctl -D snapofsubvol1 subvol1/..
I don't know if that's the intended syntax or if it's accidental, but I'll go ahead and send this as an FYI if anyone has the same issue. Maybe it's obvious to some, but it wasn't to me.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: removing a snapshot that is outside the subvolume directory fails, sorta
2010-01-21 1:11 removing a snapshot that is outside the subvolume directory fails, sorta Brian Neu
@ 2010-01-21 18:43 ` Goffredo Baroncelli
0 siblings, 0 replies; 2+ messages in thread
From: Goffredo Baroncelli @ 2010-01-21 18:43 UTC (permalink / raw)
To: linux-btrfs
On Thursday 21 January 2010, Brian Neu wrote:
> Well, it fails the way that I'm trying to do it.
> kernel: 2.6.31.9-174.fc12.x86_64
> btrfs-progs: btrfs-progs-0.19-9.fc12.x86_64
>
> On a new filesystem:
>
> $ cd /mnt/btrfs1
> $ btrfsctl -S subvol1 .
> operation complete
> Btrfs Btrfs v0.19
> $ btrfsctl -s snapofsubvol1 subvol1
> operation complete
> Btrfs Btrfs v0.19
> $ btrfsctl -D snapofsubvol1 subvol1
> ioctl:: No such file or directory
>
Correct; the syntax should be:
$ btrfsctl -D snapofsubvol1 .
the last parameters is directory where the snapshot is.
>
> $ btrfsctl -S subvol2 .
> operation complete
> Btrfs Btrfs v0.19
> --------> # cd subvol2 <------------
> $ btrfsctl -s snapofsubvol2 subvol2
> operation complete
> Btrfs Btrfs v0.19
To me this last step doesn't work. It works only if the "cd subvol2" command
is not executed.
> $ btrfsctl -D snapofsubvol2 subvol2
> operation complete
> Btrfs Btrfs v0.19
>
>
> AHA, I figured it out!
>
> $ btrfsctl -D snapofsubvol1 subvol1/..
>
> I don't know if that's the intended syntax or if it's accidental, but I'll
go ahead and send this as an FYI if anyone has the same issue. Maybe it's
obvious to some, but it wasn't to me.
Yes it is obvious :-) Because "subvol1/.." is like "." .
BR
G.Baroncelli
--
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] 2+ messages in thread
end of thread, other threads:[~2010-01-21 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-21 1:11 removing a snapshot that is outside the subvolume directory fails, sorta Brian Neu
2010-01-21 18:43 ` Goffredo Baroncelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox