The following POSIX constraints must be honored by all filesystems.
If a node is a directory with children it cannot be removed.
The root node of any filesystem, whether the base filesystem or a
mounted filesystem, cannot be removed.
A node that is a directory that is acting as the mount point of a file
system cannot be removed.
On filesystems supporting hard links, a link count is maintained.
Prior to node removal, the node's link count is decremented by one. The
link count must be less than one to allow for removal of the node.