Changeset 2309891 in mainline for uspace/lib/fmgt/src/verify.c


Ignore:
Timestamp:
2025-12-14T17:15:57Z (5 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
79b77ce
Parents:
144fafd
Message:

Copy files (Navigator and command line).

TODO Overwrite query, new I/O error types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fmgt/src/verify.c

    r144fafd r2309891  
    3333 */
    3434
    35 //#include <dirent.h>
    3635#include <errno.h>
    3736#include <stdbool.h>
    38 //#include <stdio.h>
    3937#include <stdlib.h>
    40 //#include <stddef.h>
    41 //#include <str.h>
    4238#include <vfs/vfs.h>
    43 //#include <dirent.h>
    4439
    4540#include "fmgt.h"
     
    4742#include "../private/fmgt.h"
    4843
    49 static errno_t fmgt_verify_file(void *, const char *);
     44static errno_t fmgt_verify_file(void *, const char *, const char *);
    5045
    5146static fmgt_walk_cb_t fmgt_verify_cb = {
     
    5348};
    5449
    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 */
     57static errno_t fmgt_verify_file(void *arg, const char *fname,
     58    const char *unused)
    5659{
    5760        fmgt_t *fmgt = (fmgt_t *)arg;
     
    6366        fmgt_error_action_t action;
    6467        errno_t rc;
     68
     69        (void)unused;
    6570
    6671        buffer = calloc(BUFFER_SIZE, 1);
     
    95100                        free(buffer);
    96101                        vfs_put(fd);
     102                        fmgt_final_progress_update(fmgt);
    97103                        return rc;
    98104                }
     
    104110                        free(buffer);
    105111                        vfs_put(fd);
     112                        fmgt_final_progress_update(fmgt);
    106113                        return EINTR;
    107114                }
Note: See TracChangeset for help on using the changeset viewer.