aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-21 18:30:57 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-21 18:30:57 +0300
commit3dbf01ec2d879beab38c84f20cc8986b15d3cd18 (patch)
tree8cefb6950bc96bc9ce23e92fed6ccba101e4f4f3 /lib
parent8e4d9330feea01f449a7cb966ac948ceb3fdea4d (diff)
downloadarching-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')
-rwxr-xr-xlib/_ak_fs8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/_ak_fs b/lib/_ak_fs
index bd54720..486c7d1 100755
--- a/lib/_ak_fs
+++ b/lib/_ak_fs
@@ -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