LWN: Comments on "listmount() and statmount()" https://lwn.net/Articles/950569/ This is a special feed containing comments posted to the individual LWN article titled "listmount() and statmount()". en-us Mon, 13 Oct 2025 17:50:46 +0000 Mon, 13 Oct 2025 17:50:46 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net listmount() and statmount() https://lwn.net/Articles/951749/ https://lwn.net/Articles/951749/ cavok <div class="FormattedComment"> I'm so used to `cat /proc/partitions` instead :)<br> </div> Thu, 16 Nov 2023 20:28:19 +0000 listmount() and statmount() https://lwn.net/Articles/951610/ https://lwn.net/Articles/951610/ mezcalero <div class="FormattedComment"> BTW, one addendum. The reason why systemd considers the mount ID a 32bit entity is simply because the kernel exports it like that. i.e. name_to_handle_at() was the first kernel API to expose the mount ID to userspace in binary form, and it used an "int" for that, see man page. We then adopted that, since that's apparently what the kernel wants us to use.<br> <p> Lennart<br> </div> Thu, 16 Nov 2023 09:00:10 +0000 listmount() and statmount() https://lwn.net/Articles/951208/ https://lwn.net/Articles/951208/ intelfx <div class="FormattedComment"> <span class="QuotedText">&gt; I found the output of "lsblk -f" to be really good.</span><br> <p> There's also `findmnt` (esp. `findmnt --real`) that works in the opposite direction.<br> </div> Mon, 13 Nov 2023 10:29:45 +0000 listmount() and statmount() https://lwn.net/Articles/951197/ https://lwn.net/Articles/951197/ marcH <div class="FormattedComment"> <span class="QuotedText">&gt; ... few of which correspond to partitions on actual storage devices.</span><br> <p> I stopped using the "mount" command for that reason. I found the output of "lsblk -f" to be really good.<br> </div> Mon, 13 Nov 2023 00:23:34 +0000 listmount() and statmount() https://lwn.net/Articles/951183/ https://lwn.net/Articles/951183/ atnot <div class="FormattedComment"> <span class="QuotedText">&gt; One problem with big-endian numbers ... if you had little-endian, anybody retrieving a u64 into an i32 would have a rude awakening straight away ...</span><br> <p> Did you mean the other way around? Either way it doesn't really matter because unless you got the type definition for the syscall wrong or accidentally did the arcane incantations required to do a bit cast in C, it will just cast it numerically and endianness is irrelevant.<br> </div> Sun, 12 Nov 2023 12:33:01 +0000 listmount() and statmount() https://lwn.net/Articles/951170/ https://lwn.net/Articles/951170/ Wol <div class="FormattedComment"> One problem with big-endian numbers ... if you had little-endian, anybody retrieving a u64 into an i32 would have a rude awakening straight away ...<br> <p> But if statx has *always* been u64, why do you need another argument? Any consumers that mis-use it will break, but surely they would break anyway? (Or have a kernel switch about re-using IDs.)<br> <p> Cheers,<br> Wol<br> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> </div> Sat, 11 Nov 2023 22:42:26 +0000 listmount() and statmount() https://lwn.net/Articles/951167/ https://lwn.net/Articles/951167/ atnot <div class="FormattedComment"> <span class="QuotedText">&gt; As a way of avoiding confusion between the two IDs, the lowest unique mount ID is set to 232. </span><br> <p> I feel like this should just be done in general for any 32 bit ID in the future to avoid this issue... Otherwise someone will inevitably store it in a c int some point :)<br> </div> Sat, 11 Nov 2023 20:39:16 +0000 listmount() and statmount() https://lwn.net/Articles/951140/ https://lwn.net/Articles/951140/ snajpa <div class="FormattedComment"> haha but procfs made almost entirely of such text files is still considered a good idea :-D haha :-D<br> </div> Sat, 11 Nov 2023 09:46:20 +0000 listmount() and statmount() https://lwn.net/Articles/951101/ https://lwn.net/Articles/951101/ iustin <div class="FormattedComment"> Thanks for the article. This kind of post is why I am very happy to be a subscriber!<br> </div> Fri, 10 Nov 2023 19:04:40 +0000 listmount() and statmount() https://lwn.net/Articles/951095/ https://lwn.net/Articles/951095/ bluca <div class="FormattedComment"> This is a very welcome development, been waiting for this for a long time, very happy to see it move forward<br> </div> Fri, 10 Nov 2023 17:09:20 +0000