4 ms·
I couldn't say what Oracle's been doing, but writing this comment from OpenIndiana (Illumos) the feature is still here and works fine. It's integrated into MATE
by yjftsjthsd-h 5y ago
I couldn't say what Oracle's been doing, but writing this comment from OpenIndiana (Illumos) the feature is still here and works fine. It's integrated into MATE's Caja (forked GNOME/nautilus) and AFAICT it's the same exact feature and it still just works; you click the little clock button in the toolbar, click to the snapshot you want, and browse the filesystem. Actually looking more closely, it looks like it's a pretty thin veneer over the .zfs/snapshot virtual directory so it should be dead simple to build into any file browser that supports extensions (because all you need to do is provide a list of directories under $FS/.zfs/snapshot, and then when the user clicks one change path to $FS/.zfs/snapshot/$SNAPSHOT). I mean, there's a little more integration than that (some context menu items to snapshot and view old versions, an extra column in the detailed view) but that's the main part and I suspect the whole thing could be reimplemented in a day or two.
Edit: Nicer screenshot: https://www.openindiana.org/documentation/gallery/oi-b148-gui-timeslider/ https://www.openindiana.org/documentation/gallery/oi-b148-gu...
- brnt 5y agoWonder why it's not used for browsing btrfs snapshots. It's such a great bit of ui.
- yjftsjthsd-h 5y agoI have no specific knowledge but suspect that it just never cross-pollinated; illumos is a somewhat separate community from the Linux-sphere. For all I know, you can build the same code on Linux with OpenZFS and trivially switch it to BTRFS by replacing the paths.
- rbanffy 5y agoThis looks like a brilliant low hanging fruit to go after. In BtrFS, iirc, snapshots work a bit differently than they do under ZFS in that you can only snapshot a subvolume and not a folder, but, if you make every home a subvolume, it should work. All it'd need is some advanced planning and some extra work during system installation.
- yjftsjthsd-h 5y agoI'm pretty sure that's how it works in ZFS too? The `zfs snapshot` command takes a filesystem as an argument, which is analogous to a BTRFS subvolume AIUI. And while I personally think every home directory being a filesystem/subvolume makes sense, I don't think you need that actually, it just affects where you splice the path; for example (using ZFS because I know that), if you just stuck everything on the root filesystem you would just browse to /.zfs/snapshot/mysnap/home/myuser instead of /home/myuser/.zfs/snapshot/mysnap and for read-only stuff there would be no difference. I grant that it does affect rw stuff - you may or may not want to let arbitrary users create and destroy snapshots of the root FS or /home.
- rbanffy 5y agoI always thought you could snapshot directories. It’s very close to making a copy using CoW semantics. But, then, BtrFS can do that too.