Changeset 7f59d6c in mainline for uspace/lib/c/generic/vfs/vfs.c

Timestamp:
2017-03-18T13:08:17Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4f9ab1e
Parents:
39c3b7f9
Message:

Revert the order of link and unlink operations during rename

This changeset reverts the order of link and unlink operations that
occur within a single rename operation to be link first and unlink
second.

The file system implementations are not ready for the opposite ordering.

For example ext4fs decrements the the link count by 2 in total when
removing the last non-dot name of a directory, but increments only by 1
when adding the new name. This results in an assertion failure on the
next unlink, because the linkcount gets out of ballance.

In addition, this changeset fixes a node reference leak in error paths.

(No files)

Note: See TracChangeset for help on using the changeset viewer.