[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Others  |  Miscellaneous  |  Topic: Why Character Device
Welcome to LinuxCommunity

You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Why Character Device  (Read 979 times)
0 Members and 1 Guest are viewing this topic.
rajesh.bahl
Linux Learner
***
Offline Offline

Posts: 77


View Profile
« on: May 13, 2007, 01:18:55 PM »


Dear All,

Hi !

I have one confusion regarding the classification of tape drives in Linux/Unix.
Although we always work with "Block size" while doing backup or restoring data back, still tape device is considered as "character device".  As per concept/definition a device that reads/writes data in units of blocks is a block device.Hence shouldn't tape be a block device rather than character device?

KIndly help in clearing the concept !




Regards
rajesh.bahl
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2377


View Profile
« Reply #1 on: May 14, 2007, 12:44:32 PM »

Tape is character device because you can only do sequential access on tape on the other hand block devices are those which can do random access.

But now this again give rise to a question that if Tape Drive is a Character Device then why we mostly use block device to operate on tapes ?
Actually Tape is always a character device but to  make things easy, data is passed through system cache and thus allow to use it as block device. !
Logged
rajesh.bahl
Linux Learner
***
Offline Offline

Posts: 77


View Profile
« Reply #2 on: May 14, 2007, 02:40:02 PM »


Sequential access is okay -understandable but even if system cache is used to access this device that should not be the basis of its classification as character device.
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2377


View Profile
« Reply #3 on: May 14, 2007, 03:31:02 PM »

I think for the ease of use.. such storage devices are treated as block devices & hence Tape too!
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Linux Device Drivers Linux Development & Programming nbhalala 0 1321 Last post June 28, 2004, 06:59:02 AM
by nbhalala
kernel recompilation : VFS: Cannot open root device Linux Kernel anil_garg5 3 2834 Last post May 03, 2005, 11:15:11 AM
by dragoncity99
No space left on device Linux Servers Support Wscotttem 2 1488 Last post June 14, 2005, 08:22:20 AM
by Wscotttem
System hangs on pluggin any USB DEVICE Other Devices hex 3 1648 Last post August 29, 2005, 07:55:46 AM
by hex
slattach command not get device under /dev/sl0 Os Talk deven_01 0 1101 Last post January 06, 2006, 07:47:03 AM
by deven_01
Search LS
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 08, 2010, 07:09:35 AM

Login with username, password and session length
Navigation
Recent Discussions
[September 06, 2010, 03:51:09 PM]

[September 06, 2010, 07:59:34 AM]

[September 03, 2010, 11:45:53 AM]

[September 02, 2010, 06:21:15 AM]

[September 02, 2010, 03:14:25 AM]

[August 31, 2010, 08:30:56 AM]

[August 31, 2010, 01:03:31 AM]

[August 31, 2010, 12:53:38 AM]

[August 31, 2010, 12:43:01 AM]

[August 22, 2010, 05:55:23 AM]
Members
Total Members: 7755
Latest: judah_clan
Stats
Total Posts: 9561
Total Topics: 2751
Online Today: 7
Online Ever: 128
(April 10, 2010, 10:24:17 PM)
Users Online
Users: 0
Guests: 10
Total: 10
Privacy Policy| Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Theme & TinyPortal v0.9.8 © Bloc