Thread (10 messages) 10 messages, 5 authors, 2021-11-07

Re: [PATCH 2/2] btrfs: move btrfs_super_block to uapi/linux/btrfs_tree.h

From: Qu Wenruo <hidden>
Date: 2021-10-20 00:19:39


On 2021/10/20 00:10, David Sterba wrote:
On Tue, Oct 19, 2021 at 07:29:25PM +0800, Qu Wenruo wrote:
quoted
Due to the fact that btrfs_tree.h contains all the info for
BTRFS_IOC_TREE_SEARCH, it's almost the perfect location of btrfs on-disk
schema.

So let's move struct btrfs_super_block to uapi/linux/btrfs_tree.h,
further reducing the size of ctree.h.
The definitions of tree items are in the public header due to the search
tree ioctl, but why do you want to make superblock public? Ie. what user
space tool is going to use it?
Well, for super block I'd say any user space tool can directly see it.

My main objective here is to move all on-disk format to uapi.

And I don't have better idea than reusing the existing btrfs_tree.h.

Thanks,
Qu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help