Re: [PATCH 1/2] fs/super.c: introduce get_tree_bdev_by_dev()

2024-10-08 Thread Gao Xiang
On 2024/10/8 20:55, Christoph Hellwig wrote: On Tue, Oct 08, 2024 at 08:33:27PM +0800, Gao Xiang wrote: how about int get_tree_bdev_flags(struct fs_context *fc, int (*fill_super)(struct super_block *, struct fs_context *), bool quiet) for now

Re: [PATCH 1/2] fs/super.c: introduce get_tree_bdev_by_dev()

2024-10-08 Thread Christoph Hellwig
On Tue, Oct 08, 2024 at 08:33:27PM +0800, Gao Xiang wrote: > how about > int get_tree_bdev_flags(struct fs_context *fc, > int (*fill_super)(struct super_block *, > struct fs_context *), bool quiet) > > for now? it can be turned into `int flags` if othe

Re: [PATCH 1/2] fs/super.c: introduce get_tree_bdev_by_dev()

2024-10-08 Thread Gao Xiang
On 2024/10/8 20:23, Christoph Hellwig wrote: On Tue, Oct 08, 2024 at 08:10:45PM +0800, Gao Xiang wrote: But the error message out of get_tree_bdev() is inflexible and IMHO it's too coupled to `fc->source`. Otherwise just passing a quiet flag of some form feels like a much saner interface.

Re: [PATCH 1/2] fs/super.c: introduce get_tree_bdev_by_dev()

2024-10-08 Thread Christoph Hellwig
On Tue, Oct 08, 2024 at 08:10:45PM +0800, Gao Xiang wrote: > But the error message out of get_tree_bdev() is inflexible and > IMHO it's too coupled to `fc->source`. > > > Otherwise just passing a quiet flag of some form feels like a much > > saner interface. > > I'm fine with this way, but that w

Re: [PATCH 1/2] fs/super.c: introduce get_tree_bdev_by_dev()

2024-10-08 Thread Gao Xiang
Hi Christoph, On 2024/10/8 19:49, Christoph Hellwig wrote: On Tue, Oct 08, 2024 at 05:56:05PM +0800, Gao Xiang wrote: As Allison reported [1], currently get_tree_bdev() will store "Can't lookup blockdev" error message. Although it makes sense for pure bdev-based fses, this message may mislead

Re: [PATCH 1/2] fs/super.c: introduce get_tree_bdev_by_dev()

2024-10-08 Thread Christoph Hellwig
On Tue, Oct 08, 2024 at 05:56:05PM +0800, Gao Xiang wrote: > As Allison reported [1], currently get_tree_bdev() will store > "Can't lookup blockdev" error message. Although it makes sense for > pure bdev-based fses, this message may mislead users who try to use > EROFS file-backed mounts since get