xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 733] New: mtime update behavior conflicts with IEEE

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

           Summary: mtime update behavior conflicts with IEEE Std 1003.1,
                    2004 Edition (I think)
           Product: Linux XFS
           Version: Current
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XFS kernel code
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: ejh1@xxxxxxx


I don't know how to find the xfs version. Please advise.
However, I do know the following:

Fedora Core release 3 (Heidelberg)
2.6.11-1.35_FC3smp #1 SMP Mon Jun 13 01:17:35 EDT 2005 i686 i686 i386 GNU/Linux
xfsprogs-2.6.13-2

Further, I don't know if xfs is intended to be IEEE Std 1003.1, 2004 Edition
compliant, but if it is please consider:

mkdir -p dir1/a
mkdir -p dir2/b
stat dir1/a

  File: `dir1/a'
  Size: 6               Blocks: 0          IO Block: 4096   directory
Device: 801h/2049d      Inode: -1610611472  Links: 2
Access: (0755/drwxr-xr-x)  Uid: ()   Gid: ()
Access: 2006-12-20 13:20:14.168520653 -0500
Modify: 2006-12-20 13:20:14.168520653 -0500
Change: 2006-12-20 13:20:14.201512770 -0500

mv dir1/a dir2
stat dir2/a
  File: `dir2/a'
  Size: 6               Blocks: 0          IO Block: 4096   directory
Device: 801h/2049d      Inode: -1610611472  Links: 2
Access: (0755/drwxr-xr-x)  Uid: ()   Gid: ()
Access: 2006-12-20 13:20:14.168520653 -0500
Modify: 2006-12-20 13:20:33.445914840 -0500
Change: 2006-12-20 13:20:33.445914840 -0500

The data of "a" has not changed, but the mtime does. It seems that
mtime should be duplicated.

Quoting http://www.opengroup.org/onlinepubs/000095399/utilities/mv.html

5. The file hierarchy rooted in source_file shall be duplicated as a file
hierarchy rooted in the destination path. If source_file or any of the files
below it in the hierarchy are symbolic links, the links themselves shall be
duplicated, including their contents, rather than any files to which they refer.
The following characteristics of each file in the file hierarchy shall be
duplicated:

    * The time of last data modification and time of last access

Further quoting: 
http://www.opengroup.org/onlinepubs/000095399/functions/link.html 

Upon successful completion, link() shall mark for update the st_ctime field of
the file.

--end quote

No mention of changing mtime is made.

-- 
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>
  • [xfs-masters] [Bug 733] New: mtime update behavior conflicts with IEEE Std 1003.1, 2004 Edition (I think), bugzilla-daemon <=