mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
doc: refactor doc for mount.bookmarkfs
Explain the `-o ctime` option better.
This commit is contained in:
parent
7e54112178
commit
68281c2ecb
1 changed files with 14 additions and 5 deletions
|
@ -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}.
|
||||||
|
|
Loading…
Add table
Reference in a new issue