linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Matthew Lai <m@matthewlai.ca>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs send requires root
Date: Thu, 30 Jan 2014 19:30:07 +0100	[thread overview]
Message-ID: <20140130183007.GD1364@twin.jikos.cz> (raw)
In-Reply-To: <52E955F2.60608@matthewlai.ca>

On Wed, Jan 29, 2014 at 11:26:42AM -0800, Matthew Lai wrote:
> I have just started playing with btrfs, and noticed that "btrfs send" only
> works for root (ERROR: failed to initialize subvol search. Operation not
> permitted), even on subvolumes created by the user.
> 
> Am I doing something wrong? Or is this the intended behaviour?

Intended but can be revisited to allow non-root owner's to send their
snapshots.

> Returns:
> ERROR: can't perform the search- Operation not permitted
> ERROR: failed to initialize subvol search. Operation not permitted

The SEARCH_TREE ioctl is also root-only and a unconstrained interface to
the filesystem internals, so a new ioctl would have to be introduced to
do what send needs.

  reply	other threads:[~2014-01-30 18:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-29 19:26 btrfs send requires root Matthew Lai
2014-01-30 18:30 ` David Sterba [this message]
2014-01-30 21:41   ` Matthew Lai

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=20140130183007.GD1364@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=m@matthewlai.ca \
    /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).