All of lore.kernel.org
 help / color / mirror / Atom feed
From: boris <6401e46d@opayq.com>
To: linux-btrfs@vger.kernel.org
Subject: File test operator for subvols; possible bug in 'btrfs show <directory>'
Date: Tue, 25 Nov 2014 02:11:11 +0000 (UTC)	[thread overview]
Message-ID: <loom.20141125T024507-20@post.gmane.org> (raw)

Hi all,

I was looking for a quick method of testing whether a working directory is a 
subvolume.

Couldn't see an obvious one, so tried 'btrfs show <somesubvol≥'. It printed 
a fail message as expected but returned 0 exit status. Bug?

Can I put in a feature request for a shell file test operator for subvols, 
please (or something of the kind)? http://tldp.org/LDP/abs/html/fto.html . 
The letter v (for volume, both upper and lower case forms; one for subvol, 
other for snapshots) is unused afaict. 

Have I missed the obvious? Or scored a false positive?

TIA.


             reply	other threads:[~2014-11-25  2:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-25  2:11 boris [this message]
2014-11-25  5:33 ` File test operator for subvols; possible bug in 'btrfs show <directory>' Gui Hecheng
2014-11-25  7:32 ` Goffredo Baroncelli
2014-11-27 17:21   ` David Sterba

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=loom.20141125T024507-20@post.gmane.org \
    --to=6401e46d@opayq.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.