[En-Nut-Discussion] PNUT on EIR

Harald Kipp harald.kipp at egnite.de
Sat Jul 3 14:06:47 CEST 2010


On 03.07.2010 13:04, Andre Riesberg wrote:
> I don't try to open a file, I try to mount the volumen.
> In your FTP example program are only this two flags. But I add _O_CREAT 
> and tested agin. It still fails.

Ah, sorry, I overlooked this. For the volume mount _O_CREAT is no
required, of course. It is expected, that the volume already exists.

The PNUT filesystem doesn't require explicit mounting, all will be done
when registering the device. Mounting is required only for multivolume
or changeable devices.

Something like

 fh = _open("PNUT:testfile.txt", _O_CREAT | _O_TRUNC);

should work immediately, without mounting the volume first.

Please try and check the example in nut/app/ftpd.


> I am a little confused about this string:
> 
> "PNUT0:1/PHAT1"
> 
> What does this string mean?

See http://www.ethernut.de/en/documents/phat.html

Regards,

Harald




More information about the En-Nut-Discussion mailing list