From nobody Sat Apr 16 16:25:49 2022 X-Original-To: freebsd-current@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 8E1AADB81FB for ; Sat, 16 Apr 2022 16:26:11 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "slim.berklix.org", Issuer "slim.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KgdqQ37ppz4S7V for ; Sat, 16 Apr 2022 16:26:10 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p4fe6d03e.dip0.t-ipconnect.de [79.230.208.62]) (authenticated bits=128) by slim.berklix.org (8.15.2/8.15.2) with ESMTPSA id 23GGQ5IW064780 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Apr 2022 18:26:09 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id 23GGQ4ph032567; Sat, 16 Apr 2022 18:26:04 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id 23GGPn6j049380; Sat, 16 Apr 2022 18:25:59 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <202204161625.23GGPn6j049380@fire.js.berklix.net> To: Sami Halabi cc: FreeBSD Current Subject: Re: recover deleted file From: "Julian H. Stacey" Organization: http://berklix.com/jhs/ User-agent: EXMH on FreeBSD http://berklix.com/free/ X-From: http://www.berklix.org/~jhs/ In-reply-to: Your message "Sat, 16 Apr 2022 18:01:54 +0300." Date: Sat, 16 Apr 2022 18:25:49 +0200 X-Rspamd-Queue-Id: 4KgdqQ37ppz4S7V X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jhs@berklix.com has no SPF policy when checking 94.185.90.68) smtp.mailfrom=jhs@berklix.com X-Spamd-Result: default: False [-0.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[jhs]; FROM_HAS_DN(0.00)[]; R_SPF_NA(0.00)[no SPF record]; NEURAL_HAM_MEDIUM(-0.46)[-0.458]; NEURAL_HAM_LONG(-0.69)[-0.692]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[berklix.com]; AUTH_NA(1.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.65)[-0.651]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-current]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:33824, ipnet:94.185.88.0/22, country:DE]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[79.230.208.62:received] X-ThisMailContainsUnwantedMimeParts: N List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org > 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.