[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-tasks] [task #4342] Access to disk data (free space, max file
From: |
spiralvoice |
Subject: |
[Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length) |
Date: |
Wed, 13 Jul 2005 20:22:37 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.7) Gecko/20050418 Firefox/1.0.3 (MOOX M2) |
Follow-up Comment #13, task #4342 (project mldonkey):
Besides the link error for iconv, which is a different story
(please try "--disable-iconv"), could you please post the output
of the man page of "statfs" or "statvfs"?
Maybe it looks like this:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/statfs.2.html
So you could extend the "#if defined" statements so Darwin is treated like
OpenBSD. This should be added:
#if defined(__APPLE__)
Maximal file name length is a bit more complicated:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/pathconf.2.html
This is from the patch:
+# if defined(__OpenBSD__) || defined(__NetBSD__)
+# include <sys/syslimits.h>
+ v = copy_int64 (NAME_MAX); caml_modify (&Field (bufv, 8), v);
+# else
+ v = copy_int64 (buf->f_namemax); caml_modify (&Field (bufv, 8), v);
+# endif
Please change this to:
+# if defined(__OpenBSD__) || defined(__NetBSD__)
+# include <sys/syslimits.h>
+ v = copy_int64 (NAME_MAX); caml_modify (&Field (bufv, 8), v);
+# else
+# if defined(__APPLE__)
+# include <unistd.h>
+# v = copy_int64 (_PC_NAME_MAX); caml_modify (&Field (bufv, 8), v);
+# else
+ v = copy_int64 (buf->f_namemax); caml_modify (&Field (bufv, 8), v);
+# endif
+# endif
There is a MLDonkey command "disk <dir>" for tests and the display
of the "shares" command in HTML is extended to show some data.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?func=detailitem&item_id=4342>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), (continued)
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/03
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/07
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/08
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/11
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/11
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/11
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), savannah-bounces, 2005/07/11
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/12
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/12
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), savannah-bounces, 2005/07/13
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length),
spiralvoice <=
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/13
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), savannah-bounces, 2005/07/13
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), savannah-bounces, 2005/07/13
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), savannah-bounces, 2005/07/13
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/13
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), Beedauchon, 2005/07/16
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/17
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/20
- [Mldonkey-tasks] [task #4342] Access to disk data (free space, max file name length), spiralvoice, 2005/07/20