LWN: Comments on "A filesystem for virtualization" https://lwn.net/Articles/788333/ This is a special feed containing comments posted to the individual LWN article titled "A filesystem for virtualization". en-us Fri, 17 Oct 2025 09:41:44 +0000 Fri, 17 Oct 2025 09:41:44 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net A filesystem for virtualization https://lwn.net/Articles/788796/ https://lwn.net/Articles/788796/ kmeyer <div class="FormattedComment"> I see, thanks. <br> <p> Taking a step back, I guess I’m not sure how the proposed open mode would be used by userspace NFS/Samba. The article is a bit light on details there.<br> </div> Fri, 17 May 2019 16:03:57 +0000 A filesystem for virtualization https://lwn.net/Articles/788795/ https://lwn.net/Articles/788795/ nybble41 <div class="FormattedComment"> <font class="QuotedText">&gt; Can't any user that can modify a file already set the mtime arbitrarily (under ordinary unix permissions)? </font><br> <p> Setting the mtime is a metadata change which forces the the ctime to be updated, so the change would still be noticed. The proposed flag would allow updates to the file's content without any change in mtime *or* ctime.<br> </div> Fri, 17 May 2019 15:42:42 +0000 A filesystem for virtualization https://lwn.net/Articles/788774/ https://lwn.net/Articles/788774/ bfields <div class="FormattedComment"> That's a bug--unfortunately, probably a bug in your server of unknown version. (You can verify who's at fault by running wireshark and seeing exactly where it's failing). NFS has always supported write opens that create read-only files.<br> <p> (Basically NFS servers allow the owner of a file to override permissions and leave enforcement to the client in these cases. It's a minimal loss of security (since the owner could change the permissions anyway) to get better compatibility with local filesystem behavior.)<br> </div> Fri, 17 May 2019 13:38:14 +0000 A filesystem for virtualization https://lwn.net/Articles/788744/ https://lwn.net/Articles/788744/ vdanjean <div class="FormattedComment"> <font class="QuotedText">&gt; Creating a file with open(O_CREAT|O_RDWR) but giving a mode that doesn't allow write access fails. This is observable in practice by rsync/cp of files with 0444 mode failing.</font><br> <p> This is not specific to 9p. I observed the same problem with a kerberos NFSv4 config. And git is using this pattern... My client runs the latest Linux kernel, but I do not have access to the server (probably a CentOS but I do not know its kernel version). I end up writing a small library to intercept such 'open' calls and changing them in separate system calls. I know I lost atomicity, but I gain a working git in this NFS mount. If needed, the code is here : <a href="https://gitlab.inria.fr/NGS/nfs-workaround">https://gitlab.inria.fr/NGS/nfs-workaround</a><br> </div> Fri, 17 May 2019 08:30:09 +0000 A filesystem for virtualization https://lwn.net/Articles/788737/ https://lwn.net/Articles/788737/ dgc <div class="FormattedComment"> Yes, the FMODE_NOCMTIME flag is used on XFS by both xfs_fsr (online defragmentation) to move data around the filesytem without applications noticing it and by xfsdump for when it is pulling data out of the filesystem during backups.<br> <p> It was also used by HSM applications that used DMAPI, but the invisible IO had nothing to do with the DMAPI interface. i.e the HSMs used the same mechanism as xfs_fsr to move data in/out of the filesystem (to/from tape) without any user visible file data or metadata modification. So while DMAPI is no longer in use, the filesystem utilities still use this flag for moving data around the filesystem without leaving traces that users and applications may get upset about...<br> <p> -Dave.<br> </div> Fri, 17 May 2019 02:48:37 +0000 A filesystem for virtualization https://lwn.net/Articles/788730/ https://lwn.net/Articles/788730/ kmeyer <div class="FormattedComment"> <font class="QuotedText">&gt; The worry about such a flag is that changes can be made to a file's contents without anyone noticing, Myklebust said.</font><br> <p> Can't any user that can modify a file already set the mtime arbitrarily (under ordinary unix permissions)? (I would expect SELinux or ACLs / MAC policy can restrict this in some way.) I would assume open() with the "suppress mtime/atime change" flag would cause open() to EPERM or EACCES if the user does not have that capability per security policy, making the concern moot?<br> </div> Fri, 17 May 2019 00:55:35 +0000 A filesystem for virtualization https://lwn.net/Articles/788613/ https://lwn.net/Articles/788613/ eru <blockquote><i>It is implemented by the Linux kernel as 9p client + QEMU as 9p server combo</i></blockquote> <p> Just the combination that did not work for me. Some forms of symlinking did, but not all (I think giving the link target as a relative reference failed, but it was a couple of years ago, so I might remember inaccurately). I did not investigate this further, after figuring out why my build runs failed in an odd way. Thu, 16 May 2019 09:07:19 +0000 A filesystem for virtualization https://lwn.net/Articles/788562/ https://lwn.net/Articles/788562/ dezgeg <div class="FormattedComment"> It is implemented by the Linux kernel as 9p client + QEMU as 9p server combo. Symlinks indeed work correctly.<br> <p> Offhand I know at least these things are broken in that combo though:<br> - Creating a file with open(O_CREAT|O_RDWR) but giving a mode that doesn't allow write access fails. This is observable in practice by rsync/cp of files with 0444 mode failing.<br> - Creating an xattr with zero length value fails, because in the protocol this is interpreted as xattr deletion.<br> </div> Wed, 15 May 2019 21:23:35 +0000 A filesystem for virtualization https://lwn.net/Articles/788416/ https://lwn.net/Articles/788416/ grawity Symlink support was supposed to be added by 9p2000.L, or does nobody implement that? Wed, 15 May 2019 10:19:20 +0000 A filesystem for virtualization https://lwn.net/Articles/788408/ https://lwn.net/Articles/788408/ eru A very welcome addition. The 9p file system sucks even worse than noted: it does not support symlinks properly, which at one time caused me hours of wasted time when trying to build a project in a VM that mounted a host directory via 9p (just had to quit trying that, and switched to using docker). Wed, 15 May 2019 09:16:03 +0000