From owner-freebsd-hackers@freebsd.org Sat Dec 1 20:51:49 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70BA61327634 for ; Sat, 1 Dec 2018 20:51:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D556773EF9 for ; Sat, 1 Dec 2018 20:51:48 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x834.google.com with SMTP id i7so9771316qtj.10 for ; Sat, 01 Dec 2018 12:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p9IczOsJkzFlleXcKYGiHEnN/fLHrmicuCSoKD9PidY=; b=Ux2NTODYZB/EqFgqIuNXrxjmbI53AEGjxP/WG0nhv+6J7qlViumb29PtZgdS5+16U6 eQEo/SV3MgQPhugtFldFtQrr69EcXR4Rt3feQpP6sJqx1wmOOVCg1boYg2Ta+mwiDNFw +Swu1TvHxqbBlLWGZWBwrvw9kHibOu04qwqwpb7uSxQIxoPsNuUqkIFj65XP/0eL2WG0 LVxge+yiqir+IThJXTbNNTVmom17HhvgnX2JRcu0NiLDiMXydwop4up7vHE+IyfOjlnX lqB1KpCbfZ3fIF6JsHEtwgm28tb/sv9gCBnyzHsEpqGAicktDj+4kz04jm09ze1c6CQZ oBPg== 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=p9IczOsJkzFlleXcKYGiHEnN/fLHrmicuCSoKD9PidY=; b=qMDByUBurCSH8XABn+1k550qeWnZnUz/Xf8MhD7N7s43QLJJ9v01Yy3vrGXlWSQ/GF VP1y+AnWYG/zd8BjG8WKsrPxFy2NPZ9MBFtbJfudtrMWD6ScQMJr33lLOK1yNuGPR+Bw QijbWoH7h85ZP5X4TsJYP35DhwvK6J2SLTrW9VmIWhiQgnZPdUK0q6eKr8V2gJtpCjyW 3g+iO1DfowCMoynYMk1oiwYWg84hRhSGgODVfX89piB+sTYS3WKJestELVPRYB4KHT1k 8HaZYjFNsjJdK9tzQfbTnHnMqP0yDw82mkbQ/WeeSIEDRzIg+Up1Ea6sUMUOPsrqOARf oo7g== X-Gm-Message-State: AA+aEWZzvKoE6M0JuhF1fYfHhwBwbtiUGsp+3M1bNpc3scjcV2Dg+zhU miVcFh+RpaVCCEwcQLn3WpufpD3YEEHAxzrJTT5V+Mi4 X-Google-Smtp-Source: AFSGD/VG/8HByj8NE4QfGdK7Sf1WCNPhv2uQKSFbdJKdZqcanR4s5BhU8bDu6MhfCgQq5BCHMy6hmsFk9SN7vMbaFt4= X-Received: by 2002:aed:3881:: with SMTP id k1mr9818898qte.345.1543697508186; Sat, 01 Dec 2018 12:51:48 -0800 (PST) MIME-Version: 1.0 References: <20181201.011411.2100982142219259108.ish@amail.plala.or.jp> <1543622218.1860.169.camel@freebsd.org> <5281174.XOh7uYVVfo@photon.int.bluestop.org> In-Reply-To: <5281174.XOh7uYVVfo@photon.int.bluestop.org> From: Warner Losh Date: Sat, 1 Dec 2018 13:51:36 -0700 Message-ID: Subject: Re: How to use trim command ? To: Rebecca Cran Cc: "freebsd-hackers@freebsd.org" , ish@amail.plala.or.jp, "freebsd-hackers@freebsd.org" , Ian Lepore , Eugene Grosbein X-Rspamd-Queue-Id: D556773EF9 X-Spamd-Result: default: False [-2.48 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com]; NEURAL_HAM_MEDIUM(-0.97)[-0.972,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.983,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[4.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.89)[-0.893,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-0.62)[ipnet: 2607:f8b0::/32(-1.70), asn: 15169(-1.31), country: US(-0.09)]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2018 20:51:49 -0000 On Sat, Dec 1, 2018 at 12:50 AM Rebecca Cran via freebsd-hackers < freebsd-hackers@freebsd.org> wrote: > On Friday, 30 November 2018 17:36:01 MST Eugene Grosbein wrote: > > 01.12.2018 6:56, Ian Lepore wrote: > > > newfs destroys data too, cat > /dev/da0 does this too, > > add the name "dd" itself does not imply data destruction. > > > Can you invent better name? > > 'discard'? > That's a good name. trim has the unfortunate collision with the perl 'trim' function and similar things that I didn't think of when I recommended it. It's also nicely technology agnostic. Warner