Print this page
2882 implement libzfs_core
2883 changing "canmount" property to "on" should not always remount dataset
2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Chris Siden <christopher.siden@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Bill Pijewski <wdp@joyent.com>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>


  22 .fi
  23 
  24 .LP
  25 .nf
  26 \fBzfs\fR \fBcreate\fR [\fB-ps\fR] [\fB-b\fR \fIblocksize\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fB-V\fR \fIsize\fR \fIvolume\fR
  27 .fi
  28 
  29 .LP
  30 .nf
  31 \fBzfs\fR \fBdestroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
  32 .fi
  33 
  34 .LP
  35 .nf
  36 \fBzfs\fR \fBdestroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,...]
  37 .fi
  38 
  39 .LP
  40 .nf
  41 \fBzfs\fR \fBsnapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
  42       \fIfilesystem@snapname\fR|\fIvolume@snapname\fR
  43 .fi
  44 
  45 .LP
  46 .nf
  47 \fBzfs\fR \fBrollback\fR [\fB-rRf\fR] \fIsnapshot\fR
  48 .fi
  49 
  50 .LP
  51 .nf
  52 \fBzfs\fR \fBclone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR
  53 .fi
  54 
  55 .LP
  56 .nf
  57 \fBzfs\fR \fBpromote\fR \fIclone-filesystem\fR
  58 .fi
  59 
  60 .LP
  61 .nf
  62 \fBzfs\fR \fBrename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR


1820 .na
1821 \fB\fB-v\fR\fR
1822 .ad
1823 .sp .6
1824 .RS 4n
1825 Print verbose information about the deleted data.
1826 .RE
1827 
1828 .sp
1829 Extreme care should be taken when applying either the \fB-r\fR or the \fB-f\fR
1830 options, as they can destroy large portions of a pool and cause unexpected
1831 behavior for mounted file systems in use.
1832 .RE
1833 
1834 .RE
1835 
1836 .sp
1837 .ne 2
1838 .na
1839 \fB\fBzfs snapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ...
1840 \fIfilesystem@snapname\fR|\fIvolume@snapname\fR\fR
1841 .ad
1842 .sp .6
1843 .RS 4n
1844 Creates a snapshot with the given name. All previous modifications by
1845 successful system calls to the file system are part of the snapshot. See the
1846 "Snapshots" section for details.

1847 .sp
1848 .ne 2
1849 .na
1850 \fB\fB-r\fR\fR
1851 .ad
1852 .sp .6
1853 .RS 4n
1854 Recursively create snapshots of all descendent datasets. Snapshots are taken
1855 atomically, so that all recursive snapshots correspond to the same moment in
1856 time.
1857 .RE
1858 
1859 .sp
1860 .ne 2
1861 .na
1862 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1863 .ad
1864 .sp .6
1865 .RS 4n
1866 Sets the specified property; see \fBzfs create\fR for details.
1867 .RE
1868 
1869 .RE
1870 
1871 .sp
1872 .ne 2
1873 .na
1874 \fB\fBzfs rollback\fR [\fB-rRf\fR] \fIsnapshot\fR\fR
1875 .ad
1876 .sp .6




  22 .fi
  23 
  24 .LP
  25 .nf
  26 \fBzfs\fR \fBcreate\fR [\fB-ps\fR] [\fB-b\fR \fIblocksize\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fB-V\fR \fIsize\fR \fIvolume\fR
  27 .fi
  28 
  29 .LP
  30 .nf
  31 \fBzfs\fR \fBdestroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
  32 .fi
  33 
  34 .LP
  35 .nf
  36 \fBzfs\fR \fBdestroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,...]
  37 .fi
  38 
  39 .LP
  40 .nf
  41 \fBzfs\fR \fBsnapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
  42       \fIfilesystem@snapname\fR|\fIvolume@snapname\fR...
  43 .fi
  44 
  45 .LP
  46 .nf
  47 \fBzfs\fR \fBrollback\fR [\fB-rRf\fR] \fIsnapshot\fR
  48 .fi
  49 
  50 .LP
  51 .nf
  52 \fBzfs\fR \fBclone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR
  53 .fi
  54 
  55 .LP
  56 .nf
  57 \fBzfs\fR \fBpromote\fR \fIclone-filesystem\fR
  58 .fi
  59 
  60 .LP
  61 .nf
  62 \fBzfs\fR \fBrename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR


1820 .na
1821 \fB\fB-v\fR\fR
1822 .ad
1823 .sp .6
1824 .RS 4n
1825 Print verbose information about the deleted data.
1826 .RE
1827 
1828 .sp
1829 Extreme care should be taken when applying either the \fB-r\fR or the \fB-f\fR
1830 options, as they can destroy large portions of a pool and cause unexpected
1831 behavior for mounted file systems in use.
1832 .RE
1833 
1834 .RE
1835 
1836 .sp
1837 .ne 2
1838 .na
1839 \fB\fBzfs snapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ...
1840 \fIfilesystem@snapname\fR|\fIvolume@snapname\fR\fR...
1841 .ad
1842 .sp .6
1843 .RS 4n
1844 Creates snapshots with the given names. All previous modifications by
1845 successful system calls to the file system are part of the snapshots.
1846 Snapshots are taken atomically, so that all snapshots correspond to the same
1847 moment in time. See the "Snapshots" section for details.
1848 .sp
1849 .ne 2
1850 .na
1851 \fB\fB-r\fR\fR
1852 .ad
1853 .sp .6
1854 .RS 4n
1855 Recursively create snapshots of all descendent datasets


1856 .RE
1857 
1858 .sp
1859 .ne 2
1860 .na
1861 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1862 .ad
1863 .sp .6
1864 .RS 4n
1865 Sets the specified property; see \fBzfs create\fR for details.
1866 .RE
1867 
1868 .RE
1869 
1870 .sp
1871 .ne 2
1872 .na
1873 \fB\fBzfs rollback\fR [\fB-rRf\fR] \fIsnapshot\fR\fR
1874 .ad
1875 .sp .6