summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5627dfd)
Signed-off-by: Niclas Berglind <nb@kjam.se>
$uuid = OMVUtil::uuid();
$pathName = $tmp->getMountPoint();
$subdirs = preg_split('/\//',$pathName);
$uuid = OMVUtil::uuid();
$pathName = $tmp->getMountPoint();
$subdirs = preg_split('/\//',$pathName);
- $reldirpath = $subdirs[count($subdirs)-1];
+ $reldirpath = "";
+ for ($i=2;$i<count($subdirs);$i++) {
+ $reldirpath .= $subdirs[$i] . "/";
+ }
+ $reldirpath = rtrim($reldirpath, "/");
$object = array(
"uuid" => $uuid,
"name" => $params['sharename'],
$object = array(
"uuid" => $uuid,
"name" => $params['sharename'],