Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B # 3190 Fix LXD unmap symlink issues #3191

Closed
wants to merge 2 commits into from
Closed

B # 3190 Fix LXD unmap symlink issues #3191

wants to merge 2 commits into from

Conversation

dann1
Copy link
Contributor

@dann1 dann1 commented Apr 5, 2019

The privileged test needs to be added to nfs tests

Closes #3190

@dann1 dann1 requested a review from rsmontero April 5, 2019 04:13
@@ -161,7 +161,11 @@ def unmap(one_vm, disk, directory)
device = ''

real_path = directory
real_path = File.realpath(directory) if File.symlink?(one_vm.sysds_path)

is_rootfs = real_path.match?(%r{containers(/)one-(\d+)(/)rootfs})
Copy link
Member

Choose a reason for hiding this comment

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

is it safer to use the same check as in

if path =~ %r{.*/rootfs}
?

@rsmontero rsmontero closed this Apr 9, 2019
@rsmontero rsmontero deleted the lxd-fix_symlink branch September 2, 2019 16:27
rsmontero pushed a commit that referenced this pull request Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants