]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/xfs/linux-2.6/xfs_export.c
[XFS] don't encode parent in nfs filehandles unless nessecary
[linux-2.6-omap-h63xx.git] / fs / xfs / linux-2.6 / xfs_export.c
index ca4f66c4de16aaa743f5dcb7cc0e44ae02715ef1..21f0e8257590a3239e6a93b2bcf2adee34b9b753 100644 (file)
@@ -66,7 +66,7 @@ xfs_fs_encode_fh(
        int                     len;
 
        /* Directories don't need their parent encoded, they have ".." */
-       if (S_ISDIR(inode->i_mode))
+       if (S_ISDIR(inode->i_mode) || !connectable)
                fileid_type = FILEID_INO32_GEN;
        else
                fileid_type = FILEID_INO32_GEN_PARENT;