  
  log_debug "$1 $2"
  log_debug "DST: $DST_PATH"
-@@ -43,19 +45,52 @@ log "Creating directory $DST_DIR"
+@@ -43,19 +45,54 @@ log "Creating directory $DST_DIR"
  exec_and_log "$SSH $DST_HOST mkdir -p $DST_DIR" \
      "Error creating directory $DST_DIR"
  

+exec_and_log "$SSH $DST_HOST chmod ug+w,o-rwx $DST_PATH"
 
diff --git a/src/tm_mad/nfs/tm_clone.sh b/src/tm_mad/nfs/tm_clone.sh
index 62c33fc..9d67c40 100755
--- a/src/tm_mad/nfs/tm_clone.sh
+++ b/src/tm_mad/nfs/tm_clone.sh
@@ -32,30 +32,69 @@ get_vmdir
 SRC_PATH=`arg_path $SRC`
 DST_PATH=`arg_path $DST`
 

+        ;;
+
+    pdisk:*)
+        PORTAL=`echo $SRC | cut -d ':' -f 2`
+        DISK_UUID=`echo $SRC | cut -d ':' -f 3`
+        log "Persistent disk handling $SRC $DST"
+        exec_and_log "$SSH -t -t $DST_HOST /usr/sbin/attach-persistent-disk.sh $SRC $DST_PATH" \
+            "Failed to clone persistent disk $DST_PATH"
+        exec_and_log "python /var/share/stratuslab/creation/pdisk-registrar.py -n $DST_HOST -u $DISK_UUID -p $PORTAL $VM_ID" \
+           "Failed to write persistent disk properties"
+        ;;
+
