Commit graph

355 commits

Author SHA1 Message Date
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
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
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
=
ad958dd62b Adapt FLUSH behaviour of legacy 2024-10-02 22:46:33 +02:00
=
1a775e9a44 Add symlink to sflc_types.h 2024-10-02 22:21:57 +02:00
=
1df6b0774c Adapt everything: now it compiles, still to be tested 2024-10-01 00:33:13 +02:00
=
bb92f256e7 Adapt sflc_legacy 2024-09-30 23:54:07 +02:00
=
d920eedb13 Adapt sflc_lite 2024-09-30 22:20:28 +02:00
=
7cc60dbb5a Adapt half of sflc_lite 2024-09-30 00:04:51 +02:00
=
b2483c12d5 Add vol_idx to volume base 2024-09-27 21:49:17 +02:00
=
4db71b05a5 Adapt sysfs 2024-09-27 21:36:52 +02:00
=
c0824a6a2d Adapt dev_vol.c 2024-09-27 21:29:29 +02:00
=
e27f738260 Minor adjustments 2024-09-27 00:05:54 +02:00
=
31bc347867 Define device and volume classes OOP-style 2024-09-25 22:38:41 +02:00
Tommaso Gagliardoni
f726db5f4e Merge pull request 'release/v0.5.0' (#98) from release/v0.5.0 into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/98
2024-09-01 16:20:11 +00:00
Tommaso Gagliardoni
8136a2d677 doc:Minor edit to Legacy headers schematics 2024-09-01 18:19:00 +02:00
Tommaso Gagliardoni
7e8e3d3c6a Merge pull request 'dev' (#97) from dev into release/v0.5.0
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/97
2024-09-01 16:13:58 +00:00
Tommaso Gagliardoni
8c5920f8bf Merge pull request 'test/rename-old-to-legacy' (#96) from test/rename-old-to-legacy into dev
Reviewed-on: https://codeberg.org/shufflecake/shufflecake-c/pulls/96
2024-09-01 16:12:31 +00:00
Tommaso Gagliardoni
353fc6110b chore:Change label name of benchmark tests 2024-09-01 18:09:34 +02:00