Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1653938
| From | Miklos Szeredi <mszeredi@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH 00/23] VFS: Introduce superblock configuration context [ver #4] |
| Date | 2017-05-31 10:00 +0200 |
| Message-ID | <tN6HT-1Tw-7@gated-at.bofh.it> (permalink) |
| References | <tJXUu-7yP-3@gated-at.bofh.it> <tMRpv-GU-9@gated-at.bofh.it> <tMRpv-GU-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, May 30, 2017 at 5:36 PM, David Howells <dhowells@redhat.com> wrote: > Al Viro <viro@ZenIV.linux.org.uk> wrote: > >> Random notes: >> * "sb_config" looks rather odd in the current variant; mount_context, >> perhaps? Or fs_context, for that matter... Anyway, that's trivial. > > You can argue that one with Miklós. He argued against mount_context as I had > it originally. His point is that the same struct may be used when > reconfiguring an sb - which isn't exactly a mount operation (even though we do > it that day today with remount). I'm fine with fs_context, just leave "mount" out of this. Mounting is the act of attaching the root dentry to the mountpoint. fs_context is used for obtaining the root, but not for mounting itself, hence mount_context is misleading IMO. >> * what the hell is ms_flags thing doing in __vfs_new_sb_config()? >> It's a really vile mix of unrelated flags and operations we had in existing >> mount(2) ABI. With MS_KERNMOUNT thrown into that loo^Wmix. Sure, we need >> to parse the garbage fed to mount(2). And we need to pass that garbage to >> "legacy" types as well, but let's not inflict it upon the new mechanisms. > > I know, but we might get it from mount(2). I can tamp down the flag mask and > translate it from MS_*, but the MS_* flags are also stored in the superblock > (->s_flags). Good cleanup would be to just introduce a new set of flags for s_flags and leave MS_* usage solely for the legacy mount(2) interface. Thanks, Miklos
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [RFC][PATCH 00/23] VFS: Introduce superblock configuration context [ver #4] David Howells <dhowells@redhat.com> - 2017-05-30 17:40 +0200 Re: [RFC][PATCH 00/23] VFS: Introduce superblock configuration context [ver #4] Miklos Szeredi <mszeredi@redhat.com> - 2017-05-31 10:00 +0200
csiph-web