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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.

I'm fine with this way, but that will be a treewide change, I
will send out a version with a flag later.

I'd probably just add a get_tree_bdev_flags and pass 0 flags from
get_tree_bdev.

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 other needs
are shown later (and I don't need to define an enum.)

Does it look good to you? if okay, I will follow this way.

Thanks,
Gao Xiang





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux