From 2a716b7a7a4302414b4a4dfaa86c7cf18a181731 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Oct 2014 23:20:50 +0200 Subject: doc: document the mount/neighbor commands --- doc/protocol.xml | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) (limited to 'doc/protocol.xml') diff --git a/doc/protocol.xml b/doc/protocol.xml index 5e2043d48..858ca0990 100644 --- a/doc/protocol.xml +++ b/doc/protocol.xml @@ -1892,6 +1892,113 @@ OK +
+ Mounts and neighbors + + + A "storage" provides access to files in a directory tree. The + most basic storage plugin is the "local" storage plugin which + accesses the local file system, and there are plugins to + access NFS and SMB servers. + + + + Multiple storages can be "mounted" together, similar to the + mount command on many operating + systems, but without cooperation from the kernel. No + superuser privileges are necessary, beause this mapping exists + only inside the MPD process + + + + + + + + mount + PATH + URI + + + + + + Mount the specified remote storage URI at the given + path. Example: + + + mount foo nfs://192.168.1.4/export/mp3 + + + + + + + unmount + PATH + + + + + + Unmounts the specified path. Example: + + + unmount foo + + + + + + + listmounts + + + + + + Queries a list of all mounts. By default, this contains + just the configured music_directory. + Example: + + + listmounts +mount: +storage: /home/foo/music +mount: foo +storage: nfs://192.168.1.4/export/mp3 +OK + + + + + + + + listneighbors + + + + + + Queries a list of "neighbors" (e.g. accessible file + servers on the local net). Items on that list may be + used with the mount + command. Example: + + + listneighbors +neighbor: smb://FOO +name: FOO (Samba 4.1.11-Debian) +OK + + + + + +
+
Stickers -- cgit v1.2.3