Skip to content
esmil edited this page Sep 13, 2010 · 7 revisions

Useful links

The BitTorrent Specification

Error reports

ftw() failed, this shouldn’t happen

Many people reported this. Unfortunately the error message isn’t very helpful, but I’ll soon release a new version with better error reporting.
Hopefully it’ll give a clue if this is something that can be fixed or custom tree walking needs to be implemented.

Large files

One user reported this:

$ dd if=/dev/zero of=test2 bs=1000k count=4700
4700+0 records in
4700+0 records out
4812800000 bytes (4.8 GB) copied, 92.0489 seconds, 52.3 MB/s

$ mktorrent —announce=a test2
mktorrent 0.4 © 2007 Emil Renner Berthing

error: cannot stat test2.

Compiling on OS X

One OS X user has reported this behavior:

cc -O2 -Wall -DVERSION=“\”0.4\"" -c init.c
cc -O2 -Wall -DVERSION=“\”0.4\"" -c hash.c
cc -O2 -Wall -DVERSION=“\”0.4\"" -c output.c
In file included from output.c:25:
mktorrent.h:22: error: parse error before `off_t’
mktorrent.h:22: warning: no semicolon at end of struct or union
mktorrent.h:24: error: parse error before `}’ token
output.c: In function `write_file_list’:
output.c:38: error: dereferencing pointer to incomplete type
output.c:46: error: dereferencing pointer to incomplete type
output.c:50: error: dereferencing pointer to incomplete type
output.c: In function `write_metainfo’:
output.c:108: error: dereferencing pointer to incomplete type
make: * [output.o] Error 1

It seems off_t isn’t defined on OS X.

Feature requests

An exclude flag to keep certain files out of torrents

Perhaps something like

mktorrent -a http://lala.com/announce.php -x '*~' mytorrent

Clone this wiki locally