Date: Fri, 21 Mar 2014 22:10:20 +0100 From: Jens Schweikhardt <schweikh@schweikhardt.net> To: freebsd-fs@freebsd.org Subject: Quickly emptying a ZFS Message-ID: <20140321211020.GB1859@schweikhardt.net>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140321211020.GB1859>