Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872AbaGaRWN (ORCPT ); Thu, 31 Jul 2014 13:22:13 -0400 Received: from mga02.intel.com ([134.134.136.20]:23967 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbaGaRWL (ORCPT ); Thu, 31 Jul 2014 13:22:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,773,1400050800"; d="scan'208";a="551936833" Date: Thu, 31 Jul 2014 13:19:53 -0400 From: Matthew Wilcox To: Boaz Harrosh Cc: Matthew Wilcox , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 04/22] Change direct_access calling convention Message-ID: <20140731171953.GU6754@linux.intel.com> References: <53D9174C.7040906@gmail.com> <20140730194503.GQ6754@linux.intel.com> <53DA165E.8040601@gmail.com> <20140731141315.GT6754@linux.intel.com> <53DA60A5.1030304@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53DA60A5.1030304@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 31, 2014 at 06:28:37PM +0300, Boaz Harrosh wrote: > Matthew what is your opinion about this, do we need to push for removal > of the partition dead code which never worked for brd, or we need to push > for fixing and implementing new partition support for brd? Fixing the code gets my vote. brd is useful for testing things ... and sometimes we need to test things that involve partitions. > Also another thing I saw is that if we leave the flag > GENHD_FL_SUPPRESS_PARTITION_INFO > > then mount -U UUID stops to work, regardless of partitions or not, > this is because Kernel will not put us on /proc/patitions. > I'll submit another patch to remove it. Yes, we should probably fix that too. > BTW I hit another funny bug where the partition beginning was not > 4K aligned apparently fdisk lets you do this if the total size is small > enough (like 4096 which is default for brd) so I ended up with accessing > sec zero, the supper-block, failing because of the alignment check at > direct_access(). That's why I added on the partition start before doing the alignment check :-) > Do you know of any API that brd/prd can do to not let fdisk do this? > I'm looking at it right now I just thought it is worth asking. I think it's enough to refuse the mount. That feels like a patch to ext2/4 (or maybe ext2/4 has a way to start the filesystem on a different block boundary?) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/