Messages in this thread | | | Subject | Re: raw drive access for databases | From | Junio Hamano <> | Date | 03 Nov 1998 18:37:29 -0800 |
| |
>>>>> "HH" == Helge Hafting <helge.hafting@daldata.no> writes:
HH> Accessing a raw partition is easy enough, try HH> opening /dev/hda1 or some such. "cdrecord" use this for HH> storing cd-images. Seems there is no need to touch the kernel. Fix the HH> database program instead, so it HH> takes advantage of existing options.
/dev/hda1 or somesuch are block devices and IIRC there is no character device interface to the disk in Linux. Database engines that use character devices rely on the fact that accesses through character device interface not just only bypass the filesystem layer, but also bypass the block device buffer, ensuring that pages are written to disk in the same order as what the user process (i.e. database engine) issued write(2); this last characteristic is often critical to the proper recovery when database crashes in the middle of operation.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |