From owner-freebsd-fs@freebsd.org Sat Nov 28 02:46:50 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17AAFA3BC40 for ; Sat, 28 Nov 2015 02:46:50 +0000 (UTC) (envelope-from alex.burlyga.ietf@gmail.com) Received: from mail-vk0-x22c.google.com (mail-vk0-x22c.google.com [IPv6:2607:f8b0:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC03F1EF4 for ; Sat, 28 Nov 2015 02:46:49 +0000 (UTC) (envelope-from alex.burlyga.ietf@gmail.com) Received: by vkbs1 with SMTP id s1so76683699vkb.1 for ; Fri, 27 Nov 2015 18:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2rPmF1sRZAQNFZpB0tIcBuRRvudJRGqRgZbBCjjLgPI=; b=DKzoo1UbXJRnd7J6wAui61SQMw+CgOT5mfjepY/PqZMQnt8S5nVjw4ZgNI0XONGJ+X Ov/pJKgbAOfQbggFG8pHlt1AqhY6hFLM8r+GnYiNEZEhxR3/8nwDcndhVv/ge2jtky2s KHjHteIyWw3gB8JsaFt0CJ5ZUbnsSlKmhLWq0r6vyvXUaTdsgFlfn1eJwqzAfgfrI/y/ vSkdjsRxO9jGoF/YyyjoeHZLF8HA+eZWB2QTPS0pPTR+sLNRItDU32fVMS/rwJLa4y2Z 4gcCfRpJFDZ9/Nm3d99ZEIxOEu8d4GCv1ZoO4zGj3O5Ir0TJRJsJBbT5EAF2UFEbY9s1 sprA== MIME-Version: 1.0 X-Received: by 10.31.135.2 with SMTP id j2mr43760442vkd.91.1448678808565; Fri, 27 Nov 2015 18:46:48 -0800 (PST) Received: by 10.103.108.3 with HTTP; Fri, 27 Nov 2015 18:46:48 -0800 (PST) Received: by 10.103.108.3 with HTTP; Fri, 27 Nov 2015 18:46:48 -0800 (PST) In-Reply-To: <5658E498.9070700@aldan.algebra.com> References: <5658E498.9070700@aldan.algebra.com> Date: Fri, 27 Nov 2015 18:46:48 -0800 Message-ID: Subject: Re: Recovering an unlink-ed, but still opened file From: "alex.burlyga.ietf alex.burlyga.ietf" To: "Mikhail T." Cc: freebsd-fs Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2015 02:46:50 -0000 If you know which process and which file descriptor, should be able to just copy from /proc//fd/ to a file. I would try that first. Alex. On Nov 27, 2015 16:18, "Mikhail T." wrote: > A deleted file, that's still opened by a process is "there" on the > filesystem. > > Is there any way -- with an existing command-line utility or a new > program using an existing API -- to give the still-valid inode a name > again? Wouldn't that be a wonderful feature to have? Thanks! > > -mi > > _______________________________________________ > 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" >