diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-21 18:30:57 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-21 18:30:57 +0300 |
commit | 3dbf01ec2d879beab38c84f20cc8986b15d3cd18 (patch) | |
tree | 8cefb6950bc96bc9ce23e92fed6ccba101e4f4f3 /lib/_ak_fs | |
parent | 8e4d9330feea01f449a7cb966ac948ceb3fdea4d (diff) | |
download | arching-kaos-tools-3dbf01ec2d879beab38c84f20cc8986b15d3cd18.tar.gz arching-kaos-tools-3dbf01ec2d879beab38c84f20cc8986b15d3cd18.tar.bz2 arching-kaos-tools-3dbf01ec2d879beab38c84f20cc8986b15d3cd18.zip |
apply fs driver for chunks as well
Diffstat (limited to 'lib/_ak_fs')
-rwxr-xr-x | lib/_ak_fs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -240,7 +240,9 @@ _ak_fs_import(){ counter=0 while IFS="" read -r p || [ -n "$p" ] do - printf "mv %s %s/%s\n" "$(echo $p | awk '{ print $2 }')" "$CHKDIR" "$(echo $p | awk '{ print $1 }')" >> $TEMPORARYDIR/cmd_queue.sh +# printf "mv %s %s/%s\n" "$(echo $p | awk '{ print $2 }')" "$CHKDIR" "$(echo $p | awk '{ print $1 }')" >> $TEMPORARYDIR/cmd_queue.sh + mkdir -p $CHKDIR/$(_ak_fs_return_hash_dir $(echo $p | awk '{ print $1 }')) + cp $(echo $p | awk '{ print $2 }') $CHKDIR/$(_ak_fs_return_hash_path $(echo $p | awk '{ print $1 }')) counter=`expr "$counter" + 1` done < $TEMPORARYDIR/map @@ -342,9 +344,9 @@ _ak_fs_cat(){ else cat $expectedPath >> workspace.$nextLevel fi - elif [ -f $ftr/$p ] + elif [ -f $ftr/$(_ak_fs_return_hash_path $p) ] then - cat $ftr/$p >> output + cat $ftr/$(_ak_fs_return_hash_path $p) >> output fi fi done < workspace.$counter |