Reading /proc/filesystems Is Surprisingly Done Very Often & Now As Much As 444% Faster
Reading /proc/filesystems for obtaining a list of file-systems supported by the running kernel is done frequently on Linux. Namely due to being read by the SELinux library (libselinux), reading of /proc/filesystems is done more often than one would typically expect and now the Linux 7.2 kernel is optimizing for it to yield much better performance… ⌘ Read more
Greg Brockman: Inside the 72 Hours That Almost Killed OpenAI
Article URL: https://fs.blog/knowledge-project-podcast/greg-brockman/
Comments URL: https://news.ycombinator.com/item?id=48255593
Points: 4
# Comments: 0 ⌘ Read more
Linux File-System Proliferation A Burden: Requirements Laid Out For Any Future File-Systems
The growing number of file-systems within the Linux kernel source tree is causing an ongoing burden for upstream developers maintaining the virtual file-system (VFS) code around it and associated code. As a result of the continuing rise of new file-systems being proposed for the Linux kernel, documentation is being introduced to establish clear guidelines for getting new file-systems accepted into the mainline kernel. … ⌘ Read more
Linux 6.19 Should Better Deal With Corrupt Minix File-Systems
For anyone dealing with Minix file-systems still for this nearly 40 year old creation, the upcoming Linux 6.19 kernel is expected to bring some fixes to the Minix driver for better handling corrupted file-system images… ⌘ Read more
setpriv on Linux supports Landlock.
Another example:
$ setpriv \
--landlock-access fs \
--landlock-rule path-beneath:execute,read-file:/bin/ls-static \
--landlock-rule path-beneath:read-dir:/tmp \
/bin/ls-static /tmp/tmp/xorg.atom
The first argument --landlock-access fs says that nothing is allowed.
--landlock-rule path-beneath:execute,read-file:/bin/ls-static says that reading and executing that file is allowed. It’s a statically linked ls program (not GNU ls).
--landlock-rule path-beneath:read-dir:/tmp says that reading the /tmp directory and everything below it is allowed.
The output of the ls-static program is this line:
─rw─r──r────x 3000 200 07-12 09:19 22'491 │ /tmp/tmp/xorg.atom
It was able to read the directory, see the file, do stat() on it and everything, the little x indicates that getting xattrs also worked.
3000 and 200 are user name and group name – they are shown as numeric, because the program does not have access to /etc/passwd and /etc/group.
Adding --landlock-rule path-beneath:read-file:/etc/passwd, for example, allows resolving users and yields this:
─rw─r──r────x cathy 200 07-12 09:19 22'491 │ /tmp/tmp/xorg.atom
Jojojo, man kan give /FS til MSVC for at enforce sekventielle writes til pdb filer. ELLER bare give -j1 for ikke at lave parallelle builds; MEN de indstillinger bliver ikke sendt ordenligt igennem llama.cpp’s CMakeLists, fordi de nester med noget whack `ExternalProject_Add`, som ikke lige samler mine CMAKE_CXX_FLAGS op. ⌘ Read more
Pretty neat what one can achieve with Node.js Fs, the Express framework, Redis, a text file and some HTML with a sprinkle of CSS.
@prologic@twtxt.net I get the worry of privacy. But I think there is some value in the data being collected. Do I think that Russ is up there scheming new ways to discover what packages you use in internal projects for targeting ads?? Probably not.
Go has always been driven by usage data. Look at modules. There was need for having repeatable builds so various package tool chains were made and evolved into what we have today. Generics took time and seeing pain points where they would provide value. They weren’t done just so it could be checked off on a box of features. Some languages seem to do that to the extreme.
Whenever changes are made to the language there are extensive searches across public modules for where the change might cause issues or could be improved with the change. The fs embed and strings.Cut come to mind.
I think its good that the language maintainers are using what metrics they have to guide where to focus time and energy. Some of the other languages could use it. So time and effort isn’t wasted in maintaining something that has little impact.
The economics of the “spying” are to improve the product and ecosystem. Is it “spying” when a municipality uses water usage metrics in neighborhoods to forecast need of new water projects? Or is it to discover your shower habits for nefarious reasons?
io.FS file systems using “os”, in-memory and Azure Blob storage #fs #go #azure ⌘ Read more…
Video: io/fs draft design by Russ Cox ⌘ https://www.youtube.com/watch?v=yx7lmuwUNv8
Mutually Assured Destruction: When The Only Winning Move is Not to Play https://fs.blog/2017/06/mutually-assured-destruction/
Daniel Kahneman and Herbert Simon on Intuition https://fs.blog/2012/03/daniel-kahneman-on-intuition/
Double Loop Learning: Download New Skills and Information into Your Brain https://fs.blog/2018/06/double-loop-learning/
@kas@enotty.dk my bad - I’ve been developing a twtxt client, hence the frequent requests. I’m switching it over to use a fs cache for testing so I’m not hitting the twtxt files so much.
Does cat /proc/fs/xfs/stat | awk ‘/^ig/{print $1}’ == 0 really mean that i’m not using the inode cache?