Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 99e846f0 in mainline


Ignore:
Timestamp:
2011-07-28T20:56:39Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
6f7e0cd
Parents:
bb8cd79
Message:

Fix a little bug in the mount function which prevents unmount() to work properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_ops.c

    rbb8cd79 r99e846f0  
    298298        mfsdebug("mount successful\n");
    299299
    300         async_answer_0(rid, EOK);
     300        fs_node_t *fn;
     301        mfs_node_get(&fn, devmap_handle, MFS_ROOT_INO);
     302
     303        struct mfs_node *nroot = fn->data;
     304
     305        async_answer_3(rid, EOK,
     306                        MFS_ROOT_INO,
     307                        0,
     308                        nroot->ino_i->i_nlinks);
     309
     310        mfs_node_put(fn);
    301311}
    302312
Note: See TracChangeset for help on using the changeset viewer.