doc: refactor doc for mount.bookmarkfs

Explain the `-o ctime` option better.
This commit is contained in:
CismonX 2025-01-11 02:28:27 +08:00
parent 7e54112178
commit 68281c2ecb
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -207,10 +207,19 @@ nor the parent directory changes timestamp accordingly.
BookmarkFS do not follow browser behavior here, and instead try to stay BookmarkFS do not follow browser behavior here, and instead try to stay
compatible with POSIX. compatible with POSIX.
Since a bookmark has only one ``modification time'' attribute instead of two, Since a bookmark has only one ``modification time'' attribute instead of two,
the user has to choose which one to maintain. the user has to choose which one to maintain:
If choosing mtime, ctime only updates when mtime does.
Otherwise, mtime may change when the file content is not modified -- @table @asis
inefficient but makes applications that depend on ctime less fragile. @item mtime
ctime only updates when mtime does.
@item ctime
ctime updates normally; mtime always updates when ctime does,
even if the file content is not modified.
This behavior may be inefficient, but makes applications that depend on ctime
less fragile.
@end table
The kernel may cache file attributes, making ctime appear more ``correct'' The kernel may cache file attributes, making ctime appear more ``correct''
than what we claim. than what we claim.
@ -781,7 +790,7 @@ Write or search permission is denied for the directory.
@item EINVAL @item EINVAL
@code{name1} or @code{name2} is not a valid filename @code{name1} or @code{name2} is not a valid filename
(e.g. empty string; contains slash character, @dots{}). (e.g. empty string; contains slash character).
@item ENOENT @item ENOENT
The directory does not contain entries named @code{name1} or @code{name2}. The directory does not contain entries named @code{name1} or @code{name2}.