Partial buffer_head acquisition

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

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux