Received: by 10.192.165.148 with SMTP id m20csp2598387imm; Sun, 6 May 2018 19:40:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomMswc6tA7vUo2tZkNdd/R3rpGm5MbxWuLvoYqY0j4gIiSbroPzx28BvNjpQEgbniWylSf X-Received: by 10.98.67.135 with SMTP id l7mr30680211pfi.55.1525660832635; Sun, 06 May 2018 19:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525660832; cv=none; d=google.com; s=arc-20160816; b=z4q3wv9CQooBjbGB4bmqwOBaVV9e97gO0NEaE4ZvW371RJtDSLvRja99vvOMUiEq+z jOqw66s2Rt3nJsh29Oi2utGo537szksVEuyU8/yIVawwpPfHvZoO+gI7jLo377qivZdP PMSUaAD9O1zXAv57jeX0hZbHn3e7x82Fg9/9mxzZyFG75rFYR4TXaDtJ66P9Z8xebUau 6P8s/3MZWDDH6jkyDdOGeDLIjP7bn55kh4mLSfmwndwCxNZaVBFoZEecQhfO3kHYME75 h7g81p7u8m6sk4aSmyN26EKcVlpo7+R2m0ww1j332F2PxoeQ/K/pRLxsCniCb0x75e6X QpDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CLC9v9pjLG9F4Hn/iPeAGVPVlwCjMGKt07+BRnQd80w=; b=zoxRZ+OTAW98V8s3oBcZNvl6bNiNb1Yr5bZ6f/KHgwP3kxCnTZAilxG+SMlCY6GbhD qjyfeqQ9Ya61LV86iwKcvxhoNumuzg10Qi3n0VyX/Q6Gr1ZDSqeqnYbB88VI98jHrMNU 3O0l0uBO73ZyEMQHiMAtHnv2Pvle3kVX6V/16tG6kFGoFRCbezReP8Qfnw4OYf+Mu2ZS o63c5+MsicTDZYLXAJGTY7/m7PP7wlf4gQAwu2ZPfdIDzgLRgGGlJ0ukzQd0ACCeBZS5 RnIZazRNhhgOlBZopnaqzxIDHfY59dxeDsLbTst/gS8k/HVwKclgwNfPdYboe8PG//Lh Rvtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BGllrnkX; 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 s3-v6si20867706plb.394.2018.05.06.19.40.16; Sun, 06 May 2018 19:40:32 -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=BGllrnkX; 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 S1751908AbeEGCkI (ORCPT + 99 others); Sun, 6 May 2018 22:40:08 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:38198 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751831AbeEGCkH (ORCPT ); Sun, 6 May 2018 22:40:07 -0400 Received: by mail-pf0-f176.google.com with SMTP id o76so21639708pfi.5; Sun, 06 May 2018 19:40:06 -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; bh=CLC9v9pjLG9F4Hn/iPeAGVPVlwCjMGKt07+BRnQd80w=; b=BGllrnkXqowwY7CMNkZd8pi5fYtFYtw1wcwXsxUeVGwDgwXbd0QIElqaCQoA8EQPmQ jDMzsUGdDWmo+eqKdKAVRfaRt5IzbVC3svkYLH/YIwIkWXGR3zGbggGXPxV5OqmORDW6 TFg/fF+doRPMZmsti2O+ogZSdsuSZ+ejY0gSiHBh+CAhNJGfN/94swOInAoQoK2ltRp5 AxaU3xujvPLV5cC0ZCkrnhXINEtwlX6ttJL531IrdQuFvkvPlFm18i5XRKjhvD14BZWz pan/+LUix1PzK+0hLLC2aE9lzsrsBG22iJCqGxpsLO4VBD9nLK4/XREes00APoUd7lUb ZBfw== 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; bh=CLC9v9pjLG9F4Hn/iPeAGVPVlwCjMGKt07+BRnQd80w=; b=amS2DamSQ+DOgyVY23Ki0oTjq4x0T7TqGCvHS9Sjf4aJzBk7e4AwRqbwQgV22UuTsM jCQUT7Dfaz5tpOtSSVgOrLBTI7tbIGcW2lCcZSUVHNIQKiRpt8fpE6NcS8JKpeOX8oWO hPyffAWOr2eMPgt5VlB4SD6HPClE5v/BpRrE2hbzXdN7kFAV3hD3YwZNBnJTBY47y6pN o27tuLVktH9IRdqDHsvA6f8NCTYqcIB0bBfKOvXXAiaR8Nlbsy39we+g2/vxFhdx4z+2 IAqZ00MGEeXyPLk5zQXJG4GCMSzMKXzSY4wKHLtz4Xrd/bXjtBF8xytUnikxOw3iLhnZ SVWw== X-Gm-Message-State: ALQs6tCNL0SVpt/9Pz045zi+kdBTVdO8zecE02InKX+2BrfJ8/mZJgns S9gENUf4eX04VHWtcy8IN+Yf+8TgwdLC/YcL1TE= X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr36376206plt.91.1525660806454; Sun, 06 May 2018 19:40:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.164.135 with HTTP; Sun, 6 May 2018 19:40:06 -0700 (PDT) In-Reply-To: <20180507021554.GN30522@ZenIV.linux.org.uk> References: <20180425154602.GA8546@bombadil.infradead.org> <20180425203029.GQ21272@twin.jikos.cz> <20180426025717.GA32430@bombadil.infradead.org> <1613268.lKBQxPXt8J@merkaba> <76ca15e2-7b43-8b02-43e1-9ee65ab85356@physik.fu-berlin.de> <20180506005946.GI30522@ZenIV.linux.org.uk> <20180506073955.GJ30522@ZenIV.linux.org.uk> <20180506204622.GL30522@ZenIV.linux.org.uk> <20180506213247.GM30522@ZenIV.linux.org.uk> <20180507021554.GN30522@ZenIV.linux.org.uk> From: Michael Schmitz Date: Mon, 7 May 2018 14:40:06 +1200 Message-ID: Subject: Re: moving affs + RDB partition support to staging? To: Al Viro Cc: John Paul Adrian Glaubitz , Martin Steigerwald , Matthew Wilcox , David Sterba , Linux FS Devel , Linux Kernel Development , Jens Axboe , "Linux/m68k" , Debian m68k Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Al, I don't think there is USB sticks with affs on them as yet. There isn't even USB host controller support for Amiga hardware (yet). Last I tried USB on m68k (Atari, 060 accelerator) the desktop experience was such that I'd rather not repeat that in a hurry (and that was a simple FAT USB stick). I see your point regarding the immense practical joke value on any desktop PC ... my work desktop has the affs module present. Happy to try this out if someone can provide a sample disk image suitable for USB flash media. Cheers, Michael On Mon, May 7, 2018 at 2:15 PM, Al Viro wrote: > On Sun, May 06, 2018 at 10:32:47PM +0100, Al Viro wrote: >> On Sun, May 06, 2018 at 09:46:23PM +0100, Al Viro wrote: >> >> > I'm fixing that pile of crap (along with the NFS exports >> > one and, hopefully, rename mess as well). HOWEVER, I am not going >> > to take over the damn thing - David has violated the 11th >> > commandment (Thou Shalt Never Volunteer), so he gets to joy of >> > learning that codebase and taking care of it from now on. >> >> Same scenario on link(2) ends up with >> * ST_LINKFILE created, inserted into the link chain and left around, >> without being present in any hash chain >> * target becoming positive hashed dentry, as if link(2) has succeeded, >> so dcache lookups will be finding it (for a while) >> * unlink(2) on source will have very interesting effects, what with >> the attempts to move ST_FILE entry into the directory presumed to >> contain ST_LINKFILE one, removing ST_LINKFILE from it at the same time. > > Oh, lovely... Looks like that thing wants the hash chains sorted by > block number. affs_insert_hash() doesn't give a toss - it always > adds to the very end of chain. > > Maintaining that requirement (and I can understand the rationale - > they don't want too many back-and-forth seeks on directory lookups) > is going to be great fun on rename(), especially for the case when > the target of rename happens to be a primary name for a file with > additional hardlinks. > > I think I see how to deal with that sanely, but... ouch. > > Incidentally, we'd better verify that hash chains are not looped - as it > is, there's no checks whatsoever, and it *will* happily loop if you > feed it an image with such braindamage. I really hope that no fan of > desktop experience has set the things up for e.g. USB sticks with > that on them being recognized and automounted on insertion... > -- > 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