AFAIK you don't need subvolume id, `btrfs qgroup show -ref
/path/to/subvolume` shows necessary qgroup for me. Separating value you
need is more involved:
btrfs qgroup show -ref --raw /path/to/subvolume | tail -n +3 | tr -s '
' | cut -d ' ' -f 4
Not sure how robust is this though.
--
With Best Regards,
Marat Khalili
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html