[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libvirt-ci] Fixed: libvirt/libvirt#206 (master - 6451b55)

libvirt / libvirt (master)
Build #206 was fixed.
23 minutes and 33 seconds
Michal Privoznik 6451b55 Changeset →
  qemuDomainGetPreservedMounts: Fix suffixes for corner cases


Imagine a FS mounted on /dev/blah/blah2. Our process of creating
suffix for temporary location where all the mounted filesystems
are moved is very simplistic. We want:


were $suffix is just the mount point path stripped of the "/dev/"
prefix. For instance:

/var/run/libvirt/qemu/fedora.mqueue for /dev/mqueue
/var/run/libvirt/qemu/fedora.pts for /dev/pts

and so on. Now if we plug /dev/blah/blah2 into the example we see
some misbehaviour:


Well, misbehaviour if /dev/blah/blah2 is a file, because in that
case we call virFileTouch() instead of virFileMakePath().
The solution is to replace all the slashes in the suffix with say
dots. That way we don't have to care about nested directories.
IOW, the result we want for given example is:


Signed-off-by: Michal Privoznik <mprivozn redhat com>
Reviewed-by: John Ferlan <jferlan redhat com>
System message:

PSA: Updates are coming to our sudo-enabled Trusty images! You can add `group: edge` to your .travis.yml file to test them out in advance. Stay tuned for a blog post with more details. ✨ 🚀

`git-ssh` and `git-deploy-key` Heroku deployment strategies will be shut down on June 26th. See this GitHub issue for details.

Want to know about upcoming build environment updates?

Would you like to stay up-to-date with the upcoming Travis CI build environment updates? We set up a mailing list for you! Sign up here.

Would you like to test your private code?

Travis CI for Private Projects could be your new best friend!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]