Quickly emptying a ZFS

Ira Cooper ira at wakeful.net
Fri Mar 21 21:21:04 UTC 2014


Personally, I'd just create an extra subvolume if I did that...

tank/prop/real_vol

Put all the properties you want in prop and have real_vol inherit them.
 (Change names to suit taste.)  Destroy/recreate real_vol...

-Ira


On Sat, Mar 22, 2014 at 2:40 AM, Jens Schweikhardt <
schweikh at schweikhardt.net> wrote:

> hello, world\n
>
> If I need to quickly delete all files on a file system, with UFS I can
> simply use newfs. Is there something equivalent for ZFS that is neither
> of
>
>   * cd mount-point; rm -rf * (not really quick, needs messing with chflags)
>   * zfs destroy dataset; zfs create dataset (loses all properties set)
>
> I.e. the task is to quickly nuke all files without losing the dataset
> properties. Is there maybe a way to save and restore the properties?
>
>
> Regards,
>
>         Jens
> --
> Jens Schweikhardt http://www.schweikhardt.net/
> SIGSIG -- signature too long (core dumped)
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>


More information about the freebsd-fs mailing list