(Fwd) Re: DOSFS bug fixes, IDE drivers and sample released
Angelo Fraietta
angelo_f at bigpond.com
Tue Apr 15 07:16:38 UTC 2003
I have implemented this into my app, hwoever, when I try to examine the
file, I get zero bytes.
I did the following
fd = open(nvram_file,O_WRONLY | O_CREAT | O_TRUNC,S_IREAD|S_IWRITE);
if (fd <0)
{
printf ("Unable to open %s\r\n", nvram_file);
}
else
{
unsigned i;
for (i = 0; i < 255; i++)
{
char c = (char) i;
int bytes = write(fd, &c, 1);
printf ("Wrote %u bytes \r\n", bytes);
}
close(fd);
printf ("Close file\r\n");
fileio_part_table_initialize ();
}
I got the correct output to my display, however, the file written is
zero bytes. Any idea as to what I am doing wrong?
Thomas Doerfler wrote:
>Hello,
>
>>I got the program working and it worked fine with my flash disk.
>>
>>I did, however, have to type my filenames in UPPER CASE. I don't know
>>whether this is something peculiar with the DIMMPC flash IDE or not.
>>
>
>I am glad things are working for you now. The upper case
>matter is a bit strange. Per definition, DOS filenames are
>case insensitive. They are stored in upercase in the dorectory
>but I am sure I open my files with a lowercase filename given
>and the functions definitively find the right file and open
>and read/write it.
>
>Could this be a problem on the MAC side?
>
>I don't know, if the patches will make it into the next
>release, we had a discussion with Joel about it. I think they
>will not break anything that was working without the
>patches...
>
>wkr,
> Thomas.
>
>
>>I also modified so I wrote a binary stream from 0x00 to 0xFF and tested
>>that it was uncorrupted. That worked fine too.
>>
>>So effectively, this is working fine for me.
>>
>>Do you know whether this will be included in the next snapshot?
>>
>>
>>
>>Thomas Doerfler wrote:
>>
>>>Hello,
>>>
>>>no it has nothing to do with ada, it is a web-
>>>based bug tracking system. Just try it out,
>>>login/password is guest/guest...
>>>
>>>wkr,
>>> Thomas.
>>>
>>>
>>>>Is the gnats system only ada? I am using C/C++, so will I be able to use
>>>>these?
>>>>
>>>>Thomas Doerfler wrote:
>>>>
>>>>>Hello Angelo,
>>>>>
>>>>>the "sample" program is located in the patch filed in the gnat
>>>>>system as PR369. So if you go to
>>>>>
>>>>>http://www.oarcorp.com/cgi-bin/gnatsweb.pl
>>>>>
>>>>>and inspect PR369 and download/apply the patch and then look
>>>>>into c/src/tests/samples/fileio, you will see the sample
>>>>>application.
>>>>>
>>>>>BTW, you will also need PR368 and PR367 to get everything
>>>>>running (these PRs contain modifications for the DOSFS code
>>>>>and added drivers for PC386 and MBX8xx).
>>>>>
>>>>>wkr,
>>>>> Thomas.
>>>>>
>>>>--
>>>>Angelo Fraietta
>>>>
>>>>PO Box 859
>>>>Hamilton NSW 2303
>>>>
>>>>Home Page
>>>>
>>>>
>>>>http://www.users.bigpond.com/angelo_f/
>>>>
>>>>There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
>>>>There are those who seek knowledge to be known by others - that is VANITY
>>>>There are those who seek knowledge in order to serve - that is LOVE
>>>> Bernard of Clairvaux (1090 - 1153)
>>>>
>>>>
>>>>
>>>--------------------------------------------
>>>IMD Ingenieurbuero fuer Microcomputertechnik
>>>Thomas Doerfler Herbststrasse 8
>>>D-82178 Puchheim Germany
>>>email: Thomas.Doerfler at imd-systems.de
>>>PGP public key available at: http://www.imd-
>>>systems.de/pgp_keys.htm
>>>
>>>
>>--
>>Angelo Fraietta
>>
>>PO Box 859
>>Hamilton NSW 2303
>>
>>Home Page
>>
>>
>>http://www.users.bigpond.com/angelo_f/
>>
>>There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
>>There are those who seek knowledge to be known by others - that is VANITY
>>There are those who seek knowledge in order to serve - that is LOVE
>> Bernard of Clairvaux (1090 - 1153)
>>
>>
>>
>
>--------------------------------------------
>IMD Ingenieurbuero fuer Microcomputertechnik
>Thomas Doerfler Herbststrasse 8
>D-82178 Puchheim Germany
>email: Thomas.Doerfler at imd-systems.de
>PGP public key available at: http://www.imd-
>systems.de/pgp_keys.htm
>
>
--
Angelo Fraietta
PO Box 859
Hamilton NSW 2303
Home Page
http://www.users.bigpond.com/angelo_f/
There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20030415/b05dd14b/attachment-0001.html>
More information about the users
mailing list