]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Generate correct parameters for CIFS
authorJohn Ferlan <jferlan@redhat.com>
Wed, 3 Jun 2015 14:20:56 +0000 (10:20 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Jun 2015 21:25:47 +0000 (17:25 -0400)
commit29230951f1430c196420e8a3a5efbe5ea98f7184
treec2d0d322935b040db4ef8eac16596e1020c0af92
parent257250f764373f1650b675c6b249451acb6eb8d9
storage: Generate correct parameters for CIFS

https://bugzilla.redhat.com/show_bug.cgi?id=1186969

When generating the path to the dir for a CIFS/Samba driver, the code
would generate a source path for the mount using "%s:%s" while the
mount.cifs expects to see "//%s/%s". So check for the cifsfs and
format the source path appropriately.

Additionally, since there is no means to authenticate, the mount
needs a "-o guest" on the command line in order to anonymously mount
the Samba directory.
docs/formatstorage.html.in
docs/storage.html.in
src/storage/storage_backend_fs.c