linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jérôme Poulin" <jeromepoulin@gmail.com>
To: Felix Blanke <felixblanke@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Determine if a given fs is a btrfs fs
Date: Sun, 24 Oct 2010 17:32:39 -0400	[thread overview]
Message-ID: <AANLkTikB06jNR-QmkXjWWFE6fO=cTZvEDFbY5V98Pu6g@mail.gmail.com> (raw)
In-Reply-To: <20101024202410.GA2830@scooter>

Here are some cues...
p4 jerome # file -s /dev/mapper/vgP4RAID5-openwrt
/dev/mapper/vgP4RAID5-openwrt: symbolic link to `../dm-22'
p4 jerome # file -s /dev/dm-22
/dev/dm-22: BTRFS Filesystem (label "p4-openwrt", sectorsize 4096,
nodesize 4096, leafsize 4096)
p4 jerome # btrfs device scan /dev/dm-22
Scanning for Btrfs filesystems in '/dev/dm-22'
p4 jerome # echo $?
0
p4 jerome # btrfs device scan /dev/sda
Scanning for Btrfs filesystems in '/dev/sda'
ERROR: unable to scan the device '/dev/sda'
p4 jerome # echo $?
11
p4 jerome # blkid | grep btrfs
/dev/mapper/vgP4RAID5-openwrt: LABEL=3D"p4-openwrt"
UUID=3D"9a68f4cc-4bda-4cdb-9726-481b340f742c"
UUID_SUB=3D"37bfc8b8-c8aa-415e-bbb3-cbb50cca2ab7" TYPE=3D"btrfs"
p4 jerome #


On Sun, Oct 24, 2010 at 4:24 PM, Felix Blanke <felixblanke@gmail.com> w=
rote:
> Hi,
>
> I've some btrfs fs which are encrypted with loopaes.
>
> I decrypt them in a script during bootup. Now I want to determine if =
the decrypted fs
> is a btrfs fs. If not I missspelled the password and I can handle tha=
t error in my
> script.
>
>
> Thanks for any help!
>
>
> Felix
> --
> 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 =A0http://vger.kernel.org/majordomo-info.html
>
--
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

  reply	other threads:[~2010-10-24 21:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-24 20:24 Determine if a given fs is a btrfs fs Felix Blanke
2010-10-24 21:32 ` Jérôme Poulin [this message]
2010-10-25 11:31   ` Jérôme Poulin
2010-10-25 13:29     ` C Anthony Risinger
2010-10-25 19:27       ` Felix Blanke

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='AANLkTikB06jNR-QmkXjWWFE6fO=cTZvEDFbY5V98Pu6g@mail.gmail.com' \
    --to=jeromepoulin@gmail.com \
    --cc=felixblanke@gmail.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;
as well as URLs for NNTP newsgroup(s).