Commit 6e45906
committed
NFSD: Return NFS4ERR_FILE_OPEN only when linking an open file
RFC 8881 Section 18.9.4 paragraphs 1 - 2 tell us that RENAME should
return NFS4ERR_FILE_OPEN only when the target object is a file that
is currently open. If the target is a directory, some other status
must be returned.
The VFS is unlikely to return -EBUSY, but NFSD has to ensure that
errno does not leak to clients as a status code that is not
permitted by spec.
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent 3b60984 commit 6e45906
1 file changed
+31
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1704 | 1712 | | |
1705 | 1713 | | |
1706 | 1714 | | |
1707 | 1715 | | |
1708 | 1716 | | |
1709 | 1717 | | |
1710 | 1718 | | |
| 1719 | + | |
1711 | 1720 | | |
1712 | 1721 | | |
1713 | 1722 | | |
| |||
1727 | 1736 | | |
1728 | 1737 | | |
1729 | 1738 | | |
| 1739 | + | |
| 1740 | + | |
1730 | 1741 | | |
1731 | | - | |
1732 | | - | |
| 1742 | + | |
1733 | 1743 | | |
1734 | | - | |
1735 | 1744 | | |
1736 | 1745 | | |
1737 | 1746 | | |
1738 | 1747 | | |
1739 | 1748 | | |
1740 | 1749 | | |
1741 | 1750 | | |
1742 | | - | |
| 1751 | + | |
1743 | 1752 | | |
1744 | 1753 | | |
1745 | 1754 | | |
| |||
1755 | 1764 | | |
1756 | 1765 | | |
1757 | 1766 | | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
1763 | 1770 | | |
| 1771 | + | |
1764 | 1772 | | |
1765 | 1773 | | |
1766 | 1774 | | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
1767 | 1785 | | |
1768 | | - | |
| 1786 | + | |
1769 | 1787 | | |
1770 | 1788 | | |
1771 | 1789 | | |
| |||
0 commit comments