Commit graph

373 commits

Author SHA1 Message Date
Tommaso Gagliardoni
f0288879c4 doc: Add comments in src files of Lite
One comment is a TODO about the possibility of doing slice garbage collection dynamically instead of requiring a reload. The other is a warning about the importance of terminating a TRIM bio before it reaches the block device, otherwise plausible deniability might break.
2025-08-25 16:47:18 +02:00
Tommaso Gagliardoni
550a4a5804 Merge pull request 'add capability to DISCARD unused slices when requested by the filesystem; flush position map on close' (#137) from andersonarc/shufflecake-c:feat/discard into andersonarc/feat/discard
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/137
2025-08-25 10:04:48 +02:00
Anderson Rosenberg
e45f828bc9
add capability to DISCARD unused slices when requested by the filesystem; flush position map on close 2025-07-28 14:43:37 -04:00
Tommaso Gagliardoni
698a1fc743 Merge pull request 'chore: Release v0.5.3' (#134) from dev into main
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/134
2025-07-05 01:15:03 +02:00
Tommaso Gagliardoni
35dff327b7 Merge pull request 'docs: Minor language edits in README.md' (#133) from v0.5.3 into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/133
2025-07-05 01:06:41 +02:00
Tommaso Gagliardoni
a35f4de97b docs: Minor language edits in README.md 2025-07-05 01:04:15 +02:00
Tommaso Gagliardoni
0c97af355d Merge pull request 'v0.5.3' (#131) from v0.5.3 into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/131
2025-07-05 00:59:26 +02:00
Tommaso Gagliardoni
9a9d96653b chore: Prepare release v0.5.3 2025-07-05 00:57:43 +02:00
Tommaso Gagliardoni
7c631e2d84 chore: Prepare release v0.5.3 2025-07-05 00:53:44 +02:00
Tommaso Gagliardoni
3ee551789f Merge pull request 'versionfix' (#130) from versionfix into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/130
2025-07-05 00:43:14 +02:00
Tommaso Gagliardoni
609b31ddc1 docs: Minor language edits in README.md 2025-07-05 00:40:11 +02:00
Tommaso Gagliardoni
79f1549664 refactor: Correctly import version string from sflc_constants.h instead of hardcoded hack 2025-07-05 00:24:19 +02:00
toninov
91504c83e0
Make const parameter version dependent 2025-07-04 12:45:31 +02:00
toninov
9f97f79fdb Merge pull request 'fix: GCC 15 raised -Wincompatible-pointer-types' (#120) from BenjaminV/shufflecake-c:incompatible_pointer_types into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/120
2025-07-03 10:50:06 +02:00
Benjamin Voisin
4c8a50b7c4 fix: GCC 15 raised -Wincompatible-pointer-types
On GCC 15.1.0, the error
sysfs.c:47:56: error: initialization of 'ssize_t (*)(const struct module_attribute *, struct module_kobject *, char *)' {aka 'long int (*)(const struct module_attribute *, struct module_kobject *, char *)'} from incompatible pointer type 'ssize_t (*)(struct module_attribute *, struct module_kobject *, char *)' {aka 'long int (*)(struct module_attribute *, struct module_kobject *, char *)'} [-Wincompatible-pointer-types]

is raised. This is fixed by adding the `const` specifier.

Signed-off-by: Benjamin Voisin <benjamin.voisin@ens-rennes.fr>
2025-07-03 10:50:06 +02:00
Tommaso Gagliardoni
4ec1b1cdb2 Merge pull request 'Add FLUSH support, make posmap write-back' (#129) from feat/flush into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/129
2025-07-03 10:44:46 +02:00
toninov
a0d9252127
Revert gcc fix, so as to merge PR 2025-07-03 10:37:18 +02:00
toninov
d53f77c1b0
Remove panicky prints and sleeps 2025-07-02 15:26:35 +02:00
toninov
e5d2674127
Fix and rmeove prints 2025-05-04 16:00:28 +02:00
toninov
b6f7bc9ca3
Fix typo 2025-05-03 19:44:35 +02:00
toninov
54b2e4b2e4
Fix bug with occupation_bitmap and slices_lock 2025-04-26 15:49:55 +02:00
toninov
f08cca776f
Fix compilation errors 2025-04-26 15:04:52 +02:00
toninov
af66be4092
Add symlink to flush.c 2025-04-26 13:21:30 +02:00
toninov
97092899b1
Whoopsie forgot to add flush.c 2025-04-25 21:49:36 +02:00
toninov
5af4437f96
Implement flush at the sflite target level 2025-04-25 21:37:36 +02:00
toninov
fa5a6b733e
Update access control in write.c 2025-04-25 00:38:18 +02:00
toninov
ceee6f6a8e
Update access control in read.c 2025-04-25 00:26:17 +02:00
toninov
f2095588ba
tentatively finish posmap 2025-03-28 01:31:15 +01:00
toninov
f94d85e430
add crypt_entries and fix bug 2025-03-28 00:12:14 +01:00
toninov
3c70b52f59
Beginning of posmap flushing 2025-03-24 00:54:01 +01:00
toninov
cb469af374
More posmap refactoring 2025-03-22 17:33:10 +01:00
=
f9d54a7649 Adjust sysfs 2025-02-08 20:08:23 +01:00
=
29e0e1871a Adjust sflite_volume 2025-02-08 19:52:25 +01:00
=
14f41a7028 Use spinlock and bitmap in sflite_device 2025-02-08 19:39:25 +01:00
=
3e9b520a7a Move struct decls into types 2025-02-08 19:30:54 +01:00
Tommaso Gagliardoni
b70122a689 doc: Minor update to README.md 2025-01-17 11:24:27 +01:00
Tommaso Gagliardoni
96c1557cdd Merge pull request 'chore: Release v0.5.2' (#108) from dev into main
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/108
2025-01-17 00:04:14 +00:00
Tommaso Gagliardoni
5b8d36be64 Merge pull request 'chore: Prepare release v0.5.2' (#107) from v0.5.2 into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/107
2025-01-16 23:54:03 +00:00
Tommaso Gagliardoni
9b2b026edc chore: Prepare release v0.5.2 2025-01-17 00:51:53 +01:00
Tommaso Gagliardoni
6bbfb82814 Merge pull request 'fix: Fix make test not compiling' (#106) from fix/tests into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/106
2025-01-16 23:43:24 +00:00
Tommaso Gagliardoni
3781091335 fix: Fix make test not compiling
Some constants or variables were prefixed with a SFLITE_ tag instead of SFLC_, this fix resolves that and now crypto tests run again.

Solves: #105
2025-01-17 00:40:03 +01:00
Tommaso Gagliardoni
fe45e440e8 doc: CONTRIBUTING.md 2025-01-17 00:24:16 +01:00
Tommaso Gagliardoni
942270dbd4 doc:Add CONTRIBUTING.md and changed AUTHORS 2025-01-08 12:35:43 +01:00
Tommaso Gagliardoni
bc51f0ad99 Merge pull request 'Pretty print of status for the init command (duplicate of #103)' (#104) from BenjaminV/shufflecake-c:init-print-status into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/104

Notice that first-time contributor Benjamin Voisin signed off the Developer Certificate of Origin from https://developercertificate.org/
2025-01-08 10:38:06 +00:00
=
d713f5fe9c Touch-up of progress printing 2025-01-06 16:14:03 +01:00
Benjamin Voisin
0b0a503409
Pretty print of status for the init command
Signed-off-by: Benjamin Voisin <benjamin.voisin@ens-rennes.fr>
2025-01-06 16:08:40 +01:00
Tommaso Gagliardoni
c54777659d Merge pull request 'chore:Release v0.5.1' (#102) from dev into main
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/102
2024-10-13 10:25:38 +00:00
Tommaso Gagliardoni
ed05a1d57b Merge pull request 'chore:Prepare release v0.5.1' (#101) from v0.5.1 into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/101
2024-10-13 10:10:00 +00:00
Tommaso Gagliardoni
2d5cb4c74a chore:Prepare release v0.5.1 2024-10-13 12:08:26 +02:00
Tommaso Gagliardoni
a238d1cfd2 Merge pull request 'feat/mode-functions' (#100) from feat/mode-functions into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/100
2024-10-13 09:56:17 +00:00