X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Fbundles.texi;h=7bbc85a274d7480156383c87f18c5546475d9f07;hb=be389bd7f3d36d371007c86341059b042233d455;hp=e5235bce45cf656aebf63ff16f96d9d6b5c56b2c;hpb=6f20d5bcf3a087aa02a4629654a73fab02ed8980;p=nncp.git diff --git a/doc/bundles.texi b/doc/bundles.texi index e5235bc..7bbc85a 100644 --- a/doc/bundles.texi +++ b/doc/bundles.texi @@ -17,23 +17,23 @@ sequentially streamed for recording and digested back. @item They do not require intermediate storage before recording on either CD-ROM or tape drive. -@verbatim -% nncp-bundle -tx SOMENODE | cdrecord -tao - # record directly to CD -% nncp-bundle -tx SOMENODE | dd of=/dev/sa0 bs=10240 # record directly to tape +@example +$ nncp-bundle -tx SOMENODE | cdrecord -tao - # record directly to CD +$ nncp-bundle -tx SOMENODE | dd of=/dev/sa0 bs=10240 # record directly to tape -% dd if=/dev/cd0 bs=2048 | nncp-bundle -rx # read directly from CD -% dd if=/dev/sa0 bs=10240 | nncp-bundle -rx # read directly from tape -@end verbatim +$ dd if=/dev/cd0 bs=2048 | nncp-bundle -rx # read directly from CD +$ dd if=/dev/sa0 bs=10240 | nncp-bundle -rx # read directly from tape +@end example @item They do not require filesystem existence to deal with, simplifying administration when operating in heterogeneous systems with varying filesystems. No @command{mount}/@command{umount}, @command{zpool import}/@command{zpool export} and struggling with file permissions. -@verbatim -% nncp-bundle -tx SOMENODE | dd of=/dev/da0 bs=1M # record directly to +@example +$ nncp-bundle -tx SOMENODE | dd of=/dev/da0 bs=1M # record directly to # hard/flash drive -% dd if=/dev/da0 bs=1M | nncp-bundle -rx # read directly from drive -@end verbatim +$ dd if=/dev/da0 bs=1M | nncp-bundle -rx # read directly from drive +@end example @item This is the fastest way to record outbound packets for offline transmission -- sequential write is always faster, when no @@ -48,8 +48,8 @@ can contain mix of various recipients. @end itemize -Technically bundle is valid POSIX.1-2001 (pax) -@url{http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html, tar archive}, +Technically bundle is valid POSIX.1-2001 +@url{https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13_01, pax archive} with directory/files hierarchy identical to that is used in @ref{nncp-xfer}: @file{NNCP/RECIPIENT/SENDER/PACKET}. So bundle can also be created by manual tar-ing of @command{nncp-xfer} resulting directory.