[PATCH 1/1] partitions/msdos: Unable to mount UFS 44bsd partitions

2017-11-07 Thread Richard Narron
offset of the C subpartition is zero. https://bugzilla.kernel.org/show_bug.cgi?id=197733 Signed-off-by: Richard Narron <comet.berke...@gmail.com> --- --- a/block/partitions/msdos.c.orig 2017-11-05 13:05:14.0 -0800 +++ b/block/partitions/msdos.c 2017-11-06 09:46:00.148228242

[PATCH 1/1] partitions/msdos: Unable to mount UFS 44bsd partitions

2017-11-07 Thread Richard Narron
offset of the C subpartition is zero. https://bugzilla.kernel.org/show_bug.cgi?id=197733 Signed-off-by: Richard Narron --- --- a/block/partitions/msdos.c.orig 2017-11-05 13:05:14.0 -0800 +++ b/block/partitions/msdos.c 2017-11-06 09:46:00.148228242 -0800 @@ -301,7 +301,9 @@ static void

Re: [git pull] first batch of ufs fixes

2017-06-18 Thread Richard Narron
On Sun, 18 Jun 2017, Al Viro wrote: On Sat, Jun 17, 2017 at 03:15:48AM +0100, Al Viro wrote: On Fri, Jun 16, 2017 at 07:29:00AM -0700, Richard Narron wrote: The 8 patches in the ufs-fixes group were applied to Linux 4.12-rc5. They seem to work fine with the simple testing that I do. I

Re: [git pull] first batch of ufs fixes

2017-06-18 Thread Richard Narron
On Sun, 18 Jun 2017, Al Viro wrote: On Sat, Jun 17, 2017 at 03:15:48AM +0100, Al Viro wrote: On Fri, Jun 16, 2017 at 07:29:00AM -0700, Richard Narron wrote: The 8 patches in the ufs-fixes group were applied to Linux 4.12-rc5. They seem to work fine with the simple testing that I do. I

Re: [git pull] first batch of ufs fixes

2017-06-16 Thread Richard Narron
On Thu, 15 Jun 2017, Al Viro wrote: On Wed, Jun 14, 2017 at 08:11:33AM +0100, Al Viro wrote: FWIW, it seems to work here. Said that, *BSD fsck_ffs is not worth much - play a bit with redundancy in UFS superblock (starting with fragment and block sizes, their ratio, logarithms, bitmasks, etc.)

Re: [git pull] first batch of ufs fixes

2017-06-16 Thread Richard Narron
On Thu, 15 Jun 2017, Al Viro wrote: On Wed, Jun 14, 2017 at 08:11:33AM +0100, Al Viro wrote: FWIW, it seems to work here. Said that, *BSD fsck_ffs is not worth much - play a bit with redundancy in UFS superblock (starting with fragment and block sizes, their ratio, logarithms, bitmasks, etc.)

Re: [git pull] first batch of ufs fixes

2017-06-14 Thread Richard Narron
filesystem dd if=/dev/zero to the BSD subpartition make (newfs) a ufs (1 or 2) filesystem on the BSD subpartiton 2) Linux: Create a subdirectory and make a large file mkdir a dd if=/dev/zero bs=1M count=3072 3) BSD: Check a ufs filesystem fsck -f 4) Linux: Remove the large file and the subdirectory rm rmdir 5) BSD; check a ufs filesystem fsck -f Tested-By: Richard Narron <comet.berke...@gmail.com>

Re: [git pull] first batch of ufs fixes

2017-06-14 Thread Richard Narron
to the BSD subpartition make (newfs) a ufs (1 or 2) filesystem on the BSD subpartiton 2) Linux: Create a subdirectory and make a large file mkdir a dd if=/dev/zero bs=1M count=3072 3) BSD: Check a ufs filesystem fsck -f 4) Linux: Remove the large file and the subdirectory rm rmdir 5) BSD; check a ufs filesystem fsck -f Tested-By: Richard Narron

Re: [git pull] first batch of ufs fixes

2017-06-13 Thread Richard Narron
On Tue, 13 Jun 2017, Al Viro wrote: On Mon, Jun 12, 2017 at 05:54:06PM -0700, Richard Narron wrote: Earlier today I could not reproduce the OpenBSD 6.1 ufs1 fsck error after Linux 4.12-rc5 copy of my >2GB file using "cp". But later today I get the error when I copy using you

Re: [git pull] first batch of ufs fixes

2017-06-13 Thread Richard Narron
On Tue, 13 Jun 2017, Al Viro wrote: On Mon, Jun 12, 2017 at 05:54:06PM -0700, Richard Narron wrote: Earlier today I could not reproduce the OpenBSD 6.1 ufs1 fsck error after Linux 4.12-rc5 copy of my >2GB file using "cp". But later today I get the error when I copy using you

Re: [git pull] first batch of ufs fixes

2017-06-12 Thread Richard Narron
On Mon, 12 Jun 2017, Al Viro wrote: On Sun, Jun 11, 2017 at 12:47:40PM -0700, Richard Narron wrote: 1) Creating an OpenBSD 6.1 (44bsd) disk and then on Linux copying a large > 2GB file and creating a directory, there are errors on OpenBSD with the fsck: Can't reproduce... # fsck -f /

Re: [git pull] first batch of ufs fixes

2017-06-12 Thread Richard Narron
On Mon, 12 Jun 2017, Al Viro wrote: On Sun, Jun 11, 2017 at 12:47:40PM -0700, Richard Narron wrote: 1) Creating an OpenBSD 6.1 (44bsd) disk and then on Linux copying a large > 2GB file and creating a directory, there are errors on OpenBSD with the fsck: Can't reproduce... # fsck -f /

Re: [git pull] first batch of ufs fixes

2017-06-11 Thread Richard Narron
The ufs fixes are looking good, much better than what we started with. After applying the 8 ufs patches: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git /commit/?id=5faab9e0f03c4eef97886b45436015e107f79f5f Copying files to FreeBSD 11.0 (ufs2) and NetBSD 7.1 (ufs2) looks

Re: [git pull] first batch of ufs fixes

2017-06-11 Thread Richard Narron
The ufs fixes are looking good, much better than what we started with. After applying the 8 ufs patches: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git /commit/?id=5faab9e0f03c4eef97886b45436015e107f79f5f Copying files to FreeBSD 11.0 (ufs2) and NetBSD 7.1 (ufs2) looks

Re: [git pull] first batch of ufs fixes

2017-06-10 Thread Richard Narron
On Fri, 9 Jun 2017, Al Viro wrote: That's just the obvious backport fodder; I'm pretty sure that there will be more - definitely so wrt performance and quite possibly correctness as well. These fixes improve the ufs code and they are a good start. Here are a couple of bugs that still

Re: [git pull] first batch of ufs fixes

2017-06-10 Thread Richard Narron
On Fri, 9 Jun 2017, Al Viro wrote: That's just the obvious backport fodder; I'm pretty sure that there will be more - definitely so wrt performance and quite possibly correctness as well. These fixes improve the ufs code and they are a good start. Here are a couple of bugs that still

Re: [PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Richard Narron
On Fri, 26 May 2017, Joe Perches wrote: (please keep replies on the list) On Fri, 2017-05-26 at 18:33 -0700, Richard Narron wrote: On Fri, 26 May 2017, Joe Perches wrote: On Fri, 2017-05-26 at 16:30 -0700, Richard Narron wrote: On Fri, 26 May 2017, Joe Perches wrote: On Fri, 2017-05-26

Re: [PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Richard Narron
On Fri, 26 May 2017, Joe Perches wrote: (please keep replies on the list) On Fri, 2017-05-26 at 18:33 -0700, Richard Narron wrote: On Fri, 26 May 2017, Joe Perches wrote: On Fri, 2017-05-26 at 16:30 -0700, Richard Narron wrote: On Fri, 26 May 2017, Joe Perches wrote: On Fri, 2017-05-26

Re: [PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Richard Narron
On Fri, 26 May 2017, Joe Perches wrote: On Fri, 2017-05-26 at 03:48 -0700, Richard Narron wrote: The code in block/partitions/msdos.c recognizes FreeBSD, OpenBSD and NetBSD partitions and does a reasonable job picking out OpenBSD and NetBSD UFS subpartitions. But for FreeBSD the subpartitions

Re: [PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Richard Narron
On Fri, 26 May 2017, Joe Perches wrote: On Fri, 2017-05-26 at 03:48 -0700, Richard Narron wrote: The code in block/partitions/msdos.c recognizes FreeBSD, OpenBSD and NetBSD partitions and does a reasonable job picking out OpenBSD and NetBSD UFS subpartitions. But for FreeBSD the subpartitions

[PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Richard Narron
@vger.kernel.org Reviewed-by: Christoph Hellwig <h...@lst.de> Signed-off-by: Richard Narron <comet.berke...@gmail.com> --- Changelog v2->v3: - Add Cc: Changelog v1->v2: - Improve style, use += --- block/partitions/msdos.c | 2 ++ 1 file changed, 2 insertions(+) --- a/block/pa

[PATCH v3 1/1] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-05-26 Thread Richard Narron
g Reviewed-by: Christoph Hellwig Signed-off-by: Richard Narron --- Changelog v2->v3: - Add Cc: Changelog v1->v2: - Improve style, use += --- block/partitions/msdos.c | 2 ++ 1 file changed, 2 insertions(+) --- a/block/partitions/msdos.c 2015-12-27 18:17:37.0 -0800 +++ b/block/partitio