Tobias
2006-06-07 13:35:08 UTC
Hi,
i want to use O_DIRECT on my custom ep9315 board. Actually i am usign kernel
2.6.15 with a special linux patch of cirrus. But when i try to use this on my
hdd (i open it with - open("/dev/hda",O_RDWR | O_DIRECT); -); the buffer is
not written/read correctly to the device although they are aligned to 512
bytes border. The read and write command does not fail but i can see that it
is not working correctly when i look with a diskeditor on my harddisk.
I have to use O_DIRECT to increase performance during disk writes or is there
any other possebility to avoid copying data from user space to kernel space
and then transfer it to the device ? I have tested rawctl also with the same
result.
Regards
Tobias
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
i want to use O_DIRECT on my custom ep9315 board. Actually i am usign kernel
2.6.15 with a special linux patch of cirrus. But when i try to use this on my
hdd (i open it with - open("/dev/hda",O_RDWR | O_DIRECT); -); the buffer is
not written/read correctly to the device although they are aligned to 512
bytes border. The read and write command does not fail but i can see that it
is not working correctly when i look with a diskeditor on my harddisk.
I have to use O_DIRECT to increase performance during disk writes or is there
any other possebility to avoid copying data from user space to kernel space
and then transfer it to the device ? I have tested rawctl also with the same
result.
Regards
Tobias
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php