xfs
[Top] [All Lists]

No local regular files

To: linux-xfs@xxxxxxxxxxx
Subject: No local regular files
From: Shailendra Tripathi <stripathi@xxxxxxxxx>
Date: Tue, 24 Jan 2006 20:50:45 +0530
In-reply-to: <Pine.LNX.4.64.0601231054140.11064@xxxxxxxxxxxxxxx>
References: <Pine.LNX.4.64.0601231054140.11064@xxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.9 (X11/20041127)
Hi,
I had an impression that XFS writes the data on the inode itself if data is pretty small. However, recently I came to know that for regular files it does not do the same, at least on Linux XFS.

xfs_iformat()
        ....
                         /*
                         * no local regular files yet
                         */
if (unlikely((INT_GET(dip->di_core.di_mode, ARCH_CONVERT
) & S_IFMT) == S_IFREG)) {
                                xfs_fs_cmn_err(CE_WARN, ip->i_mount,
"corrupt inode (local format for regular
 file) %Lu.  Unmount and run xfs_repair.",
                                        (unsigned long long) ip->i_ino);
                                XFS_CORRUPTION_ERROR("xfs_iformat(4)",
                                                     XFS_ERRLEVEL_LOW,
                                                     ip->i_mount, dip);
                                return XFS_ERROR(EFSCORRUPTED);
                        }

Am wondering what might be the reason for non-inclusion and whether it was ever implemented in XFS ? If implemented on IRIX XFS, what is potential reason for not being available on Linux ? Or, it is just that it does not give any benefit. I believe that there are significant number of such small files

Regards,
Shailendra


<Prev in Thread] Current Thread [Next in Thread>