-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto: sync upstream / update dependencies
- Loading branch information
Showing
17 changed files
with
84 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fsdd - filesystem deduplication tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
HARDLINK_LIMIT=32000 && TARGET=/tmp/inode-test && LOOP=true | ||
rm -rf $TARGET && mkdir $TARGET && cd $TARGET && touch file.node.zero | ||
echo "node done:" | ||
while [ $LOOP ]; do | ||
LOOPS=$((LOOPS + 1)) | ||
( | ||
touch file.$LOOPS && ln -f file.node.zero file.$LOOPS | ||
CONTENT=$(cat file.$LOOPS) | ||
if [ "$CONTENT" != "" ]; then | ||
echo "\n fail node $LOOPS: $CONTENT" | ||
fi | ||
) & | ||
if [ $LOOPS -gt $HARDLINK_LIMIT ]; then | ||
echo "\n test passed on [$TARGET]" | ||
break | ||
fi | ||
echo -n " $LOOPS" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
APP=fsdd | ||
TESTCASE=/tmp/test.$APP.$(date +%s) | ||
APPOPT="$TESTCASE --verbose --hard-link --clean-symlinks" | ||
GO=$GOROOT/bin/go | ||
if [ $BSD_DEV ]; then . /etc/.bsdconf; fi | ||
prep_payload() { | ||
if [ -e "$TESTCASE" ]; then rm -rf $TESTCASE; fi | ||
mkdir -p $TESTCASE && cd $TESTCASE && ( | ||
PAYLOAD="IM 23 BYTES OF CONTENT" | ||
echo $PAYLOAD > original | ||
echo $PAYLOAD > same-content-individual-file | ||
ln -f original hardlink-ok | ||
ln -fs original symlink-ok | ||
ln -fs not-available symlink-fail | ||
) | ||
} | ||
echo | ||
if [ -x $GO ]; then | ||
echo | ||
echo "#### go run from source" | ||
prep_payload | ||
(cd $BSD_DEV/$APP/APP/$APP && $GO run main.go $APPOPT) | ||
echo "# verify" | ||
(cd $BSD_DEV/$APP/APP/$APP && $GO run main.go $TESTCASE --verbose) | ||
fi | ||
if [ -x /usr/bin/$APP ]; then | ||
echo | ||
echo "#### compared to: /usr/bin/$APP output" | ||
prep_payload | ||
/usr/bin/$APP $APPOPT | ||
echo "# verify" | ||
/usr/bin/$APP $TESTCASE --verbose | ||
fi | ||
echo | ||
if [ -e "$TESTCASE" ]; then rm -rf $TESTCASE; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.build.sh.template.golang.hqx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.build.sh.template.golang.sh |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
n/a |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./fsdd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Language Files Lines Blanks Comments Code Complexity Complexity/Lines | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Go 12 946 93 78 775 164 192.46 | ||
YAML 5 133 0 0 133 0 0.00 | ||
Markdown 4 163 46 0 117 0 0.00 | ||
gitignore 2 27 0 0 27 0 0.00 | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Total 23 1269 139 78 1052 164 192.46 | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
Total Physical Source Lines of Code (SLOC) = 1,052 | ||
Development Effort Estimate, Person-Years (Person-Months) = 0.21 (2.53) | ||
(Basic COCOMO model, Person-Months = 2.40*(KSLOC**1.05)*1.00) | ||
Schedule Estimate, Years (Months) = 0.30 (3.56) | ||
(Basic COCOMO model, Months = 2.50*(person-months**0.38)) | ||
Estimated Average Number of Developers (Effort/Schedule) = 0.71 | ||
Total Estimated Cost to Develop = $28,491 | ||
(average salary = $56,286/year, overhead = 2.40) | ||
Processed 31169 bytes, 0.031 megabytes (SI) | ||
───────────────────────────────────────────────────────────────────────────────────────────────────────────── | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0-pre-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0-pre-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.Makefile.template.golang |
This file was deleted.
Oops, something went wrong.