[En-Nut-Discussion] PNUT on EIR
Andre Riesberg
andre at riesberg-net.de
Sat Jul 3 16:05:29 CEST 2010
Harald Kipp schrieb:
> 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
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
>
Hi Harald,
now it works perfect! Thank you!
Greeting
André
More information about the En-Nut-Discussion
mailing list