Discussion:
[zfs-discuss] Does zfs clone+(..work..)+destroy leave original unaffected?
Michael Kjörling
2015-02-18 20:08:20 UTC
Permalink
I'm just hoping to have my understanding confirmed. Let's say I have a
file system:

# zfs create tank/fs

I then copy some files into it...

# cp /usr/include/* /tank/fs/

I then create a clone of the file system:

# zfs snapshot tank/***@pointintime
# zfs clone tank/***@pointintime tank/fsclone

and make some changes to the clone...

# rm /tank/fsclone/g*

If I now destroy the clone and the snapshot that was used to create
the clone

# zfs destroy tank/fsclone
# zfs destroy tank/***@pointintime

then the original file system (tank/fs) is unaffected by all my
mucking around with the clone; correct?
--
Michael Kjörling • https://michael.kjorling.se • ***@kjorling.se
OpenPGP B501AC6429EF4514 https://michael.kjorling.se/public-keys/pgp
“People who think they know everything really annoy
those of us who know we don’t.” (Bjarne Stroustrup)

To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+***@zfsonlinux.org.
Kash Pande
2015-02-18 20:11:40 UTC
Permalink
Correct

To unsubscribe from this group and stop receiving emails from it, send an email to zfs-discuss+***@zfsonlinux.org.
Loading...