Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2020 13:23:13 +0000
From:      Mark Blackman <mark@exonetric.com>
To:        Jos Chrispijn <bsduser@cloudzeeland.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rm | Cleaning up recycle bin
Message-ID:  <BC305B20-92FF-461A-99FD-9FEB815F380F@exonetric.com>
In-Reply-To: <3d81f318-b162-0b9d-ef97-0acce8f2de32@cloudzeeland.nl>
References:  <a589bf69-a53b-a732-08ff-74e09b723bbd@cloudzeeland.nl> <CFDA143D-F27C-4BC7-B619-A36462F7A378@exonetric.com> <3d81f318-b162-0b9d-ef97-0acce8f2de32@cloudzeeland.nl>

next in thread | previous in thread | raw e-mail | index | archive | help



> On 23 Feb 2020, at 13:16, Jos Chrispijn <bsduser@cloudzeeland.nl> wrote:
> 
> I see; is that ZFS behavior or goes that for all BSD file systems?

All POSIX conformant file systems, including ZFS. If you look at the man page, this behaviour is in the summary

NAME
     rm, unlink - remove directory entries

The *directory entry* referencing that chain of blocks is removed. The chain of blocks remains and can be overwritten at any time after the directory entry is removed.

- Mark


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BC305B20-92FF-461A-99FD-9FEB815F380F>