Date: Wed, 23 Aug 2017 19:58:54 -0400 From: Greg Marsh <greg.marsh@gmail.com> To: freebsd-questions@freebsd.org Subject: ZFS question re: deletion during compression Message-ID: <CAHtBMo76EwM-Q1Qr%2BU8VMH6kDsUkc%2Bcb9mxARSYco=XzNxT9-Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHtBMo76EwM-Q1Qr%2BU8VMH6kDsUkc%2Bcb9mxARSYco=XzNxT9-Q>