xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 733] mtime update behavior conflicts with IEEE Std 10

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 733] mtime update behavior conflicts with IEEE Std 1003.1, 2004 Edition (I think)
From: bugzilla-daemon@xxxxxxxxxxx
Date: Thu, 21 Dec 2006 14:37:54 -0800
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=733





------- Additional Comments From sandeen-xfs@xxxxxxxxxxx  2006-12-21 14:37 CST 
-------
So I think this is what's doing it, in xfs_rename():

        /*
         * Remove the source.
         */
        if (new_parent && src_is_directory) {
                /*
                 * Rewrite the ".." entry to point to the new
                 * directory.
                 */
                error = xfs_dir_replace(tp, src_ip, "..", 2, target_dp->i_ino,
                                        &first_block, &free_list, spaceres);
                ASSERT(error != EEXIST);
                if (error)
                        goto abort_return;
                xfs_ichgtime(src_ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG);

        }

But actually this makes sense; the ".." entry of the moved directory now points
somewhere other than it did prior to the move.  IOW, the directory data -did-
change.  At least that's how I read it.

If people concur, I'll fix ext3 ;-)

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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