hi,
thanks for your reply.
is there any specific reason for using sync_dirty_buffer.
Can you tell me how to calculate the blocknr and rsector
----- Original Message -----
From: "nitin ahuja"
To: ganesh_kmr@xxxxxxxx
Subject: Re: need help on block device driver.
Date: Tue, 19 Apr 2005 04:17:45 -0600
>
> Hi,
>
> >
> > I have used generic_make_request function. before
> > that i have filled up the struture buffer_head.
> > Iniatially i am trying to write just one block of
> > size 512 bytest of data in a raw hard disk. I need
> > to know few things
> >
>
> Use "sync_dirty_buffer()" to write buffer heads instead of
> "make_generic_request()"
>
> .
> .
> .
> mark_buffer_dirty(bh);
> sync_dirty_buffer(bh);
> .
> .
> .
> >
> > 1) what value to be given for the member b_blocknr,
> > b_rsector, b_dev and b_rdev.
> >
> > 2) other thing, is it possible to write on a hard
> > disk without a file system.
> >
>
> Yes, you can write to raw partition (without any file system) by
> just setting it's blocksize correctly
> use "set_blocksize()" for that.
>
> niTin
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://www.mail.com/?sr=signup