Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Others => Miscellaneous => Topic started by: rajesh.bahl on May 13, 2007, 05: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
-
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. !
-
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.
-
I think for the ease of use.. such storage devices are treated as block devices & hence Tape too!