feat: Add basic write support

This commit is contained in:
Felicitas Pojtinger
2021-11-14 19:57:59 +01:00
parent 9761244d95
commit 3cfb784b4e
5 changed files with 131 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ type Operation struct {
func main() {
file := flag.String("file", "/dev/nst0", "File of tape drive to open")
record := flag.Int("record", 0, "Record to seek too")
flag.Parse()
@@ -38,8 +37,7 @@ func main() {
MTIOCTOP,
uintptr(unsafe.Pointer(
&Operation{
Op: MTEOM,
Count: int32(*record),
Op: MTEOM,
},
)),
)