Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autodetect and automount discs when reading them #16

Open
jaredjennings opened this issue Mar 20, 2016 · 3 comments
Open

autodetect and automount discs when reading them #16

jaredjennings opened this issue Mar 20, 2016 · 3 comments

Comments

@jaredjennings
Copy link
Owner

#15 comes from the realization that it takes a long time to read a whole disc, and if we may not consume all the data in a whole set, reading every disc entirely is wasted time.

Trading some of that lost time away for the possibility of switching discs more means that it would be nice if we could avoid having to mount and unmount discs, and just insert and remove them. But, of course, ten years from now, how that happens is anybody's guess. But we ought to be able to tell if something we try isn't working and fall back.

@jaredjennings
Copy link
Owner Author

I found udiskie, a program written in Python 3 to automount your disks that supports udisks 1 and 2. But it wasn't made to be a library and it showed. And it's probably only in Debian or something.

@jaredjennings
Copy link
Owner Author

Added UDisks 2 support to asunder, jaredjennings/asunder@bc72fae. This is about half of what is needed for this issue.

@jaredjennings
Copy link
Owner Author

Gnaah, that's a quarter of what's needed for this issue. We'd have to listen to UDisks 2's ObjectManager interface for the InterfacesAdded and InterfacesRemoved events, see that new Filesystem objects are available, and request they be mounted. But this is approximately what udiskie does, independently of darbrrb, and anyone who doesn't know how to get udiskie is probably running a desktop, with a file manager, which will automount discs they insert. It's the mounting that's the annoying part about switching discs, really.

I guess where this would come in handy is you wouldn't have to unlock your screen to hit Enter or type a location if we had this, and if the notification (#18) is in place, then as long as nothing is going wrong, the command-line interface isn't necessary during a backup or restore. Hmm. I was about to postpone this, but it could be the difference between me having to do a backup or restore, and someone else being able to switch discs for me. Still depending on them to wield the sharpie when discs are burned, though. Hmm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant