Skip to content

Commit

Permalink
Merge pull request ceph#18710 from com6056/wip-doc-fix-cephfs-snap-dir
Browse files Browse the repository at this point in the history
doc: Fixes the name of the CephFS snapshot directory.

Reviewed-by: Greg Farnum <[email protected]>
  • Loading branch information
gregsfortytwo authored Nov 21, 2017
2 parents 7664dce + e2ae48d commit ed5f565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/dev/cephfs-snapshots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Important Data Structures
Creating a snapshot
-------------------
To make a snapshot on directory "/1/2/3/foo", the client invokes "mkdir" on
"/1/2/3/foo/.snaps" directory. This is transmitted to the MDS Server as a
"/1/2/3/foo/.snap" directory. This is transmitted to the MDS Server as a
CEPH_MDS_OP_MKSNAP-tagged `MClientRequest`, and initially handled in
Server::handle_client_mksnap(). It allocates a `snapid` from the `SnapServer`,
projects a new inode with the new SnapRealm, and commits it to the MDLog as
Expand Down Expand Up @@ -89,7 +89,7 @@ pinned and in the journal.

Deleting snapshots
------------------
Snapshots are deleted by invoking "rmdir" on the ".snaps" directory they are
Snapshots are deleted by invoking "rmdir" on the ".snap" directory they are
rooted in. (Attempts to delete a directory which roots snapshots *will fail*;
you must delete the snapshots first.) Once deleted, they are entered into the
`OSDMap` list of deleted snapshots and the file data is removed by the OSDs.
Expand Down

0 comments on commit ed5f565

Please sign in to comment.