Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Fixes escaped spaces from /proc/mounts entries #1736

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

govint
Copy link
Contributor

@govint govint commented Aug 10, 2017

Fixes spaces in vol and DS names that appear as escaped sequences in /proc/mount entries

Testing:
Ran container with volume name as "snapvol 4"

/proc/mounts has this,

/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0 /mnt/vmdk/snapvol\0404@sharedVmfs-0 ext4 rw,relatime,data=ordered 0 0

2017-08-10 09:42:33.230951849 +0000 UTC [INFO] Volume 'snapvol 4@sharedVmfs-0' was found mounted, ref=(&refcount.refCount{count:0x0, mounted:true, dev:"/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0"})
2017-08-10 09:42:33.231054727 +0000 UTC [INFO] Initiating recovery unmount. name="snapvol 4@sharedVmfs-0" refcnt=0 mounted=true dev="/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0"
2017-08-10 09:42:33.912167335 +0000 UTC [INFO] Discovered 1 volumes that may be in use.
2017-08-10 09:42:33.912243437 +0000 UTC [INFO] Volume name=snapvol 4@sharedVmfs-0 count=0 mounted=true device='/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0'
2017-08-10 09:42:33.912251873 +0000 UTC [INFO] Refcounting successfully completed
2017-08-10 09:42:33.912264325 +0000 UTC [INFO] Docker VMDK plugin started mock_esx=false version="vSphere Volume Driver v0.5" port=1019
2017-08-10 09:42:33.912491836 +0000 UTC [INFO] Going into ServeUnix - Listening on Unix socket address="/run/docker/plugins/vsphere.sock"

Copy link
Contributor

@pshahzeb pshahzeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@govint govint merged commit a88f520 into vmware-archive:master Aug 11, 2017
@govint govint deleted the name-spaces branch August 11, 2017 06:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants