Commit 95dc9dab authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Some more diagnostics for EIO in Rename/Symlink.

parent 18fb91d8
...@@ -233,6 +233,7 @@ func doSymlink(state *MountState, req *request) { ...@@ -233,6 +233,7 @@ func doSymlink(state *MountState, req *request) {
req.status = s req.status = s
req.outData = unsafe.Pointer(entryOut) req.outData = unsafe.Pointer(entryOut)
} else { } else {
log.Println("Symlink: missing arguments", filenames)
req.status = EIO req.status = EIO
} }
} }
...@@ -242,6 +243,7 @@ func doRename(state *MountState, req *request) { ...@@ -242,6 +243,7 @@ func doRename(state *MountState, req *request) {
if len(filenames) >= 2 { if len(filenames) >= 2 {
req.status = state.fileSystem.Rename(req.inHeader, (*RenameIn)(req.inData), filenames[0], filenames[1]) req.status = state.fileSystem.Rename(req.inHeader, (*RenameIn)(req.inData), filenames[0], filenames[1])
} else { } else {
log.Println("Rename: missing arguments", filenames)
req.status = EIO req.status = EIO
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment