Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

kernel 2.6.4 - block device

I would like to write a block device that I could mount as a file system in /mnt/something and that I could go into that catalogue and type ls for instance or cat /mnt/something/file.txt (<- it will read from a string from the device). I`ve already written a character device but block device seems to be much more difficult
Any help?
0
linux-block-device
Asked:
linux-block-device
  • 2
2 Solutions
 
manish_regmiCommented:
hi,
 I think the link below will help you.
http://www.xml.com/ldd/chapter/book/ch12.html

regards manish
0
 
manish_regmiCommented:
hi,
 here are some samples.
http://examples.oreilly.com/linuxdrive2/

regards manish
0
 
dimitryCommented:
You can also go and register on timesys site and get the information about driver migration to 2.6 from 2.4.
http://www.timesys.com/auth/index.cfm?bdy=26program.cfm
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now