- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Raw and character device file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2004 06:28 AM
05-07-2004 06:28 AM
Raw and character device file
What is the difference between block and character device files?
/dev/dsk/cNtNdN
/dev/rdsk/cNtNdN
Can I say when data is being written to raw device,it bypasses device driver?
I know when data is written to block device file it goes thru buffer.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2004 06:31 AM
05-07-2004 06:31 AM
Re: Raw and character device file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2004 06:33 AM
05-07-2004 06:33 AM
Re: Raw and character device file
I like to think of the two as a blank paper (RAW) compared to a paper with rows and columns (block) in it.
So on a block device you use specific blocks to write whereas on a raw you can write anywhere.
This is the most easy language that i can think of.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2004 06:42 AM
05-07-2004 06:42 AM
Re: Raw and character device file
the OS uses for mounting and swap.
"Block devices" are buffered and do their own blocking; (no direct relation
between read/write to the device and read/write to disk)
/dev/rdsk contains the "raw" (character) devices for disks; these are used
by administrative tools like "newfs" and "fsck".
Operations on "raw devices" result in direct I/O operations on disk
and must take the underlyign block sizes of the device into consideration.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2004 07:27 AM
05-07-2004 07:27 AM
Re: Raw and character device file
As has been stated, the major difference between these is whether or not the UNIX buffer cache is used. Character device always bypass the buffer; block devices almost always do. For example, it is possible to bypass the buffer cache by choosing online jfs mount options.
If you want to get essentially all the benefits of raw i/o while using conventional files, that is possible with the convosync=direct,mincache=direct vxfs mount options.