Changeset 2309891 in mainline for uspace/lib/fmgt/src/verify.c
- Timestamp:
- 2025-12-14T17:15:57Z (5 days ago)
- Branches:
- master
- Children:
- 79b77ce
- Parents:
- 144fafd
- File:
-
- 1 edited
-
uspace/lib/fmgt/src/verify.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fmgt/src/verify.c
r144fafd r2309891 33 33 */ 34 34 35 //#include <dirent.h>36 35 #include <errno.h> 37 36 #include <stdbool.h> 38 //#include <stdio.h>39 37 #include <stdlib.h> 40 //#include <stddef.h>41 //#include <str.h>42 38 #include <vfs/vfs.h> 43 //#include <dirent.h>44 39 45 40 #include "fmgt.h" … … 47 42 #include "../private/fmgt.h" 48 43 49 static errno_t fmgt_verify_file(void *, const char * );44 static errno_t fmgt_verify_file(void *, const char *, const char *); 50 45 51 46 static fmgt_walk_cb_t fmgt_verify_cb = { … … 53 48 }; 54 49 55 static errno_t fmgt_verify_file(void *arg, const char *fname) 50 /** Verify a single file. 51 * 52 * @param arg Argument (fmgt_t *) 53 * @param fname File name 54 * @param unused Unused 55 * @return EOK on success or an error code 56 */ 57 static errno_t fmgt_verify_file(void *arg, const char *fname, 58 const char *unused) 56 59 { 57 60 fmgt_t *fmgt = (fmgt_t *)arg; … … 63 66 fmgt_error_action_t action; 64 67 errno_t rc; 68 69 (void)unused; 65 70 66 71 buffer = calloc(BUFFER_SIZE, 1); … … 95 100 free(buffer); 96 101 vfs_put(fd); 102 fmgt_final_progress_update(fmgt); 97 103 return rc; 98 104 } … … 104 110 free(buffer); 105 111 vfs_put(fd); 112 fmgt_final_progress_update(fmgt); 106 113 return EINTR; 107 114 }
Note:
See TracChangeset
for help on using the changeset viewer.
