Hacker News new | ask | show | jobs
by hlandau 2580 days ago
On *nix, you can always figure out what type of filesystem is mounted at a given prefix by typing `mount`.

What the use of schemes does is make things needlessly inflexible, and embeds a dependency on the name of a filesystem provider inside consumers of that filesystem. It's akin to a Unix where filesystems can only be mounted in top-level directories /mnt, but not /mnt/foo, etc.; I don't see the appeal.

2 comments

I prefer to use `df -T /path/to/mount`, personally.
> I prefer to use `df -T /path/to/mount`, personally.

Why?

Lets me specify a single file system; I don't think `mount` does that (unless I'm blind; possible).
Mount lets you do this as well.

mount -t type device destination_dir

Unless I am missing something in your use case.

> schemes make things needlessly inflexible

Not so. See file: :-)