[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Partial buffer_head acquisition



Sorry for the dumb question, but I'm sleepy right now. If you have your 
superblock set at 4 KiB blocks and a device is natively 512 B blocks, 
let's say, it would be possible to have a partial 4 KiB block at the end 
of the device if the device size doesn't happen to be a multiple of the 
larger block size. Am I right in assuming the size of the partial block is 
stored in buffer_head -> b_size ? And that it correctly reads the partial 
block and stores it without problem?

(And on a side note, is buffer_head -> b_blocknr measured with the working 
block size or with the hardsect size?

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ