| 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
| ||
|
Message-ID: <A0A342BA-631D-4D6E-B6D2-692A45509F63@amazon.com> Date: Mon, 18 Mar 2024 21:51:04 +0000 From: "Kiselev, Oleg" <okiselev@...zon.com> To: Kent Overstreet <kent.overstreet@...ux.dev>, Theodore Ts'o <tytso@....edu> CC: "torvalds@...ux-foundation.org" <torvalds@...ux-foundation.org>, "linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "Christian Brauner" <brauner@...nel.org>, Andreas Dilger <adilger.kernel@...ger.ca>, "linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org> Subject: Re: [PATCH 3/3] ext4: Add support for FS_IOC_GETFSSYSFSPATH On 3/15/24, 09:51, "Kent Overstreet" <kent.overstreet@...ux.dev <mailto:kent.overstreet@...ux.dev>> wrote: > On Fri, Mar 15, 2024 at 12:45:50PM -0400, Theodore Ts'o wrote: > > On Thu, Mar 14, 2024 at 11:53:02PM -0400, Kent Overstreet wrote: > > > the new sysfs path ioctl lets us get the /sys/fs/ path for a given > > > filesystem in a fs agnostic way, potentially nudging us towards > > > standarizing some of our reporting. > > > > > > --- a/fs/ext4/super.c > > > +++ b/fs/ext4/super.c > > > @@ -5346,6 +5346,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) > > > sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP | QTYPE_MASK_PRJ; > > > #endif > > > super_set_uuid(sb, es->s_uuid, sizeof(es->s_uuid)); > > > + super_set_sysfs_name_bdev(sb); > > > > Should we perhaps be hoisting this call up to the VFS layer, so that > > all file systems would benefit? > > > I did as much hoisting as I could. For some filesystems (single device > filesystems) the sysfs name is the block device, for the multi device > filesystems I've looked at it's the UUID. Why not use the fs UUID for all cases, single device and multi device? -- Oleg Kiselev
Powered by blists - more mailing lists