This is current/amd64 on a PC;
no dmesg as it's not HW related.
I have a filesystem on a remote machine, mounted ro.
When trying to copy onto that filesystem:
$ scp -r dir/ box:/fs/path/
Enter passphrase for key '/Users/hans/.ssh/id_ed25519':
scp: stat remote: No such file or directory
scp: failed to upload directory dir/ to /fs/path/
After a bit of headscratching, I copied to box:/tmp instead
and then moved /tmp/dir to /fs/path on the remote machine,
realizing that it's mounted ro.
That makes me think that the
scp: stat remote: No such file or directory
message is a bit misleading: /fs/path/dir cannot be created, as in
box$ mv: rename /tmp/dir to /fs/path/dir: Read-only file system
not that an intermediate path does not exist.
If I'm reading usr.bin/ssh/ right, it's the get_decode_stat()
calling fx2txt(), but the code is a bit over my head ...
Note that this happens when scp'ing a directory;
when scping a file onto the ro fs, the message is
scp: dest open "/fs/path/foo": Failure
Jan