From owner-freebsd-fs@freebsd.org Thu Jun 4 18:51:41 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6400432CDEA for ; Thu, 4 Jun 2020 18:51:41 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49dFHc4f6jz4YD1 for ; Thu, 4 Jun 2020 18:51:40 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-il1-x134.google.com with SMTP id p5so7131603ile.6 for ; Thu, 04 Jun 2020 11:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kjO0NFobSUpe3gcf7p1uWnCL7NXpuugIKj/W/h9rcMI=; b=mEFbBfOayDfpyrCaI/bhfi7k66SlV/vUDemEdc7d5nUvNjzLjUwU38MT/2TGLFxfEs vXhCzCUVKZOfvjgMnjgCpBIYaKxLBbZMZ0AgeucMZkxN6q56lI+QrJSWairop+V7SveJ oipQNKwL6rAbUJiAdvVWj+HYNDTXGJh0KMav0ZvdEqQLyYoH77RMk/xeI6B+wOrM/bTb nU5MfkaseXg0l/f0XVyRI1ZaHPzuCbIi1RIxQxlP9j5BrqhUcJJFP04/9i5EMqyXWbMy xR9xr5525uRWzEosyEH/UTnnkvJvMqH0PIxnCgwFztOliJWFszobc71lJdv7An/6u0Av Hqpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kjO0NFobSUpe3gcf7p1uWnCL7NXpuugIKj/W/h9rcMI=; b=esccw3tkpPsK7hRWSjugQyAt3nB6+7Gg+7bkfNrzOLJNA+cUg/+TCrz0bAne4QVgQT XlijqdLeLYcOgLyqj3Tt7izKlCRhtC+2PzgE6Jk19mTj1Mbzsr6yaeh9+SlN8sGx9Lyx f5ESUJLNot93uI4ueCOyBWLjL9onyozWWW0iJYbyMB3byhH8BJmkDV2hvHXwfzonJfNI 0Ywb9HIpPs+0CEq6w7CfCZIQO5e0syGkqH/0nSSco/RG/7f4saBFvYtrezO+VEB0yUDE EjMjE3VxGjC8UY146lEAMAhw++4OnYO9bleTSkTY/BwtUmqzSiL+n8ymkxuB9ApO+CPP Ra2A== X-Gm-Message-State: AOAM533dUCk6cvhiMPgrrHYBMpF9aVsOJ1cTs6C42CBut0gMtF+R0bM0 lmHBbkf8VHXG5v4FTPghqYnWh8d4+2anGPIzdOmkGYj/ X-Google-Smtp-Source: ABdhPJxto3RZSsVgXv1plbCxoSfDDeLxIJr3YReP99pJOHEd/yApNh+R1QaKlxCH0YQFGr89ZNdzIUiC/j0YtPruOkE= X-Received: by 2002:a05:6e02:eb0:: with SMTP id u16mr5535276ilj.81.1591296699451; Thu, 04 Jun 2020 11:51:39 -0700 (PDT) MIME-Version: 1.0 References: <1d05302e-db7f-2538-16ee-dcd73c229e37@national.shitposting.agency> In-Reply-To: <1d05302e-db7f-2538-16ee-dcd73c229e37@national.shitposting.agency> From: Aryeh Friedman Date: Thu, 4 Jun 2020 14:51:27 -0400 Message-ID: Subject: Re: newfs(1) on a file To: goatshit54108@national.shitposting.agency Cc: freebsd-fs@freebsd.org X-Rspamd-Queue-Id: 49dFHc4f6jz4YD1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=mEFbBfOa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::134 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.96 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.01)[-1.005]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_SHORT(0.03)[0.031]; NEURAL_HAM_LONG(-0.99)[-0.985]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::134:from]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2020 18:51:41 -0000 Top posting since the comment has very little to do with the actual content of the message. I am amazed people call me a troll but someone who is purposely being one is not called out?!?!!? How many of the posting guidelines has this guy broken already? On Thu, Jun 4, 2020 at 12:49 PM wrote: > Running newfs(1) on a regular file bumps into some GAY issues: > > $ dd status=none if=/dev/zero bs=1m count=4 of=shit > $ newfs ./shit > newfs: ./shit: not a character-special device: No error: 0 > newfs: no valid label found > > The message is not clear, but it happens to be a cry for a BSD label. OK, > first creating a BSD label does allow newfs to succeed: > $ bsdlabel -wf ./shit > $ newfs ./shit > newfs: ./shit: not a character-special device: No error: 0 > ... (creation OK) > > The bump is inside getdisklabel(). Patching out the one and only call to > getdisklabel() seems to avoid the issue without negative consequences: > ... > lp = NULL; //lp = getdisklabel(); // GAY > ... > > $ dd status=none if=/dev/zero bs=1m count=4 of=shit > $ non-gay_newfs ./shit > newfs: ./shit: not a character-special device: No error: 0 > preposterous size 0 > $ non-gay_newfs -s $(((4 << 20) / 512)) ./shit > newfs: ./shit: not a character-special device: No error: 0 > ... (creation OK) > > The inconvenient alternative, to get newfs to format the file though a > memory disk, appears to create an identical file: > $ dd status=none if=/dev/zero bs=1m count=4 of=shit > $ su root > ... (GAY) ... > # mdconfig -a -t vnode -f ./shit -u 9 > # newfs /dev/md9 > ... (creation OK) ... > > Identical, that is, if we use `newfs -R` and discount a couple of > reproducibility bugs/issues (< > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246983>, < > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246985>). > > Also, at a glance, using the BSD label method yields nothing other than a > UFS filesystem along with a BSD label. > > So this code appears to be old garbage. > > Furthermore, the "not a character-special device" warning is just GAY > without any benefit. > > Or?... > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org