1836473 Members
2241 Online
110101 Solutions
New Discussion

device file

 
Indrajit Bhagat
Regular Advisor

device file

what is the difference between the raw device file and block device file.
5 REPLIES 5
Luk Vandenbussche
Honored Contributor
Pete Randall
Outstanding Contributor

Re: device file

In the simplest possible terms, the block device file provides buffered I/O while the raw device writes directly to the device in question. Typically, DB applications use the raw device and provide their own buffering mechanisms.


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: device file

The raw (character) device node is completely unbuffered whereas the "cooked" (block) device nodes interposes the buffer cache between the i/o requests and the disks.
If it ain't broke, I can fix that.
whiteknight
Honored Contributor

Re: device file

http://docs.hp.com/en/B2355-90691/mknod.1M.html?jumpid=reg_R1002_USEN

Character and Block Special Files
Character device special files are used for devices that can transfer single bytes at a time, such as nine-track magnetic tape drives, printers, plotters, disk drives operating in "raw" mode, and terminals. To create a character special file, use the c argument.

Block device special files are used for devices that usually transfer a block of data at a time, such as disk drives. To create a block device special file, use the b argument.

The remaining arguments specify the device that will be accessible through the new special file:

major The major number specifies the major device type (for example, the device driver number).

minor The minor number specifies the device location, which is typically, but not always, the unit, drive, and/or line number.

WK
please assign points
Problem never ends, you must know how to fix it
Rahul Pednekar
Frequent Advisor

Re: device file