Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-20 Thread Thomas Guyot-Sionnest
From an old inndex file (Linux):
 00 00 00 00 00 00 00 01  00 00 0D D6 00 00 00 00  
0010 00 10 05 E1 00 00 00 FA  90 85 1F 24 00 38 73 74  ...$.8st
0020 6F 72 65 2F 36 2F 31 2D  35 31 33 30 65 61 62 35  ore/6/1-5130eab5
0030 31 31 39 31 30 31 63 63  35 62 36 63 34 30 34 63  119101cc5b6c404c
0040 66 34 37 66 63 31 37 63  66 64 63 61 34 63 32 61  f47fc17cfdca4c2a
0050 31 34 30 33 30 32 00 00  00 00 00 01 00 F5 00 00  140302..
0060 00 FA 90 85 1F 24 00 39  73 74 6F 72 65 2F 64 30  .$.9store/d0
0070 2F 31 2D 34 34 66 30 33  32 63 65 30 32 61 66 34  /1-44f032ce02af4
0080 35 30 31 62 61 38 64 39  32 33 30 35 32 65 65 63  501ba8d923052eec
0090 36 62 33 36 65 65 34 66  34 63 38 31 30 30 33 30  6b36ee4f4c810030
00A0 32 00 00 00 00 00 00 20  B6 00 00 00 FA 90 85 1F  2.. 
00B0 24 00 39 73 74 6F 72 65  2F 32 38 2F 31 2D 63 33  $.9store/28/1-c3
00C0 64 31 34 36 65 37 38 35  39 38 35 61 32 64 38 36  d146e785985a2d86
00D0 64 62 62 37 61 66 37 36  66 36 39 38 66 31 39 33  dbb7af76f698f193
00E0 30 39 36 34 63 62 30 64  30 33 30 32 00 00 00 00  0964cb0d0302
That's wouldn't be hard... But we better add code to detect and convert 
the old index file... You don't want freenet to loose all its data at 
the same date :-)

Well, it's working great now! :))
Thanks!
Thomas Guyot
Toad wrote:
Arguably we should change the index format to not include actual
pathnames.
On Wed, May 19, 2004 at 10:07:48AM +0200, Niklas Bergh wrote:
Or adding code to handle the situation better even...
/N


___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


RE: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-19 Thread Niklas Bergh
Or adding code to handle the situation better even...

/N

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Thomas Guyot-Sionnest
 Sent: den 19 maj 2004 05:57
 To: [EMAIL PROTECTED]
 Subject: Re: [freenet-support] Freenet directory sharing 
 between Linux/windoz
 
 
 TLD wrote:
  Roger Oksanen wrote:
  
 I'm guessing that freenet does a listing to decide if there exists a
 valid datastore. It would not be to efficient to open every 
 file just 
  
  
  Lame as it may sound, try disabling the index file for the 
 datastore.
  
  
 
 Thank for the tip! I'll try in the next days... If it works 
 maybe it's 
 worth adding a FAQ entry... doesn't it?
 
 
 Thank again all for your help, I'll follow-up in a few days.
 
 
 Thomas Guyot
 
 ___
 Support mailing list
 [EMAIL PROTECTED] 
 http://news.gmane.org/gmane.network.freenet.su pport
 
 Unsubscribe at 
 http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
 Or mailto:[EMAIL PROTECTED]
 

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-19 Thread Toad
Arguably we should change the index format to not include actual
pathnames.

On Wed, May 19, 2004 at 10:07:48AM +0200, Niklas Bergh wrote:
 Or adding code to handle the situation better even...
 
 /N
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Thomas Guyot-Sionnest
  Sent: den 19 maj 2004 05:57
  To: [EMAIL PROTECTED]
  Subject: Re: [freenet-support] Freenet directory sharing 
  between Linux/windoz
  
  
  TLD wrote:
   Roger Oksanen wrote:
   
  I'm guessing that freenet does a listing to decide if there exists a
  valid datastore. It would not be to efficient to open every 
  file just 
   
   
   Lame as it may sound, try disabling the index file for the 
  datastore.
   
   
  
  Thank for the tip! I'll try in the next days... If it works 
  maybe it's 
  worth adding a FAQ entry... doesn't it?
  
  
  Thank again all for your help, I'll follow-up in a few days.
  
  
  Thomas Guyot
  
  ___
  Support mailing list
  [EMAIL PROTECTED] 
  http://news.gmane.org/gmane.network.freenet.su pport
  
  Unsubscribe at 
  http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
  Or mailto:[EMAIL PROTECTED]
  
 
 ___
 Support mailing list
 [EMAIL PROTECTED]
 http://news.gmane.org/gmane.network.freenet.support
 Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
 Or mailto:[EMAIL PROTECTED]

-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Thomas Guyot-Sionnest
TLD wrote:
Thomas Guyot-Sionnest wrote:
However, everytime I switch OS, I lose all my datastore.

Did you try sharing the same node, ??nodes_*, ngrt*, rtprops_* files
between the two installations?
The *whole* directory (/mnt/bigfat/freenet = T:\freenet) is shared! 
Only temp drives differs. I've been able to do this since clients for 
Linux and windoz doesn't share the same config file. No other paths are 
specified, so everything else is within freenet's directory.

Thomas Guyot
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Thomas Guyot-Sionnest
Roger Oksanen wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Monday 17 May 2004 07:30, Thomas Guyot-Sionnest wrote:
Hi,
I'm a long time Linux user, but sometimes I need to run windoz to do
somes tasks. I usually does them in batch and it keep my computer
busy for a few days every once in a month or two. I would like to
know if there any way to share the same freenet directory between
these two OS.
In fact, I'm actually doing it... Freenet is on a FAT32 volume, and
since Linux and windoz versions doesn't use the same config file, I
have no problems with path or any system-dependant configuration. It
looks like Freenet developpers had this kind of installation in mind
when they designed it.
However, everytime I switch OS, I lose all my datastore.

Is the long file name support coherent between Windows and Linux? The 
datastore uses lfn:s so breakage in it would break the datastore. You 
should probably take a file listing from Windows before switching to 
linux (or vice versa) and compare the listing with the actual display 
on the other OS.

- -- 
Roger Oksanen [EMAIL PROTECTED] 		+358 50 355 1990
CS Student at Helsinki University			 PGP id 1B125A3E
Homepage http://www.cs.helsinki.fi/u/raoksane/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAqI3078OZUBsSWj4RAgS9AJ0ankFAAP/PVjwuobKYmPeH6wmj4wCfb82E
M883CUYHKarTGzebK4mhhg8=
=x+rK
-END PGP SIGNATURE-
Long file names should bo ok. I never had problems, and sometimes even 
use Wine on windoz-installed apps that often deal with 
very-long-with-all-kind-of-weird-caracters file names.

Also, linux's FAT32 driver doesn't care for case... However, if the 
Freenet client get a directory listing and do case-sensitive operations 
on it, it may fail...  (and that would definetly be a bug of Freenet 
since hex strings doesn't care about case)

I'll follow-up on it if I find anything significant.
Thanks
Thomas Guyot
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Roger Oksanen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 18 May 2004 09:40, Thomas Guyot-Sionnest wrote:

 Also, linux's FAT32 driver doesn't care for case... However, if the
 Freenet client get a directory listing and do case-sensitive
 operations on it, it may fail...  (and that would definetly be a bug
 of Freenet since hex strings doesn't care about case)

Linux file operations are case sensitive so I'm not supprised if the 
freenet code assumes that files should have a certain case.
The datastore seems to only use lower case characters. One could of 
course easily write a litle program/script that changes the filename 
for all datastore files that have uppercase characters in them (if 
that's the problem).

- -- 
Roger Oksanen [EMAIL PROTECTED]   +358 50 355 1990
CS Student at Helsinki UniversityPGP id 1B125A3E
Homepage http://www.cs.helsinki.fi/u/raoksane/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAqcj978OZUBsSWj4RAk3IAJ4hF+INVIOgAs75xeZgxZRlQQcxbgCgvIHM
OVW6pGKLboNLOj+g4TEQj2M=
=y1p2
-END PGP SIGNATURE-
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Thomas Guyot-Sionnest
Roger Oksanen wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tuesday 18 May 2004 09:40, Thomas Guyot-Sionnest wrote:

Also, linux's FAT32 driver doesn't care for case... However, if the
Freenet client get a directory listing and do case-sensitive
operations on it, it may fail...  (and that would definetly be a bug
of Freenet since hex strings doesn't care about case)

Linux file operations are case sensitive so I'm not supprised if the 
freenet code assumes that files should have a certain case.
The datastore seems to only use lower case characters. One could of 
course easily write a litle program/script that changes the filename 
for all datastore files that have uppercase characters in them (if 
that's the problem).

- -- 
Roger Oksanen [EMAIL PROTECTED] 		+358 50 355 1990
CS Student at Helsinki University			 PGP id 1B125A3E
Homepage http://www.cs.helsinki.fi/u/raoksane/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAqcj978OZUBsSWj4RAk3IAJ4hF+INVIOgAs75xeZgxZRlQQcxbgCgvIHM
OVW6pGKLboNLOj+g4TEQj2M=
=y1p2
-END PGP SIGNATURE-
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


As I said, FAT32 filesystems under Linux are 
*case-insensitive*...Whenever you type the name in UPPER or lower case, 
you access the same file.

What I said is there could be a problem if freenet get a directory 
listing and do some internal comparaisons on it... But chances of such 
problem are minimal since store name are in lowercase in both OS.

Thomas Guyot
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Roger Oksanen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 18 May 2004 15:55, Thomas Guyot-Sionnest wrote:

 As I said, FAT32 filesystems under Linux are
 *case-insensitive*...Whenever you type the name in UPPER or lower
 case, you access the same file.

 What I said is there could be a problem if freenet get a directory
 listing and do some internal comparaisons on it... But chances of
 such problem are minimal since store name are in lowercase in both
 OS.

I'm guessing that freenet does a listing to decide if there exists a 
valid datastore. It would not be to efficient to open every file just 
to make sure it exists, doing a listing is much faster. As the 
directory listing probably returns names in upper case, it will fail 
and re-create the store.
But this is of course all speculation as you have not verified if linux 
returns names with uppercase characters.

- -- 
Roger Oksanen [EMAIL PROTECTED]   +358 50 355 1990
CS Student at Helsinki UniversityPGP id 1B125A3E
Homepage http://www.cs.helsinki.fi/u/raoksane/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAqgnG78OZUBsSWj4RAkRYAKCnCzzL1FN/0FJfD/HKsXU/N2dNJgCfbcqB
JKWu4sLQywScDL+fqbTtekk=
=tRAK
-END PGP SIGNATURE-
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread TLD
Roger Oksanen wrote:
 I'm guessing that freenet does a listing to decide if there exists a 
 valid datastore. It would not be to efficient to open every file just 

Lame as it may sound, try disabling the index file for the datastore.


-- 
/~\ The ASCIITLD
\ / Ribbon Campaign They that can give up essential liberty to obtain
 X  Against HTMLa little temporary safety deserve neither liberty
/ \ Email!  nor safety. -- Benjamin Franklin

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Toad
On Tue, May 18, 2004 at 11:27:41AM +0300, Roger Oksanen wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Tuesday 18 May 2004 09:40, Thomas Guyot-Sionnest wrote:
 
  Also, linux's FAT32 driver doesn't care for case... However, if the
  Freenet client get a directory listing and do case-sensitive
  operations on it, it may fail...  (and that would definetly be a bug
  of Freenet since hex strings doesn't care about case)
 
 Linux file operations are case sensitive so I'm not supprised if the 
 freenet code assumes that files should have a certain case.
 The datastore seems to only use lower case characters. One could of 
 course easily write a litle program/script that changes the filename 
 for all datastore files that have uppercase characters in them (if 
 that's the problem).

I doubt it as freenet works on both OSs... owait... I think.. yes. Set
doIndex=false. That will very probably fix the problem. I think we keep
actual filenames in the index file, including separators...
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Toad
On Tue, May 18, 2004 at 04:04:06PM +0300, Roger Oksanen wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Tuesday 18 May 2004 15:55, Thomas Guyot-Sionnest wrote:
 
  As I said, FAT32 filesystems under Linux are
  *case-insensitive*...Whenever you type the name in UPPER or lower
  case, you access the same file.
 
  What I said is there could be a problem if freenet get a directory
  listing and do some internal comparaisons on it... But chances of
  such problem are minimal since store name are in lowercase in both
  OS.
 
 I'm guessing that freenet does a listing to decide if there exists a 
 valid datastore. It would not be to efficient to open every file just 
 to make sure it exists, doing a listing is much faster. As the 
 directory listing probably returns names in upper case, it will fail 
 and re-create the store.

We don't do a listing unless there is no index file.

 But this is of course all speculation as you have not verified if linux 
 returns names with uppercase characters.

I don't think it does... but I can't see that being the problem.
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-18 Thread Thomas Guyot-Sionnest
TLD wrote:
Roger Oksanen wrote:
I'm guessing that freenet does a listing to decide if there exists a 
valid datastore. It would not be to efficient to open every file just 

Lame as it may sound, try disabling the index file for the datastore.

Thank for the tip! I'll try in the next days... If it works maybe it's 
worth adding a FAQ entry... doesn't it?

Thank again all for your help, I'll follow-up in a few days.
Thomas Guyot
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-17 Thread TLD
Thomas Guyot-Sionnest wrote:
 However, everytime I switch OS, I lose all my datastore.

Did you try sharing the same node, ??nodes_*, ngrt*, rtprops_* files
between the two installations?

-- 
/~\ The ASCIITLD
\ / Ribbon Campaign They that can give up essential liberty to obtain
 X  Against HTMLa little temporary safety deserve neither liberty
/ \ Email!  nor safety. -- Benjamin Franklin

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Freenet directory sharing between Linux/windoz

2004-05-17 Thread Roger Oksanen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 17 May 2004 07:30, Thomas Guyot-Sionnest wrote:
 Hi,

 I'm a long time Linux user, but sometimes I need to run windoz to do
 somes tasks. I usually does them in batch and it keep my computer
 busy for a few days every once in a month or two. I would like to
 know if there any way to share the same freenet directory between
 these two OS.

 In fact, I'm actually doing it... Freenet is on a FAT32 volume, and
 since Linux and windoz versions doesn't use the same config file, I
 have no problems with path or any system-dependant configuration. It
 looks like Freenet developpers had this kind of installation in mind
 when they designed it.

 However, everytime I switch OS, I lose all my datastore.

Is the long file name support coherent between Windows and Linux? The 
datastore uses lfn:s so breakage in it would break the datastore. You 
should probably take a file listing from Windows before switching to 
linux (or vice versa) and compare the listing with the actual display 
on the other OS.

- -- 
Roger Oksanen [EMAIL PROTECTED]   +358 50 355 1990
CS Student at Helsinki UniversityPGP id 1B125A3E
Homepage http://www.cs.helsinki.fi/u/raoksane/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAqI3078OZUBsSWj4RAgS9AJ0ankFAAP/PVjwuobKYmPeH6wmj4wCfb82E
M883CUYHKarTGzebK4mhhg8=
=x+rK
-END PGP SIGNATURE-
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]