9 ms·
Linux's SystemV Filesystem Support Being Orphaned
- steponlego 4y agoLinux foundation has BILLIONS of dollars and hundreds of global companies supporting it. You're telling me there's no way they can even see if they can mount a DISK or even DISK IMAGE in a specific format? I simply don't buy it. I could buy "It's a waste of time, nobody's using the code, we are pruning legacy code for the Rust rewrite, etc." But not that it's impossible to test. That doesn't seem truthful.
- phendrenad2 4y agoThis is a good thing. There's a constant struggle between people who want Linux to support their ancient hardware, and people who have to work with the kernel source regularly, and would like to speed up compile times and reduce git clone times. But it's undeniable that the balance needs to be struck, and old hardware needs to be deprecated at some point. I think the tipping point should be when 99% of people who need some feature will be perfectly fine with an outdated kernel. And, I think this case qualifies.
- rbanffy 4y agoFrom an interoperability and preservation perspective, would it be viable to keep it, provided there is a comprehensive set of tests to make sure it remains safe to use?
- happymellon 4y agoYes, but something like this should be moved to FUSE. The tests would certainly help that migration.
- skissane 4y agoMaybe one of these days all filesystems will be moved to FUSE, and Linux will have evolved from a monolithic kernel into a microkernel Yes, yes, FUSE performance is nothing to write home about – but some people seem to think that io_uring might solve that. L4 is evidence that, in principle, the right microkernel design can perform about as well as monolithic kernels can
- pjmlp 4y agoIronically with cloud workloads it already kind of is, specially when it doesn't run bare metal, and has a type 1 hypervisor underneath it. Or for container based distributions where it is basically there to provide the minimal set of services to run containers, and any other kernel would do, it is only a matter of convenience to ping back on the Linux kernel. The monolithic kernel folks just haven't noticed it.
- monocasa 4y ago> Ironically with cloud workloads it already kind of is, specially when it doesn't run bare metal, and has a type 1 hypervisor underneath it. AWS overwhelmingly uses Linux/KVM, not any type 1 hypervisor. There's a few leftover Xen systems, but those are legacy; you get KVM if you provision a new instance.
- noobermin 4y ago>The monolithic kernel folks just haven't noticed it. I know may be by sheer number of users most people use them in the cloud or for development but some of us do actually use linux on our everyday machines.
- pjmlp 4y agoWith docker?
- zamalek 4y ago> docker? > GP: development Probably yes? Even foregoing development scenarios, containers can be used for everyday Linux tasks with things like toolbox/distrobox (which do support GUIs).
- pjmlp 4y agoSo playing microkernels anyway, with worse performance due to the extra monolithic layers.
- unmole 4y ago> For now this file-system support is staying put in the kernel -- albeit stale -- but without someone willing to maintain it runs the risk of further code rot and removal in the future.
- rbanffy 4y agoEventually it'll start breaking builds and failing tests. Some code cleanup can be done as a last step before offloading it to another project that focuses on preserving software like this rather than providing a nice OS for usable computers.
- mrweasel 4y agoFor something like SystemV filesystem support to be truly useful, won't we need a way to format drives using the original implementations? If we just create the filesystem using the Linux driver, and validate it using the same driver, then what is achieved exactly? For preservation we'd still need access to Xenix systems and a drive of some sort that can be moved between the old system and a more modern computer. I suppose disk images could be used, but that still seems like only a partial solution.
- rbanffy 4y agoWe should have reference filesystems generated on actual System V machines that are mounted and used in tests.
- bryanlarsen 4y agoI highly doubt you're going to be running a modern Linux on any hardware connected to a SysV filesystem. You'll want to use an older Linux that can run on 386's with 8MB of RAM, or similar vintage. And those older Linux's aren't going away.
- newaccount2021 4y ago[dead]
- dsr_ 4y agoFWIW, I've been running Linux since 1993 or 94, and have never felt a need for this filesystem. Compatibility with other UNIX systems always meant FTP or NFS and then application support for whatever file formats were in use.
- rbanffy 4y agoI understand it'd be more important early on (as in "1990's"), but things like NFS abstracted away the underlying filesystem (at least where the machine that has the disk is alive). I mentioned the historical preservation aspect, and, following a comment, I'd say it belongs more under FUSE than inside the mainline kernel.
- smegsicle 4y ago> NFS belongs more under FUSE besides any philosophical argument, doesn't it still crap up your whole system whenever the network flakes out? (unlike, i imagine, any FUSE driver)
- guenthert 4y agoNot sure what you might mean by 'crap out'. If you have soft-mounted a remote export and the network goes away, then your applications experience i/o errors which they either handle one way or another or not, which yields silent data corruption, but you have been warned about that. If you have hard-mount'ed an remote export and the network connection to that server goes dark, then any access to files residing on that will stall ('hang') until the network issue is resolved. What exactly do you want the client to do, when it relies on remote resources and the network isn't reliable? This fortunately is these days much less a problem than in the days of cheapernet (10BASE2).
- kasabali 4y ago> unlike, i imagine, any FUSE driver FUSE drivers aren't exempt from hanging syscalls, I've experienced them even with local mounts let alone network ones. I don't know why people keep repeating this.
- nubinetwork 4y agoI didn't even know there was a sysv file system... when I first started using Linux, I think my choices were ext2, fat, or ufs.
- skissane 4y agoI remember using the Minix filesystem on floppies. ext{,2} was a bit too heavyweight for a floppy. And UMSDOS on my MS-DOS6.22/Wfw3.11 FAT16 partition. And HPFS so I could mount my OS/2 2.0 partition (EMX on the Hobbes OS/2 CD-ROM was my gateway drug to Linux.) xiafs sounded intriguing, but I never actually used it. Of all the filesystems currently in the mainline Linux kernel, the most useless (surely) must be BFS (not BeFS) – https://www.kernel.org/doc/html/next/filesystems/bfs.html https://www.kernel.org/doc/html/next/filesystems/bfs.html
- da_chicken 4y agoHey, I support a system that 4 complete rewrites ago used BFS!
- chasil 4y agoThere was also Minix, used in the very early days.
- slondr 4y agoIsn’t minix shipped with every x86_64 cpu these days? I thought it was one of the most deployed operating systems ever
- chasil 4y agoI think Android beats MINIX. The file system used isn't accessible, so issues aren't directly applicable.
- SoftTalker 4y agoMy undergrad operating systems class used Minix
- jasongill 4y agoJust to prevent inevitable confusion, SystemV filesystem is different than SystemV init which you may be thinking of. SysV init isn't part of the kernel and while it's been replaced with systemd in many distributions, it's not impacted by this change.
- twic 4y agoThe SysV name is also attached to a set of old and strange interprocess communication primitives: https://man7.org/linux/man-pages/man7/sysvipc.7.html https://man7.org/linux/man-pages/man7/sysvipc.7.html Unix has a bigger range of IPC mechanisms than i think most people realise. Everyone knows about internet sockets and pipes. Most people know about shared memory, named pipes, and unix domain stream sockets. But how many people know about unix domain datagram sockets, or POSIX message queues?
- xyzzyz 4y agoIn a university class, we had an assignment that asked us to write a program that would communicate with its copies over POSIX message queues. I remember grepping through the source of all the software I had on my Gentoo installation, and couldn’t find a single one that had any sort of usage or support for POSIX message queues. Does anyone know of even a single app that uses them?
- mmcgaha 4y agoI don't know of anything other than one I wrote back in the late 2000s that let me coordinate a web service with process pool of ERP instances. When I wrote it I remember thinking that ftok could have real issues on a large filesystem. I never ran into any problems so I sort of put the issue out of my mind.
- RobotToaster 4y agoThey tend to be used more in real time systems I think.
- dfox 4y ago
- jmclnx 4y agoToo bad, I had a use for this and will be sad to see it go. I used this file system many times to copy data from diskettes created and formatted for CoherentOS. Will I need it in the future ? If I can find a nice ISA 486 maybe :) https://www.autometer.de/unix4fun/coherent/ https://www.autometer.de/unix4fun/coherent/
- phendrenad2 4y agoHopefully someone reintroduces it as a loadable FUSE module for cases such as this.
- razor_router 4y agoPlenty of fish in the sea, really...
- viraptor 4y agoYou could still use it from an older kernel or a VM with older system. Those won't disappear for quite a while (if ever).
- rbanffy 4y agoAs Larry Ellison found out the hard way, it’s remarkably hard to kill free software.
- ajross 4y agoNeeding a utility to manage ~2MB of data for transport via legacy storage devices isn't the same thing as "I need a kernel filesystem driver", though. A python wrapper for simple formats like this around a block interface (fuse mount, etc...) is a few afternoons of work for someone. I bet anything someone's already written this.
- cbmuser 4y agoBeing orphaned doesn’t mean it’s being removed. Some subsystems will eventually get a new maintainer such as the floppy driver.
- userbinator 4y agoSomething this old and unchanged should be considered done and perhaps even bug-free. Unfortunately the state of software seems to be pursuing constant change instead of stability.
- woodruffw 4y ago“Old and unchanged” has historically meant relatively little in Linux[1], in part due to a lack of a stable API/ABI. These components are very possibly more buggy than those under continuing development. [1]: https://www.phoronix.com/news/Linux-Floppy-2021-Regression https://www.phoronix.com/news/Linux-Floppy-2021-Regression
- lutoma 4y agoThe filesystem code itself might be done, but the internal Linux APIs that code interacts with are not and change over time. And every time those APIs are changed, the SysV fs code might also have to be updated and tested, except apparently you can't even properly test it anymore. That's a lot of work for something pretty much nobody uses. And in the end the SysV FS support might not even work anymore because of oversights during the API updates.
- throwanem 4y agoAnd it's not as if older versions of the kernel cease to exist when a new one lands, too. Worst case, it'll always be there in source control, just a checkout and a build away.
- rbanffy 4y agoWhen you test a file system are you testing it via the libc APIs, creating, deleting, checking filesystem objects and so on? Or is it done at a lower level API (that I’d hope is the same across filesystems, different features excepted)
- dezgeg 4y agoFor filesystems the former. Having test code running in kernel space is relatively uncommon, though some kernel subsystems do that. "can't even properly test it anymore" almost certainly means not that it is impossible for the maintainer, but more like they have better things to spend their time on.