Skip to content

Commit 230bd8b

Browse files
Luís Henriquesidryomov
authored andcommitted
ceph: update documentation regarding snapshot naming limitations
Signed-off-by: Luís Henriques <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Reviewed-by: Milind Changire <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent abd4fc7 commit 230bd8b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/filesystems/ceph.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ a snapshot on any subdirectory (and its nested contents) in the
5757
system. Snapshot creation and deletion are as simple as 'mkdir
5858
.snap/foo' and 'rmdir .snap/foo'.
5959

60+
Snapshot names have two limitations:
61+
62+
* They can not start with an underscore ('_'), as these names are reserved
63+
for internal usage by the MDS.
64+
* They can not exceed 240 characters in size. This is because the MDS makes
65+
use of long snapshot names internally, which follow the format:
66+
`_<SNAPSHOT-NAME>_<INODE-NUMBER>`. Since filenames in general can't have
67+
more than 255 characters, and `<node-id>` takes 13 characters, the long
68+
snapshot names can take as much as 255 - 1 - 1 - 13 = 240.
69+
6070
Ceph also provides some recursive accounting on directories for nested
6171
files and bytes. That is, a 'getfattr -d foo' on any directory in the
6272
system will reveal the total number of nested regular files and

0 commit comments

Comments
 (0)