linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Removing snapshots
@ 2010-07-13 22:58 K. Richard Pixley
  2010-07-13 23:24 ` Aaron Straus
  0 siblings, 1 reply; 5+ messages in thread
From: K. Richard Pixley @ 2010-07-13 22:58 UTC (permalink / raw)
  To: linux-btrfs

On ubuntu-10.04, the standard package for btrfs-tools is 0.19-8.  This version apparently lacks the -D option to btrfsctl.

In this configuration, how do I remove snapshots?

--rich



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

* Re: Removing snapshots
  2010-07-13 22:58 Removing snapshots K. Richard Pixley
@ 2010-07-13 23:24 ` Aaron Straus
  2010-07-14 13:53   ` Arand Nash
  0 siblings, 1 reply; 5+ messages in thread
From: Aaron Straus @ 2010-07-13 23:24 UTC (permalink / raw)
  To: K. Richard Pixley; +Cc: linux-btrfs

On Tue, Jul 13, 2010 at 3:58 PM, K. Richard Pixley <rich@noir.com> wrot=
e:
> On ubuntu-10.04, the standard package for btrfs-tools is 0.19-8. =A0T=
his version apparently lacks the -D option to btrfsctl.
>
> In this configuration, how do I remove snapshots?

I'm not sure you can.  However the btrfs tools from this address
compile and run well on Ubuntu 10.04:

    https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories



Cheers,
=3Da=3D



--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Aaron Straus
aaron@merfinllc.com
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Removing snapshots
  2010-07-13 23:24 ` Aaron Straus
@ 2010-07-14 13:53   ` Arand Nash
  2010-07-14 19:15     ` K. Richard Pixley
  0 siblings, 1 reply; 5+ messages in thread
From: Arand Nash @ 2010-07-14 13:53 UTC (permalink / raw)
  To: K. Richard Pixley; +Cc: linux-btrfs

On Wed, Jul 14, 2010 at 1:24 AM, Aaron Straus <aaron@edgestreamlp.com> =
wrote:
> On Tue, Jul 13, 2010 at 3:58 PM, K. Richard Pixley <rich@noir.com> wr=
ote:
>> On ubuntu-10.04, the standard package for btrfs-tools is 0.19-8. =A0=
This version apparently lacks the -D option to btrfsctl.
>>
>> In this configuration, how do I remove snapshots?
>
> I'm not sure you can. =A0However the btrfs tools from this address
> compile and run well on Ubuntu 10.04:
>
> =A0 =A0https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositor=
ies

Elsewise the current btrfs-tools version in ubuntu dev version 10.10
do have this functionality. So installing that one might be another
option.

- arand
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Removing snapshots
  2010-07-14 13:53   ` Arand Nash
@ 2010-07-14 19:15     ` K. Richard Pixley
  2010-07-14 19:55       ` Aaron Straus
  0 siblings, 1 reply; 5+ messages in thread
From: K. Richard Pixley @ 2010-07-14 19:15 UTC (permalink / raw)
  To: linux-btrfs

  Here's what I'm getting on ubuntu-10.04 with standard tools, 
(/sbin/btrfsctl), and freshly built tools, (/usr/local/bin/btrfsctl).

Are we sure that the btrfs kernel module in this release is supporting 
the right ioctls?

--rich

rich@diamonds> pwd
/home/rich
rich@diamonds> mount | grep /home
/dev/sda7 on /home type btrfs (rw,noatime)
rich@diamonds> /sbin/btrfsctl -s snaptest /home
operation complete
Btrfs Btrfs v0.19
rich@diamonds> ls -lasd snaptest
4 drwxr-xr-x 1 root root 52 2010-06-21 16:13 snaptest
rich@diamonds> /sbin/btrfsctl
no valid commands given
usage: btrfsctl [ -d file|dir] [ -s snap_name subvol|tree ]
                 [-r size] [-A device] [-a] [-c]
         -d filename: defragments one file
         -d directory: defragments the entire Btree
         -s snap_name dir: creates a new snapshot of dir
         -S subvol_name dir: creates a new subvolume
         -r [+-]size[gkm]: resize the FS by size amount
         -A device: scans the device file for a Btrfs filesystem
         -a: scans all devices for Btrfs filesystems
         -c: forces a single FS sync
Btrfs Btrfs v0.19
rich@diamonds> /usr/local/bin/btrfsctl
no valid commands given
usage: btrfsctl [ -d file|dir] [ -s snap_name subvol|tree ]
                 [-r size] [-A device] [-a] [-c] [-D dir .]
         -d filename: defragments one file
         -d directory: defragments the entire Btree
         -s snap_name dir: creates a new snapshot of dir
         -S subvol_name dir: creates a new subvolume
         -r [+-]size[gkm]: resize the FS by size amount
         -A device: scans the device file for a Btrfs filesystem
         -a: scans all devices for Btrfs filesystems
         -c: forces a single FS sync
         -D: delete snapshot
         -m [tree id] directory: set the default mounted subvolume to 
the [tree id] or the directory
Btrfs v0.19-16-g075587c
rich@diamonds> /usr/local/bin/btrfsctl -D snaptest
ioctl:: Operation not permitted
rich@diamonds> sudo /usr/local/bin/btrfsctl -D snaptest
ioctl:: No such file or directory
rich@diamonds> sudo /usr/local/bin/btrfsctl -D snaptest /home
ioctl:: No such file or directory
rich@diamonds> sudo /usr/local/bin/btrfsctl -D /home snaptest
ioctl:: Invalid argument


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

* Re: Removing snapshots
  2010-07-14 19:15     ` K. Richard Pixley
@ 2010-07-14 19:55       ` Aaron Straus
  0 siblings, 0 replies; 5+ messages in thread
From: Aaron Straus @ 2010-07-14 19:55 UTC (permalink / raw)
  To: K. Richard Pixley; +Cc: linux-btrfs

On Wed, Jul 14, 2010 at 12:15 PM, K. Richard Pixley <rich@noir.com> wro=
te:
> =A0Here's what I'm getting on ubuntu-10.04 with standard tools,
> (/sbin/btrfsctl), and freshly built tools, (/usr/local/bin/btrfsctl).
>
> Are we sure that the btrfs kernel module in this release is supportin=
g the
> right ioctls?

Yes it works for me, see the correct arguments below.

> rich@diamonds> sudo /usr/local/bin/btrfsctl -D snaptest /home
> ioctl:: No such file or directory

The snaptest snapshot is in your home directory (I think), not in
/home, so you need to specify the full path i.e.:

sudo /usr/local/bin/btrfsctl -D snaptest /home/rich


Cheers,
=3Da=3D


--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Aaron Straus
aaron@merfinllc.com
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2010-07-14 19:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-13 22:58 Removing snapshots K. Richard Pixley
2010-07-13 23:24 ` Aaron Straus
2010-07-14 13:53   ` Arand Nash
2010-07-14 19:15     ` K. Richard Pixley
2010-07-14 19:55       ` Aaron Straus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).