From: David Brown <btrfs@davidb.org>
To: Harshavardhana <harsha@gluster.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] fs/btrfs: Return EPERM for rmdir on subvolumes and snapshots
Date: Thu, 8 Apr 2010 15:07:17 -0700 [thread overview]
Message-ID: <20100408220717.GA15666@arch.davidb.org> (raw)
In-Reply-To: <1270758931-5291-1-git-send-email-harsha@gluster.com>
On Thu, Apr 08, 2010 at 01:35:31PM -0700, Harshavardhana wrote:
> if (inode->i_size > BTRFS_EMPTY_DIR_SIZE ||
> inode->i_ino == BTRFS_FIRST_FREE_OBJECTID)
>- return -ENOTEMPTY;
>+ return -EPERM;
Don't you want to still return ENOTEMPTY for the size check, and only
the EPERM on the root of subvolume?
David
next prev parent reply other threads:[~2010-04-08 22:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 20:35 [PATCH] fs/btrfs: Return EPERM for rmdir on subvolumes and snapshots Harshavardhana
2010-04-08 22:07 ` David Brown [this message]
2010-04-08 22:35 ` Harshavardhana
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=20100408220717.GA15666@arch.davidb.org \
--to=btrfs@davidb.org \
--cc=harsha@gluster.com \
--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