lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9b3795de-c67c-4582-9eb1-bed096b3eb67@huawei.com>
Date: Mon, 19 Aug 2024 20:22:41 +0800
From: "liaochen (A)" <liaochen4@...wei.com>
To: <linux-fsdevel@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <dlemoal@...nel.org>,
	<naohiro.aota@....com>, <jth@...nel.org>
Subject: Re: [PATCH -next] zonefs: add support for FS_IOC_GETFSSYSFSPATH

On 2024/8/9 9:36, Liao Chen wrote:
> FS_IOC_GETFSSYSFSPATH ioctl expects sysfs sub-path of a filesystem, the
> format can be "$FSTYP/$SYSFS_IDENTIFIER" under /sys/fs, it can helps to
> standardizes exporting sysfs datas across filesystems.
> 
> This patch wires up FS_IOC_GETFSSYSFSPATH for zonefs, it will output
> "zonefs/<dev>".
> 
> Signed-off-by: Liao Chen <liaochen4@...wei.com>
> ---
>   fs/zonefs/super.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c
> index faf1eb87895d..e180daa39578 100644
> --- a/fs/zonefs/super.c
> +++ b/fs/zonefs/super.c
> @@ -1262,6 +1262,7 @@ static int zonefs_fill_super(struct super_block *sb, struct fs_context *fc)
>   	sb->s_maxbytes = 0;
>   	sb->s_op = &zonefs_sops;
>   	sb->s_time_gran	= 1;
> +	super_set_sysfs_name_id(sb);
>   
>   	/*
>   	 * The block size is set to the device zone write granularity to ensure
Gentle ping

Thanks,
Chen

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ