From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael L. Semon" Subject: 3.15.0+: 32-bit multiple-of-2GB partition issues, already solved? Date: Thu, 19 Jun 2014 22:38:27 -0400 Message-ID: <53A39EA3.9020404@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-yh0-f49.google.com ([209.85.213.49]:57143 "EHLO mail-yh0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755194AbaFTCi2 (ORCPT ); Thu, 19 Jun 2014 22:38:28 -0400 Received: by mail-yh0-f49.google.com with SMTP id f73so2392349yha.36 for ; Thu, 19 Jun 2014 19:38:28 -0700 (PDT) Received: from [192.168.0.129] (rrcs-97-79-21-178.se.biz.rr.com. [97.79.21.178]) by mx.google.com with ESMTPSA id j46sm12190072yhc.14.2014.06.19.19.38.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 19:38:27 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi! I looked at the linux-fsdevel archives on the Web and saw the thread "Cannot partition 32GB disk on a 32bit machine." So I'll get Alan's patch, junk my bug report, and just note some extra symptoms... When a partition here is an exact multiple of 2GB... 1) lilo will fail with this message: part_nowrite: read:: No such device or address The exact-multiple partition does not need to be in /etc/lilo.conf. 2) mkfs.xfs will fail with this message: superblock read failed: Operation not supported mkfs.xfs error - read only 0 of 512 bytes 3) badblocks will report bad sectors on the read-only test. These are the kind of results from `badblocks -b 512 ... /dev/2GB_multiple_dev`: 4GB partition: 0 8GB partition: 0, 8388608 10GB partition: 4194304, 12582912 badblocks comes up clean under vanilla kernel 3.15 and 3.10.41. 4) `ntpq -p` will segfault, and the strace has it ending on some kind of "no such address" error as well. `git bisect` brought me here... root@oldsvrhw:/usr/src/kernel-git/linux# git bisect bad 37938463540b075e9166cf774c59274379f7a8ca is the first bad commit commit 37938463540b075e9166cf774c59274379f7a8ca Author: Al Viro Date: Sat Mar 22 06:57:37 2014 -0400 blkdev_aio_read(): switch to generic_file_read_iter(), get rid of iov_shorten() Signed-off-by: Al Viro :040000 040000 ad9ba87463bebb2a80d343b9c649587ead91b4a1 fc72efc46850efdf88357e7a783a1dfebbdf5132 M fs ...though now it's looking more like the commit brought a symptom from elsewhere to the forefront. Should Alan's patch not work, I'll keep working around the issue by not creating partitions that are multiples of 2 GB. Thanks, and good luck! Michael