From 8d70ee345b149db3aa8b541b65c5d6ebf17f7532 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 17 Jan 2022 15:59:21 +0000 Subject: [PATCH] commit 5cdaaafcfd5e7146fb33670936a9d0c4c6ea7448 Merge: 4a48708b 7803ad5f Author: Michael Barz Date: Mon Jan 17 16:56:01 2022 +0100 Merge pull request #2973 from owncloud/update-storage-driver-docs [docs-only] add known kernel limits, deprecate owncloud driver --- extensions/storage/storagedrivers.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/extensions/storage/storagedrivers.md b/extensions/storage/storagedrivers.md index 375ffa33048..fb83e21ca8b 100644 --- a/extensions/storage/storagedrivers.md +++ b/extensions/storage/storagedrivers.md @@ -88,7 +88,16 @@ The oCIS storage driver is the default storage driver. It decomposes the metadat The S3NG storage driver uses the same metadata layout on a POSIX storage as the oCIS driver, but it uses S3 as the blob storage. -TODO add list of capabilities / tradeoffs +TODO add list of capabilities / tradeoffs + +#### Related Kernel limits +The decomposedfs currently stores CS3 grants in extended attributes. When listing extended attributes the result is currently limited to 64kB. Assuming a 20 byte uuid a grant has ~40 bytes. Which would limit the number of extended attributes to ~1630 entries or ~1600 shares. This can be extended by moving the grants from extended attributes into a dedicated file. + +From [Wikipedia on Extended file attributes](https://en.wikipedia.org/wiki/Extended_file_attributes#Linux): +> The Linux kernel allows extended attribute to have names of up to 255 bytes and values of up to 64 KiB,[14] as do XFS and ReiserFS, but ext2/3/4 and btrfs impose much smaller limits, requiring all the attributes (names and values) of one file to fit in one "filesystem block" (usually 4 KiB). Per POSIX.1e,[citation needed] the names are required to start with one of security, system, trusted, and user plus a period. This defines the four namespaces of extended attributes.[15] + +And from the [man page on listxattr](https://www.man7.org/linux/man-pages/man2/listxattr.2.html): +> As noted in xattr(7), the VFS imposes a limit of 64 kB on the size of the extended attribute name list returned by listxattr(7). If the total size of attribute names attached to a file exceeds this limit, it is no longer possible to retrieve the list of attribute names. ### Local Storage Driver @@ -127,6 +136,11 @@ To provide the other storage aspects we plan to implement a FUSE overlay filesys ### OwnCloud Storage Driver +{{< hint info >}} +**Deprecated** +The owncloud storage driver was used for testing purposes early on. For a parallel deployment focus has shifted to the owncloudsql. +{{< /hint >}} + This is the current default storage driver. While it implements the file tree (using redis, including id based lookup), ETag propagation, trash, versions and sharing (including expiry) using the data directory layout of ownCloud 10 it has [known limitations](https://github.com/owncloud/core/issues/28095) that cannot be fixed without changing the actual layout on disk. To setup it up properly in a distributed fashion, the storage-home and the storage-oc need to share the same underlying FS. Their "data" counterparts also need access to the same shared FS.