Skip to content

Commit

Permalink
README.md, errors.go: CephFS now supports fscrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed Nov 3, 2023
1 parent 4386958 commit 6c5fc57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ filesystem encryption API. Currently, the filesystems that support this are:
contain `CONFIG_FS_ENCRYPTION=y` (for kernels v5.1+) or
`CONFIG_UBIFS_FS_ENCRYPTION=y` (for older kernels).

* CephFS, with upstream kernel v6.6 or later. The kernel configuration must
contain `CONFIG_FS_ENCRYPTION=y`.

* [Lustre](https://www.lustre.org/), with Lustre v2.14.0 or later. For details,
see the Lustre documentation. Please note that Lustre is not part of the
upstream Linux kernel, and its encryption implementation has not been reviewed
Expand Down
4 changes: 4 additions & 0 deletions cmd/fscrypt/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ func getErrorSuggestions(err error) string {
if !util.IsKernelVersionAtLeast(4, 10) {
return "ubifs encryption requires kernel v4.10 or later."
}
case "ceph":
if !util.IsKernelVersionAtLeast(6, 6) {
return "CephFS encryption requires kernel v6.6 or later."
}
}
return ""
case *filesystem.ErrNoCreatePermission:
Expand Down

0 comments on commit 6c5fc57

Please sign in to comment.