Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2014 02:50:37 +0530
From:      Ira Cooper <ira@wakeful.net>
To:        Jens Schweikhardt <schweikh@schweikhardt.net>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Quickly emptying a ZFS
Message-ID:  <CAAPGDw%2BBULRtOoqTbn-89n5bR_uG2r0mWS=Ew2=Yihjqb1ouHQ@mail.gmail.com>
In-Reply-To: <20140321211020.GB1859@schweikhardt.net>
References:  <20140321211020.GB1859@schweikhardt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAPGDw%2BBULRtOoqTbn-89n5bR_uG2r0mWS=Ew2=Yihjqb1ouHQ>