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

Changeset 75e0f15 in mainline


Ignore:
Timestamp:
2011-09-05T18:41:50Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
5222e746
Parents:
bbd4c72
Message:

Fix the mfs_mounted() function to return 1 as root directory hard links count

File:
1 edited

Legend:

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

    rbbd4c72 r75e0f15  
    298298        *index = mroot->ino_i->index;
    299299        *size = mroot->ino_i->i_size;
    300         *linkcnt = mroot->ino_i->i_nlinks;
     300        *linkcnt = 1;
    301301
    302302        return mfs_node_put(fn);
     
    549549        struct mfs_node *mnode = fsnode->data;
    550550
    551         mfsdebug("%s()\n", __FUNCTION__);
     551        mfsdebug("%s() %d\n", __FUNCTION__, mnode->ino_i->i_nlinks);
    552552
    553553        if (S_ISDIR(mnode->ino_i->i_mode)) {
     
    556556                else
    557557                        return 0;
    558         }
    559 
    560         return mnode->ino_i->i_nlinks;
     558        } else
     559                return mnode->ino_i->i_nlinks;
    561560}
    562561
Note: See TracChangeset for help on using the changeset viewer.