diff --git a/README.md b/README.md index e6f0014..d1b723d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # YATM aka Yet Another Tape Manager +YATM is a first-of-its-kind open-source tape manager for LTO tape via LTFS tape format. + ## Install + +> WIP diff --git a/build_backend.sh b/build_backend.sh index 5eb2ae4..8297cf6 100755 --- a/build_backend.sh +++ b/build_backend.sh @@ -4,5 +4,5 @@ set -ex; CURDIR=$(cd $(dirname $0); pwd); cd ${CURDIR}; -go build -o ./output/httpd ./cmd/tape-httpd; -go build -o ./output/lto-info ./cmd/lto-info; +go build -o ./output/yatm-httpd ./cmd/httpd; +go build -o ./output/yatm-lto-info ./cmd/lto-info; diff --git a/cmd/tape-httpd/config.example.yaml b/cmd/httpd/config.example.yaml similarity index 100% rename from cmd/tape-httpd/config.example.yaml rename to cmd/httpd/config.example.yaml diff --git a/cmd/tape-httpd/main.go b/cmd/httpd/main.go similarity index 100% rename from cmd/tape-httpd/main.go rename to cmd/httpd/main.go diff --git a/cmd/tape-httpd/tape-writer.service b/cmd/httpd/yatm-httpd.service similarity index 79% rename from cmd/tape-httpd/tape-writer.service rename to cmd/httpd/yatm-httpd.service index 76ed1e5..a10e4f6 100644 --- a/cmd/tape-httpd/tape-writer.service +++ b/cmd/httpd/yatm-httpd.service @@ -1,5 +1,5 @@ [Unit] -Description=Tape Writer Service +Description=YATM Service Documentation=https://github.com/samuelncui/yatm/ After=network.target @@ -7,7 +7,7 @@ After=network.target User=root Type=simple WorkingDirectory=/opt/yatm -ExecStart=/opt/yatm/httpd +ExecStart=/opt/yatm/yatm-httpd Restart=always RestartSec=15 StartLimitInterval=0 diff --git a/frontend/index.html b/frontend/index.html index 5ead749..6680d26 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - Tape Writer + YATM - Yet Another Tape Manager diff --git a/scripts/readinfo b/scripts/readinfo index 37060fb..68bcaa4 100755 --- a/scripts/readinfo +++ b/scripts/readinfo @@ -2,6 +2,6 @@ set -ex; # SG_DEVICE=`sg_map | grep ${DEVICE} | awk '{print $1}'` -BARCODE=`./lto-info -f /dev/nst0 | grep 'Barcode' | awk '{print $3}'` +BARCODE=`./yatm-lto-info -f /dev/nst0 | grep 'Barcode' | awk '{print $3}'` echo "{\"barcode\": \"$BARCODE\"}" > $OUT sleep 3