From nobody Sat Apr 16 17:35:00 2022 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 045675D31DC; Sat, 16 Apr 2022 17:35:20 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KggMC0F8nz4glq; Sat, 16 Apr 2022 17:35:19 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: by mail-qk1-x72f.google.com with SMTP id e10so8654836qka.6; Sat, 16 Apr 2022 10:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HP5PasgGQbzzrashq1dEqKENbn43mG5cgWA0aDrFJvo=; b=eNObM+EqTfUbvxxCgT3UtYDRILEbjTf42NH6zWNu+XnjydOXgrwzKa/LN8F0U7nSD2 ozg1/AaFwzfyYudE1GLsIl+MS0fTycd39DKXdMFHAK9U9lo5B0ETEaEYW+FyjzNG+qn2 wRkMlYsE1LDHXOH3KDhAZASmybKeybvJ9aE7NeGuqyby63yoiyqHcCCyjCpWGwVlt6Ow Y51R3w4917ULNtc/BlRqCrinXJ2gFigBb8JCUEizUWDx3yYrBbOPDqn98bZCDYoNapP1 mbF2zwDZiv8xcwAT4a0LTibbE2nnRLjRVzoEhIeHEl8ar1U5Wz2bKZIMgGk1YIOYBpkg 2/dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HP5PasgGQbzzrashq1dEqKENbn43mG5cgWA0aDrFJvo=; b=1Elc5+vhuifCIhSTW6mlVN67floUk2A3TColiRkEcfjKqrmM+uFKYi9+xdp8LqnObC Z+pV3fG/5+4lQmFj+hD5KF3xK3sa5RPp5SwczRFPOUkFHVUZ0zjK0urLbxR3Z9S6EIsc pEkvgW2b9SPDLUbgfifWC79iCdHAyvcZYmbaR1bp8Q46Q8Rn0uE9GElVjKCx0J3cY4Fh DPhnlqloZnnMgwBum39ZWYJDAVFlwauojyDjtc8Iu/f6ZuWC+OVQgp7rB+gunaIJjguZ JXjbJTIyEWtjPUchvA+d+49+8p/T14Uzhekib7lwteNOZ9xRgXes5LaoVwlfo59WPVyd nxHg== X-Gm-Message-State: AOAM533DT43WwoJbIhiAPCOQpgCYRJmu5EKpTP/bVxmYdnWZ2q4Zydxd /Hv2gGObj1Wp45OnAGokLhYM2kjetAdRMgrIdS8= X-Google-Smtp-Source: ABdhPJxNJfRPaHbgrCvCd0HGhLq3MOw7pzHIuvO7H4oYXIMMGjgBL51fJnHBMavGcnUqXcldoZ6m1Sb63o4Rb23OaI0= X-Received: by 2002:a05:620a:2586:b0:680:f3c1:9d4a with SMTP id x6-20020a05620a258600b00680f3c19d4amr2496105qko.619.1650130511303; Sat, 16 Apr 2022 10:35:11 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 References: <202204161625.23GGPn6j049380@fire.js.berklix.net> In-Reply-To: <202204161625.23GGPn6j049380@fire.js.berklix.net> From: Sami Halabi Date: Sat, 16 Apr 2022 20:35:00 +0300 Message-ID: Subject: Re: recover deleted file To: "Julian H. Stacey" , freebsd-fs@freebsd.org Cc: FreeBSD Current , mckusick@mckusick.com Content-Type: multipart/alternative; boundary="000000000000f5978305dcc8f272" X-Rspamd-Queue-Id: 4KggMC0F8nz4glq X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=eNObM+Eq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sodynet1@gmail.com designates 2607:f8b0:4864:20::72f as permitted sender) smtp.mailfrom=sodynet1@gmail.com X-Spamd-Result: default: False [-2.15 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_MEDIUM(0.85)[0.845]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72f:from]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MLMMJ_DEST(0.00)[freebsd-fs,freebsd-current]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --000000000000f5978305dcc8f272 Content-Type: text/plain; charset="UTF-8" Hi, thanks for your response. Would someone from the foundation step in and put it in GSOC ideas? kirk@ - would it be possible for you to do it ? :) Sami On Sat, Apr 16, 2022 at 7:26 PM Julian H. Stacey wrote: > > okay... > > all seems very time consuming operations!! > > Yes > > > There should be an os "undelete" as happens in NTFS for example.. which > is > > very fast and can be done also with extra tools without a hassle. > > A WIBNI (Wouldnt It Be Nice If) for Unix FS's for as long as I can remember > (decades) but no one's ever done it. > > Ways to get it done: > Get it listed as a Google Summer Of Code project for FreeBSD, Or > > Get your employer to help pay for it, eg chip in with other BSD > user companies to pay some money to FreeBSD Foundation, & get > them to pay for it to be developed. > > Or hire are an individual freelance BSD Consultant to do it, > There's a global index here http://berklix.com/consultants/ > > & a mail list that's moderated jobs@freebsd > > Some author(s) of BSD FFS are on list fs@, Kirk is one name springs > to mind ? Some freelancers on fs@ I recall. > > IMO Would be a fun job if funded :-) > > > > > for now I got backup from last day .. caused me a lot of troubles, not > say > > legal ones, but I passed the point to hold the machine down. > > > > any advice? > > > > Maybe UFS developer would do a rework so latest deleted inodes would put > in > > a "recycle bin" (maybe with a sysctl or whatever) for say one day (or any > > other configurable sysctl) and allow to recover quickly or "force delete > / > > empty recycle bin" , rather than delete and give back space immediately > for > > use and destroy possibility to restore. > > > > my 2 cents. > > > > Sami > > Cheers, > -- > Julian Stacey http://berklix.com/jhs/ http://StolenVotes.UK > Kill / remove Putin to stop him killing & provoking world war. > -- Sami Halabi Information Systems Engineer NMS Projects Expert, FreeBSD SysAdmin Expert Asterisk Expert --000000000000f5978305dcc8f272 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
thanks for your response.

Would someone from the foundation step in and put it in GSOC ideas?
<= div>
kirk@ - would it be possible for you to do it ? :)
=

Sami


On Sat, Apr 16, 2022 at 7:26 P= M Julian H. Stacey <jhs@berklix.com> wrote:
&g= t; okay...
> all seems very time consuming operations!!

Yes

> There should be an os "undelete" as happens in NTFS for exam= ple.. which is
> very fast and can be done also with extra tools without a hassle.

A WIBNI (Wouldnt It Be Nice If) for Unix FS's for as long as I can reme= mber
(decades) but no one's ever done it.

Ways to get it done:
=C2=A0 Get it listed as a Google Summer Of Code project for FreeBSD, Or

=C2=A0 Get your employer to help pay for it, eg chip in with other BSD
=C2=A0 user companies to pay some money to FreeBSD Foundation, & get =C2=A0 them to pay for it to be developed.

=C2=A0 Or hire are an individual freelance BSD Consultant to do it,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 There's a global index here
http://be= rklix.com/consultants/

=C2=A0 & a mail list that's moderated jobs@freebsd

=C2=A0 Some author(s) of BSD FFS are on list fs@, Kirk is one name springs<= br> =C2=A0 to mind ? Some freelancers on fs@ I recall.

=C2=A0 IMO Would be a fun job if funded :-)

>
> for now I got backup from last day .. caused me a lot of troubles, not= say
> legal ones, but I passed the point to hold the machine down.
>
> any advice?
>
> Maybe UFS developer would do a rework so latest deleted inodes would p= ut in
> a "recycle bin" (maybe with a sysctl or whatever) for say on= e day (or any
> other configurable sysctl) and allow to recover quickly or "force= delete /
> empty recycle bin" , rather than delete and give back space immed= iately for
> use and destroy possibility to restore.
>
> my 2 cents.
>
> Sami

Cheers,
--
Julian Stacey=C2=A0 http://berklix.com/jhs/ http://StolenVotes.UK=C2=A0 <= br> Kill / remove Putin to stop him killing & provoking world war.


--
Sami Hala= bi
Information Systems Engineer
NMS Projects Expert,=C2=A0FreeBSD SysAdmin Expert
Aste= risk Expert
--000000000000f5978305dcc8f272--