[Eclug] File creation times

  • Previous message: [Eclug] File creation times
  • Next message: [Eclug] File creation times
  • Jason Gurtz jason at jasongurtz.com
    Mon Aug 14 23:02:52 EDT 2006

     

    On 8/14/2006 22:13, David Krings wrote:
    > 	No creation time....wierd.
    
    Well I thought it was stored too, but a quick `man 2 stat` says
    otherwise (what you discovered).  These various times are filesystem
    dependent and IIRC, there are options you can set to disable certain of
    them to improve performance (noatime mount option, etc...).
    
    NTFS on windows does store creation time and now I really wonder if some
    of the newer filesystems available on Linux actually do have a "ctime"
    stored now, such as XFS, JFS, Reiser and so on.  This old box is just
    plain old ext2.
    
    >From the sound of the functions you're using your PHP is abstracting
    things away.  I don't know PHP very well, but I do know it shares an
    aweful lot with Perl, and Perl offers direct access to the stat() call.
     You might look to see if that's available and if your (newer?) system
    has a creation time stored.  My stat(2) man page is circa 1995.
    
    ~Jason
    
    -- 
    
    

     

     

    More information about the ECLUG mailing list