From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH] dm log: fix create_log_context() to use proper logical_block_size Date: Wed, 17 Jun 2009 12:26:27 -0400 Message-ID: References: <1245255712-5320-1-git-send-email-snitzer@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <1245255712-5320-1-git-send-email-snitzer@redhat.com> (Mike Snitzer's message of "Wed, 17 Jun 2009 12:21:52 -0400") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids >>>>> "Mike" == Mike Snitzer writes: Mike> create_log_context() must use the logical_block_size from the log Mike> disk rather than the target's logical_block_size. Mike> buf_size = dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + Mike> bitset_size, Mike> - ti->limits.logical_block_size); Mike> + q->limits.logical_block_size); Please use the accessor functions when possible. bdev_logical_block_size(lc->header_location.bdev) to the rescue.... -- Martin K. Petersen Oracle Linux Engineering