Changeset 5ab597d in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2008-08-22T19:44:52Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be8f92d
Parents:
2e4bd1f
Message:

Add reference to the mounted FS root.

This makes it possible to keep the FS root logically unlinked (i.e. lnkcnt == 0)
because it prevents VFS from attempting to destroy it during closedir().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r2e4bd1f r5ab597d  
    738738        rootp->firstc = FAT_CLST_ROOT;
    739739        rootp->refcnt = 1;
     740        rootp->lnkcnt = 0;      /* FS root is not linked */
    740741        rootp->size = rde * sizeof(fat_dentry_t);
    741742        rootp->idx = ridxp;
     
    744745        futex_up(&ridxp->lock);
    745746
    746         ipc_answer_0(rid, EOK);
     747        ipc_answer_3(rid, EOK, ridxp->index, rootp->size, rootp->lnkcnt);
    747748}
    748749
Note: See TracChangeset for help on using the changeset viewer.