]> xenbits.xensource.com Git - libvirt.git/commit
util: recognize SMB/CIFS filesystems as shared
authorLaine Stump <laine@laine.org>
Thu, 26 Sep 2013 09:40:17 +0000 (05:40 -0400)
committerLaine Stump <laine@laine.org>
Tue, 1 Oct 2013 09:45:05 +0000 (05:45 -0400)
commite4e73337e5a5aa708bb356751404ab8ae6583f42
tree69bf1b5b9818df165e395b895dd102890d7ac547
parent63857eb4a0ce6334091069a54c0b8eb11ad5a5e2
util: recognize SMB/CIFS filesystems as shared

This should resolve:

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

libvirt previously recognized NFS, GFS2, OCFS2, and AFS filesystems as
"shared", and thus eligible for exceptions to certain rules/actions
about chowning image files before handing them off to a guest. This
patch widens the definition of "shared filesystem" to include SMB and
CIFS filesystems (aka "Windows file sharing"); both of these use the
same protocol, but different drivers so there are different magic
numbers for each.
src/util/virstoragefile.c
src/util/virstoragefile.h