CismonX
eb426f9fc4
bookmarkctl: xattr-get: rename -m
option to -a
2025-06-06 19:41:09 +08:00
CismonX
83f201435f
backend_firefox: add keyword xattr
...
This allows users to quickly discover which keyword is
associated with a given bookmark.
Updating keywords via xattr is not implemented,
since it can be done trivially using existing API.
2025-04-29 12:46:29 +08:00
CismonX
906769f1f7
doc: misc corrections and improvements
2025-03-31 21:30:47 +08:00
CismonX
159c2c7625
fsck_util: improve fsck output format
...
Now the built-in fsck handler and `bookmarkctl fsck` produces
output that is both parsable and human-readable.
Also document the output format in the user manual.
2025-03-30 14:10:31 +08:00
CismonX
bdfa812d79
backend: respect the BOOKMARK_DELETE_DIR flag
...
Following commit 2e3685f217
,
make sure all backends check this flag and return correct error codes.
Normally this is not mandatory, since the kernel looks up
the directory entry to be removed, and fails if the system call
is inappropriate (e.g., calling rmdir() on a regular file).
This happens before FUSE_UNLINK or FUSE_RMDIR is sent to the server.
However, when not in exclusive mode, there is a short window that
TOCTOU problem may occur, which may lead to undesired behavior
(e.g., deletion of a non-empty directory) or even the corruption of
bookmark storage if not properly checked.
Also explain this flag in the user manual.
2025-03-27 12:36:27 +08:00
CismonX
86c7af8f6f
doc: explain exlusive mode in backend API docs
...
Add add cross references when appropriate.
2025-03-27 12:12:30 +08:00
CismonX
7b5ed129be
doc: misc update
2025-03-24 10:35:35 +08:00
CismonX
827ed94f6d
doc: misc update
2025-03-21 12:57:01 +08:00
CismonX
e0d2aa2058
backend: refactor bookmark_set() for timestamps
...
Do not expose UTIME_OMIT to backends, but instead specify
which timestamps to update with flags.
This allows us to further refactor backend code, especially
the Chromium backend.
2025-03-20 12:14:59 +08:00
CismonX
d7c7ec0174
bookmarkctl: xattr: misc refactor
2025-03-19 12:25:30 +08:00
CismonX
b96ed2a490
doc: add docs for bookmarkctl xattr-* sub-commands
2025-03-18 06:19:59 +08:00
CismonX
00ae9dbccb
doc: update docs for the utility library
...
- Correct the time complexity of hash table insert.
- Explain more about hash table limitation regarding collisions.
2025-03-16 12:48:58 +08:00
CismonX
402cc1a304
doc: misc update (mostly style improvements)
2025-03-14 08:20:33 +08:00
CismonX
2ce0be8a18
bookmarkctl: better handling of command-line args
2025-03-13 14:45:10 +08:00
CismonX
08b9ea81d6
doc: misc update
2025-03-11 10:33:31 +08:00
CismonX
9fab17734c
chore: misc cleanup
2025-03-07 14:35:45 +08:00
CismonX
cadde0b61e
doc: update docs for the utility library
...
Move documentation for the hash table from source code comments
to the user manual.
2025-03-06 10:33:15 +08:00
CismonX
b8d03f008c
doc: add chapter for the utility library
...
Move the documentation of the following library components
from source code comments to the user manual:
- hash
- prng
- sandbox
- watcher
2025-03-02 11:18:34 +08:00
CismonX
f952a35ddc
backend: misc refactor
...
- Following commit d01554400c
, rename `attr_key_*` to `xattr_name_*`.
- Other misc changes.
2025-02-28 10:05:25 +08:00
CismonX
b7b8cc88d2
doc: misc update
2025-02-26 22:53:38 +08:00
CismonX
fc8bda14f3
doc: update doc for the Firefox backend
...
Following commit 349877f9a3
, explain in the user manual about
readonly database files.
2025-02-26 15:14:07 +08:00
CismonX
8a0070833a
doc: misc update
2025-02-23 10:53:23 +08:00
CismonX
9494bf72af
doc: update backend API
...
- Add subsection for general information.
2025-02-22 19:19:55 +08:00
CismonX
6d99a3574c
doc: update backend API
...
- Add doc for the `bookmark_check` function.
- Other misc changes.
2025-02-21 18:44:58 +08:00
CismonX
e7743f0285
doc: fix syntax problems
2025-02-20 14:13:20 +08:00
CismonX
bd90602d4a
xattr: misc refactor
...
- Check for XATTR_CREATE in setxattr.
- Rename bookmark_attrs -> xattr_names.
- Other misc changes.
2025-02-19 11:34:03 +08:00
CismonX
63c491bc02
doc: update backend API
...
Add doc for the `bookmark_permute` function.
2025-02-18 12:29:12 +08:00
CismonX
e97adeaa7b
doc: update backend API
...
- Add doc for the `bookmark_delete` function.
- Other misc changes.
2025-02-17 19:26:13 +08:00
CismonX
557cc17449
doc: misc updates
2025-02-16 08:59:22 +08:00
CismonX
dd4e6401e8
doc: update backend API
...
- Add doc for the `bookmark_rename` function.
- Other misc changes.
2025-02-16 08:08:11 +08:00
CismonX
5c244c4ef5
doc: update backend API
...
- Add doc for the `bookmark_create` function.
- Other misc updates.
2025-02-14 19:24:44 +08:00
CismonX
52b3707d2b
backend: rename bookmark_fsck -> bookmark_check
...
Some relevant names are also renamed.
2025-02-12 20:47:10 +08:00
CismonX
a7575dc074
doc: update backend API
...
Add doc for the `bookmark_set` function.
2025-02-12 12:34:10 +08:00
CismonX
87931bc1f7
doc: update doc for the Firefox backend
2025-02-11 18:45:49 +08:00
CismonX
852caab209
doc: misc update
2025-02-04 20:55:29 +08:00
CismonX
8b848825f2
doc: update backend API
...
Add doc for the `cookie_free` and `bookmark_sync` functions.
2025-02-04 16:51:31 +08:00
CismonX
d0aa74b212
backend: rename object_free
-> cookie_free
2025-02-03 18:15:52 +08:00
CismonX
f92054bdf5
doc: update backend API
...
- Add doc for the `bookmark_get` function.
- Update doc for the `bookmark_list` function.
2025-02-03 18:02:59 +08:00
CismonX
5286cda051
doc: update backend API
...
- Add doc for the `bookmark_list` function.
- Other misc changes.
2025-02-01 19:07:42 +08:00
CismonX
93ff8cabe9
doc: update backend API
...
Add doc for the `backend_mkfs` function.
2025-01-31 00:09:17 +08:00
CismonX
6cae25ee7f
doc: misc update
2025-01-30 21:50:56 +08:00
CismonX
da453cdefd
doc: update backend API
...
Add doc for the `backend_sandbox` function.
2025-01-29 23:10:22 +08:00
CismonX
341b7b3d5a
doc: misc update
...
- Add manual section for the utility library.
- Add comments for utility library functions.
- Fix installation path for backends and fsck handlers.
2025-01-28 20:56:06 +08:00
CismonX
56fa90397d
fs_ops: limit xattr value length
2025-01-27 23:48:37 +08:00
CismonX
18b801f960
doc: update backend API
...
Add doc for the `bookmark_lookup` function.
2025-01-27 23:19:28 +08:00
CismonX
579f396e46
doc: minor update
2025-01-26 19:39:13 +08:00
CismonX
3ed11f53e5
backend: fix xattr bookmark title check
...
Do not check if the bookmark title is a valid filename,
as we said in the user manual.
However, we should ensure that the string does not contain
NUL characters, since we assume that a valid bookmark storage
should not contain bookmarks with such names.
2025-01-26 19:35:03 +08:00
CismonX
10ad224b03
backend: rename backend_sync -> bookmark_sync
2025-01-24 23:07:22 +08:00
CismonX
bff21c54b1
doc: update doc for fsck handler API
...
Add doc for the `run` function.
2025-01-24 18:37:23 +08:00
CismonX
a01912e6f0
doc: misc update
...
- Remove bogus EACCES for BOOKMARKFS_IOC_FSCK_NEXT.
If read permission is denied, the directory fd would not have
been obtained from open() in the first place.
- Add description for pkglibdir.
2025-01-24 17:18:57 +08:00