Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jakesmith committed Mar 17, 2023
1 parent 61a3582 commit 1814b1d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dali/dfu/dfuutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,15 @@ class CFileCloner
StringBuffer dstdir;
getLFNDirectoryUsingBaseDir(dstdir, dstlfn.get(), spec.defaultBaseDir.get());
dstfdesc->setDefaultDir(dstdir.str());

Owned<IStoragePlane> plane = getDataStoragePlane(cluster1, false);
if (plane) // I think it should always exist, even in bare-metal.., but guard against it not for now (assumes initializeStorageGroups has been called)
{
if (plane->queryDirPerPart())
dstfdesc->setFlags(FileDescriptorFlags::dirperpart);
}
else
WARNLOG("cloneSubFile: plane '%s' not found", cluster1.get());
dstfdesc->addCluster(cluster1,grp1,spec);
if (iskey&&!cluster2.isEmpty())
dstfdesc->addCluster(cluster2,grp2,spec2);
Expand Down

0 comments on commit 1814b1d

Please sign in to comment.