Changeset 5a2b765 in mainline for uspace/lib/fs/libfs.c


Ignore:
Timestamp:
2017-03-16T17:17:31Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39c3b7f9
Parents:
8ffedd8
Message:

Add the FS name field to struct statfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fs/libfs.c

    r8ffedd8 r5a2b765  
    4343#include <dirent.h>
    4444#include <mem.h>
     45#include <str.h>
    4546#include <sys/stat.h>
    4647#include <sys/statfs.h>
    4748#include <stdlib.h>
    4849#include <fibril_synch.h>
     50#include <ipc/vfs.h>
    4951
    5052#define on_error(rc, action) \
     
    7274static vfs_out_ops_t *vfs_out_ops = NULL;
    7375static libfs_ops_t *libfs_ops = NULL;
     76
     77static char fs_name[FS_NAME_MAXLEN + 1];
    7478
    7579static void libfs_link(libfs_ops_t *, fs_handle_t, ipc_callid_t,
     
    394398        vfs_out_ops = vops;
    395399        libfs_ops = lops;
     400
     401        str_cpy(fs_name, sizeof(fs_name), info->name);
    396402
    397403        /*
     
    817823        memset(&st, 0, sizeof(struct statfs));
    818824
     825        str_cpy(st.fs_name, sizeof(st.fs_name), fs_name);
     826
    819827        if (ops->size_block != NULL) {
    820828                rc = ops->size_block(service_id, &st.f_bsize);
Note: See TracChangeset for help on using the changeset viewer.