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="p4-openwrt" UUID="9a68f4cc-4bda-4cdb-9726-481b340f742c" UUID_SUB="37bfc8b8-c8aa-415e-bbb3-cbb50cca2ab7" TYPE="btrfs" p4 jerome # On Sun, Oct 24, 2010 at 4:24 PM, Felix Blanke <felixblanke@xxxxxxxxx> wrote: > 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 that 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@xxxxxxxxxxxxxxx > More majordomo info at http://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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
