Received: by 10.192.165.148 with SMTP id m20csp193655imm; Thu, 26 Apr 2018 19:13:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoFzChi9bC054Kjy9s6BSFCDZ7VLeIibuitOGDphfyFxiRfYlmw3rE63R1UyVuH13igZKSx X-Received: by 2002:a63:6185:: with SMTP id v127-v6mr416174pgb.441.1524795201835; Thu, 26 Apr 2018 19:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524795201; cv=none; d=google.com; s=arc-20160816; b=izJJhj6d4muTES36/rrRYARtwJHU7ajzoXPDwhZZZenQkJQQ9d8hosjka95c9dq62D Hw8/2ndCoCdPxd4ZKINhGiO4yy6huZO9tLOYPbwKlS/SopNSEytHt0OXBcjOZYDx7zR3 VY3938mpO/LkdCcUmFo7HKo9SzSjl/IbKXqGxz8YPM/gyXx2Z+nu1rKFCbeGdCBBUEEr BzYy9UXE0BMwrn92zkLnXhtBzUrneakCAbV9BulWH4p9Wmp/stDLext+CH7ngH2GTyWV HwK6LIdx/2TY0XhKiV41cKfeFP6FLBxnCYoB49EAOfKS4H0a0jjp6U+AE2YjerFgxXXf Mzuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=HfUCNXxrlFhiDMUEy68JkM0kzC1mu3V43ueJehryD1I=; b=eHn6QlFVpGajGHpNE2wrpXB//d59iwODoJpS27SX2NRbX+dANc2HvE3ru8QM3IAaPh EU/QzuDXHIyqeUnmSZ1PJJJqZjAHeQJ56qa8+gfk1P6w0MVmxTqu4gT7RwHzAp15o1gs dyluwRkanjj7cKea7/c/a3J+hPKl0W9phVy6+u0lJC/byLuH4T/W9y02Mmo06l/e1Zb6 Dm5LfT+EKn5JaQy7B2omjpLrx31jXSEk4UHqoCyFgvYwiQEECR5IN8eDfESYGo4d+tvu AGbVv3Dt3Dz6SnjviB3tgThb7q+qY8cn5a7FOFWgYBV+F7C8buh+E7b/XxeJ2KOs/6zt h3KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R/zlmTF1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w62si258906pfw.201.2018.04.26.19.13.07; Thu, 26 Apr 2018 19:13:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R/zlmTF1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932296AbeD0CLz (ORCPT + 99 others); Thu, 26 Apr 2018 22:11:55 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38766 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757261AbeD0CLw (ORCPT ); Thu, 26 Apr 2018 22:11:52 -0400 Received: by mail-pf0-f196.google.com with SMTP id o76so300658pfi.5; Thu, 26 Apr 2018 19:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HfUCNXxrlFhiDMUEy68JkM0kzC1mu3V43ueJehryD1I=; b=R/zlmTF1+MUUbExysjPfQ1OceSqybh6x/ZItnqFFAN25WTTZG214NX28KH3j781fLh gGONAjSf7oSv1UB4sOn7fybwJSeAGnq0cQ+eaGt0M3e/uVEj/3XpuXLR/YwRvjOLK5LL nW8HI9sApRNdM9ugkZR2x9Ocrt6u3k08VRHTDXGfsLzsdIbmqwh2HZC8gSwC2s9MCKc9 dGebo6lzyk/dKTBxZNaatYzSzR/e6J8A6N63yJxc5Z1oZGiCl7SbIl5iNj3y9xbk0jx9 49kA69VNgqeEXJbTLfrKH70jWZPatDa936FfoxDdqVYE1wZGX3R3UZhHm30XNftmR9c7 4HKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HfUCNXxrlFhiDMUEy68JkM0kzC1mu3V43ueJehryD1I=; b=Lap7xEgC+yQUvj1SjoiCNCVyXv/PzZRUjJbzJ8EChUEsVcMl+muXND+uAYAAqm8qGP qRTyXO9bfuZarlL2gL0+lBR0H2Hq7vKQoICJ5QEyTeYfu+XXxaSSUFFAqsIGdlJ6a1yc oUVcsx0ShD1RHbeEsGHUk4iFi49y56HrxkCbXWgfoCT/t8i2Rhw29hZAkS4M4AyW74eV I1W7XWpMekIUaRC67IYY/5SnG8nymibOw2isKCeb4JgGcRcY8HfehOeyeSzsAoSCX+EL waAEBMAd2rc1e81Lzb/0JUJYPFfEQNDo9xHbQ+NVRFNoiY68lYK5QT2BbdZuQ2G6fGx2 u1hQ== X-Gm-Message-State: ALQs6tC24tAgh2AdMXR6ni4hhiD4VLmi580zEoegLGU4m3UCog/X1zOS Fr/jswpemXtscn92F/BHUBunJf/fiL6lpLC5UnQ= X-Received: by 10.98.19.151 with SMTP id 23mr451885pft.222.1524795111909; Thu, 26 Apr 2018 19:11:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.133.16 with HTTP; Thu, 26 Apr 2018 19:11:51 -0700 (PDT) In-Reply-To: References: <20180425154602.GA8546@bombadil.infradead.org> <20180425203029.GQ21272@twin.jikos.cz> <20180426025717.GA32430@bombadil.infradead.org> <1613268.lKBQxPXt8J@merkaba> From: Michael Schmitz Date: Fri, 27 Apr 2018 14:11:51 +1200 Message-ID: Subject: Re: moving affs + RDB partition support to staging? (was: Re: Moving unmaintained filesystems to staging) To: Geert Uytterhoeven Cc: Martin Steigerwald , Matthew Wilcox , David Sterba , Linux FS Devel , Linux Kernel Mailing List , Jens Axboe , linux-m68k , Joanne Dow Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, test results at https://bugzilla.kernel.org/show_bug.cgi?id=3D43511 indicate the RDB parser bug is fixed by the patch given there, so if Martin now submits the patch, all should be well? (MSDOS partition support is not the only one with limitations - the SGI partition parser also uses int types. Brings back memories of /me hacking a large disk into many small partitions because Irix couldn't digest it whole!) Going to look into Atari partition format limitations now ... Cheers, Michael On Thu, Apr 26, 2018 at 11:08 PM, Geert Uytterhoeven wrote: > Hi Martin, > > CC jdow > > On Thu, Apr 26, 2018 at 12:28 PM, Martin Steigerwald > wrote: >> You probably put your stick into a cave with ancient sleeping dragons :) >> >> Added in linux-m68k mailing list, as they likely have an opinion on how >> to treat affs + RDB partition support. Also added in Jens Axboe about >> patching that RDB support broken with 2 TB or larger harddisks issue >> which had been in Linux kernel for 6 years while a patch exists that to >> my testing back then solves the issue. > > While non-native Linux filesystem support (e.g. affs/isofs/...) could be > handled by FUSE, moving RDB partition support to staging is not an option= , > as it is the only partitioning scheme that Amigas can boot from. > > If there are bugs in the RDB parser that people run into, they should > be fixed. > If there are limitations in the RDB format on large disks, that's still n= ot > a reason to move it to staging (hi msdos partitioning!). > >> Matthew Wilcox - 26.04.18, 04:57: >>> On Wed, Apr 25, 2018 at 10:30:29PM +0200, David Sterba wrote: >>> > I had similar toughts some time ago while browsing the fs/ >>> > directory. >>> > Access to the filesystem images can be reimplemented in FUSE, but >>> > other than that, I don't think the in-kernel code would be missed. >>> > >>> > It's hard to know how many users are there. I was curious eg. about >>> > bfs, befs, coda or feevxfs, looked at the last commits and searched >>> > around web if there are any mentions or user community. But as long >>> > as there's somebody listed in MAINTAINERS, the above are not >>> > candidates for moving to staging or deletion. >>> >>> Yeah, it's pretty sad how few commits some of these filesystems have >>> had in recent years. One can argue that they're stable and don't need >>> to be fixed because they aren't broken, but I find it hard to believe >>> that any of them were better-implemented than ext2 which still sees >>> regular bugfixes. >> >> Regarding affs there is a severe issue which is not in affs itself but >> in the handling of Rigid Disk Block (RDB) partitions, the Amiga >> partitioning standard, which is far more advanced than MBR: It overruns >> for 2 TB or larger drives and then wraps over to the beginning of the >> drive =E2=80=93 I bet you can imagine what happens if you write to an ar= ea >> larger than 2 TB. I learned this with an external 2TB RDB partitioned >> harddisk back then, which I used for Sam440ep (a kind of successor for >> old, classic Amiga hardware) backup + some Linux related stuff in >> another partition. >> >> Joanne Dow, a developer who developed hdwrench.library which HDToolBox >> uses for partitioning in AmigaOS 3.5/3.9, provided a patch back then, >> but never officially put it officially through upstreaming as I offered >> to make a good description and upstream it through Jens Axboe. >> >> I may take this as a reason to=E2=80=A6 actually follow through this tim= e, >> hopefully remembering all the details in order to provide a meaningful >> patch description =E2=80=93 but I think mostly I can do just careful cop= y and >> paste. Even tough I believe Joanne Dow=C2=B4s fix only fixed my bug repo= rt >> 43511, but not 43511 which is more about a safeguarding issue in case of >> future overflows, I still think it would be good to go in in case affs + >> RDB stays in their current places. >> >> However, in case you move affs to staging, I may be less motivated to do >> so, but then I suggest you also move RDB partitioning support to >> staging, cause this is the one that is known to be dangerously badly for >> 2 TB or larger disks. And yeah, I admit I did not follow through with >> having that patch upstreamed. Probably I did not want to be responsible >> in case my description would not have been absolutely accurate or the >> patch breaks something else. I do not have that 2 TB drive anymore and >> don=C2=B4t feel like setting one up in a suitable way in order to go abo= ut >> this patch, but my testing back then was quite elaborate and I still >> feel pretty confident about it. >> >> I totally get your motivation, but I would find it somewhat sad to see >> the filesystems you mentioned go into staging. However, as I just shown >> clearly, for the user it may be better, cause there may be unfixed >> dangerous bugs. FUSE might be an interesting approach, but I bet it will >> not solve the maintenance issue. If there is no one maintaining it in >> the kernel, I think its unlikely to find someone adapting it to be a >> FUSE filesystem and maintaining it. And then I am not aware of FUSE >> based partitioning support. (And I think think ideally we=C2=B4d had a >> microkernel and run all filesystems in userspace processes with a >> defined set of privileges, but that is simply not Linux as it is.) >> >> Partitions: Amiga RDB partition on 2 TB disk way too big, while OK in >> AmigaOS 4.1 >> https://lkml.org/lkml/2012/6/17/6 >> >> Bug 43521 - Amiga RDB partitions: truncates miscalculated partition size >> instead of refusing to use it >> https://bugzilla.kernel.org/show_bug.cgi?id=3D43521 >> >> Bug 43511 - Partitions: Amiga RDB partition on 2 TB disk way too big, >> while OK in AmigaOS 4.1 >> https://bugzilla.kernel.org/show_bug.cgi?id=3D43511 >> >> I forward the relevant mail of Joanne, in >> >> https://bugzilla.kernel.org/show_bug.cgi?id=3D43511#c7 >> >> I even have the patch in diff format. And I just checked, the issue is >> still unpatched as of 4.16.3. >> >> ---------- Weitergeleitete Nachricht ---------- >> >> Betreff: Re: Partitions: Amiga RDB partition on 2 TB disk way too big, >> while OK in AmigaOS 4.1 >> Datum: Montag, 18. Juni 2012, 03:28:48 CEST >> Von: jdow >> An: Martin Steigerwald >> Kopie: Geert Uytterhoeven , linux- >> kernel@vger.kernel.org, Jens Axboe , linux- >> m68k@vger.kernel.org >> >> On 2012/06/17 14:20, Martin Steigerwald wrote: >>> Am Sonntag, 17. Juni 2012 schrieb jdow: >>>> On 2012/06/17 09:36, Geert Uytterhoeven wrote: >>>>> On Sun, Jun 17, 2012 at 2:58 PM, Martin Steigerwald >>> wrote: >>>>>> Am Sonntag, 17. Juni 2012 schrieb jdow: >>>>>> | JXFS 64 bit file system >>>>>> | >>>>>> | With AmigaOS 4.x a new file system has been introduced called >>>>>> | JXFS. It is a totally new 64 bit file system that supports >>>>>> | partitions up to 16 TB in size. It is a modern journalling file >>>>>> | system, which means that it reduces data loss if data writes to >>>>>> | the disk are interrupted. It is the fastest and most reliable >>>>>> | file system ever created for AmigaOS. >>>>>> >>>>>> http://www.amigaos.net/content/1/features >>>>>> >>>>>> Well I asked AmigaOS 4 developers about this issue as well. Lets >> see >>>>>> what they say about 2 TB limits. >>>>> >>>>> 16 TB =3D 2 TB * 8. Perhaps they increased the block size from 512 to >>>>> 4096? >>>>> >>>>> block/partitions/amiga.c reads the block size from >>>>> RigidDiskBlock.rdb_BlockBytes, >>>>> but after conversion to 512-byte blocks, all further calculations >> are >>>>> done on "int", so it will overflow for disks larger than 2 TiB. >>>>> >>>>> Note that in your profile-binary.img, the field is 0x200, i.e. 512 >>>>> bytes per block, >>>>> so I'll have to get a deeper look into your RDB first... >>> [=E2=80=A6] >>>> Note that the work I did on the Linux RDB code eons ago took full >>>> cognizance of the physical and virtual block sizes. >>> [=E2=80=A6] >>>> I've asked Martin for a digital copy of his RDBs and what he thinks >> the >>>> partition(s) should look like. I should also be told whether the disk >>>> is supposed to be solely Amiga OSs or not. I gather it's not. >>> >>> Its all in the bug report. profile-binary.img should be it. >>> >>> Its small so I attach it. >>> >>> Meanwhile I try to get the currently supported maximum disk size out >> from >>> the OS 4 developers. Maybe JXFS is playing tricks that other >> filesystems do >>> not play or simply has a different implementation. >>> >>> Thanks, >> >> I've sent Jens a proposed fix changing these lines in amiga.c. >> =3D=3D=3D8<--- was >> struct PartitionBlock *pb; >> int start_sect, nr_sects, blk, part, res =3D 0; >> int blksize =3D 1; /* Multiplier for disk block size */ >> =3D=3D=3D8<--- becomes changing line 338 into lines 338-339 >> struct PartitionBlock *pb; >> sector_t start_sect, nr_sects; >> int blk, part, res =3D 0; >> int blksize =3D 1; /* Multiplier for disk block size */ >> =3D=3D=3D8<--- >> >> (I'm working without proper tools at the moment or I'd make a real diff. >> Sorry.) >> >> This fix may not be complete. The RDBs contain provisions for describing >> the physical disk block size and how many physical blocks are used in a >> file system's logical blocks. This MAY not work quite right large >> physical >> block sizes. >> >> {^_^} Joanne Dow >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> ------------------------------------------------------------- >> [=E2=80=A6] >> >>> As long as there's someone who can be pestered with bugs, I don't see >>> the need to push their baby out of the tree. I'm a bit more nervous >>> about hfsplus; if it has users and no maintainer, those users are at >>> risk. >>> >>> Perhaps we could advertise on Craigslist or something ... maintainer >>> wanted for LTR. > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org > > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds > -- > To unsubscribe from this list: send the line "unsubscribe linux-m68k" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html