Changeset 3ce78580 in mainline


Ignore:
Timestamp:
2011-10-30T20:45:03Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10e4cd7, 4f100f4, 8a363ab3, c289457, c83a55c
Parents:
45bf63c (diff), 20a3465 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:mfs.

File:
1 edited

Legend:

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

    r45bf63c r3ce78580  
    384384        if (flags & L_DIRECTORY) {
    385385                ino_i->i_mode = S_IFDIR;
    386                 ino_i->i_nlinks = 2; /* This accounts for the '.' dentry */
    387         } else {
     386                ino_i->i_nlinks = 1; /* This accounts for the '.' dentry */
     387        } else
    388388                ino_i->i_mode = S_IFREG;
    389                 ino_i->i_nlinks = 1;
    390         }
    391389
    392390        ino_i->i_uid = 0;
     
    675673        if (r != EOK)
    676674                goto exit_error;
     675
     676        child->ino_i->i_nlinks++;
     677        child->ino_i->dirty = true;
    677678
    678679        if (S_ISDIR(child->ino_i->i_mode)) {
Note: See TracChangeset for help on using the changeset viewer.