NAME
tftpfs – trivial file transfer protocol (TFTP) file system |
SYNOPSIS
ip/tftpfs [ –D ] [ –s srvname ] [ –m mtpt ] [ –x net ] [ ipaddr ] |
DESCRIPTION
Tftpfs serves files from a TFTP server as a filesystem. TFTP is
mostly used by bootloaders to download kernel images for network
bootstrap (see dhcpd(8)). As the protocol has no way of distinguishing
files from directories, the final path segment needs to contain
a dot (.) character to be recognized as a file. To access
files that have no dot in the filename, a trailing dot has to
be added and will be stripped before it is passed to the server.
The –D option enables 9P debugging messages. The –s option causes tftpfs to post the 9P service as /srv/srvname and disables the default mount. The default mountpoint /n/tftp can be changed with the –B mtpt option. The –x option specifies an alternate network directory (e.g., /net.alt).
The ip address of the server can be passed in as the last program
argument, ipaddr,
|
EXAMPLE
Boot a kernel from a tftp server (note the final dot in the kernel
path).
|
SOURCE
/sys/src/cmd/ip/tftpfs.c |
SEE ALSO
dhcpd(8). |