Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Using __getblk, Directly Reading from Disk
rabh
post Apr 7 2006, 10:22 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 7-April 06
Member No.: 6,239



Hi,
I am trying to write a module to directly read from the disk. I have got the sector numbers where the file present using file system functions. This file starts from sector 96 on /dev/hda4 for example. The call to __getblk as
bh = __getblk(bdev,96,512) makes the system hang. Do I need to add the partition offset also to the sector number? When I added partition start sector,. I am getting junk data using ll_rw_block call.

Please advice.

thanks,
Ravi
Go to the top of the page
 
+Quote Post
michaelk
post Apr 7 2006, 12:58 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



Each partition does have a boot sector or are you talking about an additional offset?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 04:03 AM