On Wed, Mar 16, 2016 at 10:14:33PM +0800, Anand Jain wrote:
> Makes few subvol related functions usable outside of subvol
> command set.
> 
> This is a preparatory patch for encryption support. The changes
> here are:
> 
> Created new file subvolume.c
> Created btrfs_get_subvol_info() from parts of cmd_subvol_show()
> Moved get_subvol_name() to subvolume.c
> Moved test_issubvolume() to subvolume.c
> Created subvolume.h to define the above functions.

Such helpers are in utils.[ch], eg. there's test_issubvolname.
get_subvol_name could be renamed,
factoring btrfs_get_subvol_info looks good.

So far the internal interfaces are not tidy, so everything goes to
utils. It should be easier for you if you need to do some code
rearrangements.
--
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

Reply via email to