linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: btrfs qgroup assign -> "ERROR: bad relation requested"
Date: Sun, 28 Jul 2013 13:51:16 +0700	[thread overview]
Message-ID: <20130728135116.5ed992d4@wpkg.org> (raw)

I'm trying to use this feature of qgroup:

btrfs qgroup assign <srcid> <destid> <path>
    Assigns the lower level qgroup src to the higher level qgroup dest
    in the btrfs found in <path>. It is used to build qgroup
    hierarchies.


However, I fail to understand how this feature should work, and I'm
getting "ERROR: bad relation requested":

# btrfs sub create test1
Create subvolume './test1'

# btrfs sub create test2
Create subvolume './test2'

# btrfs sub list /mnt/lxc2 | grep test
ID 1177 gen 85131 top level 5 path test1
ID 1178 gen 85132 top level 5 path test2

# btrfs qgroup show /mnt/lxc2
0/1177 4096 4096
0/1178 4096 4096

# btrfs qgroup assign 1177 1178 /mnt/lx2
ERROR: bad relation requested '/mnt/lx2'


Could anyone give examples of proper usage of this feature?

This is Linux 3.10.


-- 
Tomasz Chmielewski
http://wpkg.org

             reply	other threads:[~2013-07-28  6:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-28  6:51 Tomasz Chmielewski [this message]
2013-07-28  7:36 ` btrfs qgroup assign -> "ERROR: bad relation requested" Wang Shilong
2013-07-30 12:25   ` Tomasz Chmielewski
2013-07-30 13:06     ` Wang Shilong
2013-07-31  3:46       ` Tomasz Chmielewski
2013-07-31  4:19         ` Wang Shilong
2013-07-31  4:36           ` Tomasz Chmielewski
2013-07-31  5:13             ` Wang Shilong
2013-07-31  5:39               ` Tomasz Chmielewski
2013-07-31  6:08                 ` Wang Shilong
2013-08-02  6:32                 ` Arne Jansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130728135116.5ed992d4@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).