bcachefs: casefolding.rst fixes
PATCH 1/4 Documentation: bcachefs: casefolding: Do not italicize NUL
In reply to Bagas SanjayaSphinx reports htmldocs warning:
Documentation/filesystems/bcachefs/casefolding.rst:36: WARNING: Inline interpreted text or phrase reference start-string without end-string. [docutils]
That's because NUL word is italicized but it is written in plural form instead (NULs). Sphinx, however, doesn't tip over when the italicized word in this fashion is followed by punctuation instead.
Do not italicize the word to keep Sphinx happy.
--- Documentation/filesystems/bcachefs/casefolding.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/filesystems/bcachefs/casefolding.rst +3 -2
@@ -33,8 +33,9 @@ The structure looks like this: Regular: [dirent data][regular name][nul][nul]... Casefolded: [dirent data][reg len][cf len][regular name][casefolded name][nul][nul]... -(Do note, the number of `NUL`s here is merely for illustration, they count can vary - per-key, and they may not even be present if the key is aligned to `sizeof(u64)`.) +(Do note, the number of NULs here is merely for illustration; their count can +vary per-key, and they may not even be present if the key is aligned to +`sizeof(u64)`.) This is efficient as it means that for all file lookups that require casefolding, it has identical performance to a regular lookup:
Signature · 1 line
An old man doll... just what I always wanted! - Clara
cover bcachefs: casefolding.rst fixes
Hi Kent, hi Joshua,
Here are fixes for casefolding docs. Patches [1/4], [2/4], and [4/4] fixes htmldocs warnings reported in linux-next.
Enjoy!
Bagas Sanjaya (4):
Documentation: bcachefs: casefolding: Do not italicize NUL
Documentation: bcachefs: casefolding: Fix dentry/dcache considerations
section
Documentation: bcachefs: casefolding: Use bullet list for dirent
structure
Documentation: bcachefs: Add casefolding toctree entry
Documentation/filesystems/bcachefs/casefolding.rst | 13 ++++++++----- Documentation/filesystems/bcachefs/index.rst | 1 + 2 files changed, 9 insertions(+), 5 deletions(-)
base-commit: 77308424ba26e1b41a7db5d4eae121841a707c05
Signature · 1 line
An old man doll... just what I always wanted! - Clara
PATCH 3/4 Documentation: bcachefs: casefolding: Use bullet list for dirent structure
The doc lists dirent structure for both regular and casefolded names, yet it is written (and rendered) as long paragraph instead.
Write the structure list as bullet list.
--- Documentation/filesystems/bcachefs/casefolding.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/filesystems/bcachefs/casefolding.rst +2 -2
@@ -30,8 +30,8 @@ name with the regular name in the dirent. The structure looks like this: -Regular: [dirent data][regular name][nul][nul]... -Casefolded: [dirent data][reg len][cf len][regular name][casefolded name][nul][nul]... +* Regular: [dirent data][regular name][nul][nul]... +* Casefolded: [dirent data][reg len][cf len][regular name][casefolded name][nul][nul]... (Do note, the number of NULs here is merely for illustration; their count can vary per-key, and they may not even be present if the key is aligned to
Signature · 1 line
An old man doll... just what I always wanted! - Clara
PATCH 4/4 Documentation: bcachefs: Add casefolding toctree entry
In reply to Bagas SanjayaSphinx reports htmldocs toctree warning:
Documentation/filesystems/bcachefs/casefolding.rst: WARNING: document isn't included in any toctree
Fix the warning by adding casefolding documentation entry to bcachefs toctree.
--- Documentation/filesystems/bcachefs/index.rst | 1 + 1 file changed, 1 insertion(+)
Documentation/filesystems/bcachefs/index.rst +1 -0
@@ -10,4 +10,5 @@ bcachefs Documentation CodingStyle SubmittingPatches + casefolding errorcodes
Signature · 1 line
An old man doll... just what I always wanted! - Clara
PATCH 2/4 Documentation: bcachefs: casefolding: Fix dentry/dcache considerations section
In reply to Bagas SanjayaSphinx reports htmldocs warnings on dentry/dcache section:
Documentation/filesystems/bcachefs/casefolding.rst:75: WARNING: Title underline too short.
dentry/dcache considerations
--------- [docutils]Documentation/filesystems/bcachefs/casefolding.rst:84: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils]
Fix the section by:
* Extending the section underline to match the section title length;
* Separating problem list from surrounding paragraphs.
--- Documentation/filesystems/bcachefs/casefolding.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/filesystems/bcachefs/casefolding.rst +3 -1
@@ -73,15 +73,17 @@ any encodings than a single UTF-8 version. When future encodings are desirable, they will be added trivially using the opts mechanism. dentry/dcache considerations ---------- +---------------------------- Currently, in casefolded directories, bcachefs (like other filesystems) will not cache negative dentry's. This is because currently doing so presents a problem in the following scenario: + - Lookup file "blAH" in a casefolded directory - Creation of file "BLAH" in a casefolded directory - Lookup file "blAH" in a casefolded directory + This would fail if negative dentry's were cached. This is slightly suboptimal, but could be fixed in future with some vfs work.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Kent Overstreet
AppliedQuoted 6 lines · Bagas Sanjaya
Hi Kent, hi Joshua,
Here are fixes for casefolding docs. Patches [1/4], [2/4], and [4/4] fixes htmldocs warnings reported in linux-next.
Enjoy!
Thanks, applied
Quoted 18 lines
Bagas Sanjaya (4):
Documentation: bcachefs: casefolding: Do not italicize NUL
Documentation: bcachefs: casefolding: Fix dentry/dcache considerations
section
Documentation: bcachefs: casefolding: Use bullet list for dirent
structure
Documentation: bcachefs: Add casefolding toctree entryDocumentation/filesystems/bcachefs/casefolding.rst | 13 ++++++++----- Documentation/filesystems/bcachefs/index.rst | 1 + 2 files changed, 9 insertions(+), 5 deletions(-)base-commit:
77308424ba26e1b41a7db5d4eae121841a707c05Signature · 1 line
An old man doll... just what I always wanted! - Clara