ftp/rcp can't copy devices

Rob Hulsebos (mcvax!hp4nl!philmds!hulsebos@uunet.uu.net)
29 Aug 88 08:35:20 GMT

When I use the 'ftp' or 'rcp' command, and want to copy a disk-partition
(accessed via /dev/rdsk/*) to the other end, both utilities
complain: "not a plain file".

Of course, the manual doesn't mention that only plain files can be
transferred. Does anybody know why ftp and rcp behave this way?

Suprisingly, copying _to_ a device is allowed. An ftp-command like
"put /unix /dev/null" works fine, and is a nice trick to test the overhead
incurred by the filesystem on the receiving end.

R.A. Hulsebos ...!mcvax!philmds!hulsebos
Philips I&E Automation Modules phone: +31-40-785723
Building TQ-III-1, room 11
Eindhoven, The Netherlands # cc -O disclaimer.c

This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:43:14 GMT