Re: sector size in block device drivers

2009-02-25 Thread nidhi mittal
hi Greg thanks for the concern . but actually my question was very simple .. it wsnt so complex. it was just that i was just writing for practice sake a sample block device driver example in LDD there they ahve given all this description abt sector size in ch 16 which confued me totally . so i t

Re: sector size in block device drivers

2009-02-25 Thread Greg Freemyer
On Wed, Feb 18, 2009 at 10:23 AM, Greg Freemyer wrote: > On Wed, Feb 18, 2009 at 1:06 AM, nidhi mittal wrote: >> i m sorry but can someone give a direct clarification >> i m unable to get my answer ... >> its going in different directions ...but not able to get me through my doubt >> ... >>

Re: sector size in block device drivers

2009-02-18 Thread Greg Freemyer
On Wed, Feb 18, 2009 at 1:06 AM, nidhi mittal wrote: > i m sorry but can someone give a direct clarification > i m unable to get my answer ... > its going in different directions ...but not able to get me through my doubt > ... > i m sorry may be my understanding is lacking somewhere ... > N

Re: sector size in block device drivers

2009-02-17 Thread nidhi mittal
i m sorry but can someone give a direct clarification i m unable to get my answer ... its going in different directions ...but not able to get me through my doubt ... i m sorry may be my understanding is lacking somewhere ... On Mon, Feb 2, 2009 at 9:01 PM, Greg Freemyer wrote: > On Mon, Feb

Re: sector size in block device drivers

2009-02-02 Thread Greg Freemyer
On Mon, Feb 2, 2009 at 3:42 AM, nidhi mittal wrote: > sorry but my question it seems wsnt clear ... > as my ques was > > suppose i have this function > > blk_queue_hardsect_size( > request_queue_t *queue , unsigned short max ); > or some other function takes sector as parameter > there in any of t

Re: sector size in block device drivers

2009-02-02 Thread nidhi mittal
sorry but my question it seems wsnt clear ... as my ques was suppose i have this function blk_queue_hardsect_size(request_queue_t *queue , unsigned short max ); or some other function takes sector as parameter there in any of these functions how do i decide that whether i should send number sect

Re: sector size in block device drivers

2009-02-01 Thread Greg Freemyer
On Sun, Feb 1, 2009 at 4:50 AM, nidhi mittal wrote: > hello > i was writing my initial block device driver following LDD > but was totally confused on KERNEL SECTOR SIZE and hardware sector size > issue they discussed in that . > > they write sth like > if sector number passed between kernel and b

Re: sector size in block device drivers

2009-02-01 Thread Rohit Sharma
Hi Nidhi, > i wanted to know where actually is block layer and where is driver >where are they separated As far as I know, the differentiation between file system block size and device block size lies in the generic block layer. Generic block layer knows all about, sectors, blocks, segments and p

Re: sector size in block device drivers

2009-02-01 Thread Sandeep K Sinha
Also, see this thread and the reply from Greg. http://mail.nl.linux.org/kernelnewbies/2009-01/msg00241.html Ccing Greg as well. HTH, On Sun, Feb 1, 2009 at 3:20 PM, nidhi mittal wrote: > hello > i was writing my initial block device driver following LDD > but was totally confused on KERNEL SE

Re: sector size in block device drivers

2009-02-01 Thread Sandeep K Sinha
Hi Nidhi, On Sun, Feb 1, 2009 at 3:20 PM, nidhi mittal wrote: > hello > i was writing my initial block device driver following LDD > but was totally confused on KERNEL SECTOR SIZE and hardware sector size > issue they discussed in that . > > they write sth like > if sector number passed between

sector size in block device drivers

2009-02-01 Thread nidhi mittal
hello i was writing my initial block device driver following LDD but was totally confused on KERNEL SECTOR SIZE and hardware sector size issue they discussed in that . they write sth like if sector number passed between kernel and block layer it should be something and if its passed between blockl