lkml.org 
[lkml]   [1998]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: raw drive access for databases
From
Date
>>>>> "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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.082 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site