From owner-freebsd-questions@freebsd.org Wed Aug 23 23:59:16 2017 Return-Path: Delivered-To: freebsd-questions@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 A70D0DF146C for ; Wed, 23 Aug 2017 23:59:16 +0000 (UTC) (envelope-from greg.marsh@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (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 40E9D1EDD for ; Wed, 23 Aug 2017 23:59:16 +0000 (UTC) (envelope-from greg.marsh@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id x128so9328466wmg.1 for ; Wed, 23 Aug 2017 16:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LFS+ER7UPIETc3LhQ8P5sFpeAi41EbXgZuKlS1L66Qs=; b=KA3LVwKK+vtMp75PScYdVvmPDYFdixYZy8GmK5S4EYXmcBYTAf82YR3A5nk1NE8n15 0O84svSQIhF9d3FR4/cHmC6PNC1tNfSIT6SvzsV5ygP036XfOaep3i8a6j6klqp3kGnR bVvmUZxyN2KuxFtuzBIR5DjmGX1W3UnhFqSEPqeSSJjHGu9lkylb4xegJHtxj6ZkmRbt jM3EYuQ/VKh060hv7bbt3thH/P81XNr908eqHwHEhntM7KvshDuNgGfDqDT1yqsZs3iF 0u7JYKLQstpWi78TOq8pFF2BFbr8ulK4g4/D5xGTIMruetwQBxq1vkZMbQ1ch08OHMxS 26/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LFS+ER7UPIETc3LhQ8P5sFpeAi41EbXgZuKlS1L66Qs=; b=RXwnNZgnJO82y5+Y8uWM6BpcGmYffPiE8n5R2Y4wVQRq/IGoT9KBMIDOc2mueSQThI +dTnkTL32ULCjWFh4c7Xn38DPPAmjMkiYTWTT8FKTiYkQDN+IXJGWECwdwcHJNWUkXVX QRdiSrnb/dYPYRe7CvPgXItmh//LOh5moMuQ2s9NZwuUvJaAH1DozoZqivtFAW04+9lW Ug1gclEF3An5XxaVcPq8qHUtVpf+vn8sqvSqy7joYZfbn4zcBwYwJ7w9lO2VeJPsW6+u sMqAxUvqPw6/kCvkz1Dy+GJAcZVEpRS7JLCnML+p+HCIYwzkVT7FJ6yHMsFEZt9LfgNU KzFQ== X-Gm-Message-State: AHYfb5hSnbWYK/FKMvCyEpucBCpMLNqrZx4ItPVDv4TwmM5jTf4pZdQV JsSC/CZdvUYhb5M28x6B44rUKw6G3A== X-Received: by 10.28.149.9 with SMTP id x9mr2715381wmd.100.1503532754429; Wed, 23 Aug 2017 16:59:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.178.10 with HTTP; Wed, 23 Aug 2017 16:58:54 -0700 (PDT) From: Greg Marsh Date: Wed, 23 Aug 2017 19:58:54 -0400 Message-ID: Subject: ZFS question re: deletion during compression To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2017 23:59:16 -0000 Hello & good day to anyone reading this :) I have a question about how ZFS should react to a very particular situation. This is not life or death nor costing anyone money. I'm just curious. I was gzipping a 1TB file. I accidentally rm'd it as I thought the gzip had finished - it had been about 8 hours. I didn't notice the gzip process still going until after I attempted to delete the file (multiple xterms for the lose). After a couple minutes, the free space hadn't reflected the file deletion. It was only then I realised that gzip was still churning. It continued running for a few more hours. Eventually gzip did finish and left me with a 416gb file, roughly the size I expected. The initial file being a disk image, half of which was empty space. I'm curious if ZFS didn't allow the file to be deleted while gzip was working on it. Merely removing it from the directory listing. Meaning my compressed file is fine. I still have the original file and will take the time to be more careful about my backup when I redo it. I'm just curious as to if ZFS was protecting me from my own impetuousness. I am unzipping the first attempt to see what it looks like, but I don't trust the file regardless. If you've read this far, thank you very much for your time and consideration. If you are a FreeBSD and/or ZFS developer reading this, you have my eternal gratitude and awe towards your generosity and skills. I adore what FreeBSD is capable of and how well it works. I've been a 'digital janitor' for more than half of my life and want people to know just how much I appreciate their expertise. Cheers, Greg