From 5e6f5569e0b2ab8688c752af419bbd0254cc30c7 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 3 Feb 2011 15:24:06 -0800 Subject: [PATCH] filestore: fix wipe_subvol the rest of the way Signed-off-by: Sage Weil --- src/os/FileStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index e8e8adb75e577..1f20f22ac452d 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -599,7 +599,7 @@ int FileStore::wipe_subvol(const char *s) strcmp(de->d_name, "..") == 0) continue; ostringstream oss; - oss << basedir << "/" << de->d_name; + oss << old_dir.str().c_str() << "/" << de->d_name; int ret = run_cmd("rm", "-rf", oss.str().c_str(), NULL); if (ret) { derr << "FileStore::wipe_subvol: failed to remove " << oss.str() << ": " -- 2.39.5