From: Andrew Morton Subject: Re: Cannot partition 32GB disk on a 32bit machine (correct version of the patch this time) Date: Thu, 19 Jun 2014 13:51:45 -0700 Message-ID: <20140619135145.9fb9f65404028d656b3f8ec5@linux-foundation.org> References: <1403170201.10778.36.camel@acox1-desk.ger.corp.intel.com> <1403170400.10778.38.camel@acox1-desk.ger.corp.intel.com> <1403203437.17294.25.camel@dabdike.int.hansenpartnership.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "Cox, Alan" , "linux-fsdevel@vger.kernel.org" , "aeb@cwi.nl" , "linux-kernel@vger.kernel.org" , Al Viro To: James Bottomley Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:51408 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964993AbaFSUvr (ORCPT ); Thu, 19 Jun 2014 16:51:47 -0400 In-Reply-To: <1403203437.17294.25.camel@dabdike.int.hansenpartnership.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, 19 Jun 2014 11:43:57 -0700 James Bottomley wrote: > Do you have CONFIG_LBD turned on? That's supposed to let us go up to > about 16TB before we run out of page index bits. If you do, we might > have a variable that's int but should be sector_t somewhere. I assume the problem is that iov_iter uses size_t (which is 32-bit on 32-bit) and we're trying to use iov_iter for blockdevs. All this code is new and I've NFI how it's supposed to work and cannot find a description anywhere. cc's viro and runs away.