Re: [PATCH] target: Fix bug in handling of FILEIO + block_device resize ops

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

 



On Wed, May 16, 2012 at 11:08:03PM +0000, Nicholas A. Bellinger wrote:
> From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>
> 
> This patch fixes a bug in the handling of FILEIO w/ underlying block_device
> resize operations where the original fd_dev->fd_dev_size was incorrectly being
> used in fd_get_blocks() for READ_CAPACITY response payloads.
> 
> It changes fd_get_blocks() to always set fd_dev->fd_dev_size based on the
> current inode size when an underlying block_device is being referenced.

I think you should simply stop using fd_dev_size, storing it when it
recalculated all the time just causes confusion.

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux