mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #416 from grahamhayes/limit-p9-tag-length
Limit p9 tag to 31 bytes
This commit is contained in:
commit
1baecfd694
@ -1,3 +1,4 @@
|
||||
require "digest/md5"
|
||||
require "vagrant/util/retryable"
|
||||
|
||||
module VagrantPlugins
|
||||
@ -16,7 +17,7 @@ module VagrantPlugins
|
||||
machine.communicate.sudo("mkdir -p #{expanded_guest_path}")
|
||||
|
||||
# Mount
|
||||
mount_tag = name.dup
|
||||
mount_tag = Digest::MD5.new.update(name).to_s[0,31]
|
||||
|
||||
mount_opts="-o trans=virtio"
|
||||
mount_opts += ",access=#{opts[:owner]}" if opts[:owner]
|
||||
|
Loading…
Reference in New Issue
Block a user