Re: Query on File Creation time in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 19, 2009 at 7:29 AM, Indraneel Mukherjee <indro.ml@xxxxxxxxx> wrote:
> Hi,
> It seems that Linux does NOT provide a File Creation Time field.
>
> There is atime(file access time) & ctime(inode change time) & mtime(file
> modification time) but NO field for File Creation Time. Why is it so?
>
> Regards,
> Indro

I don't know the answer, but it was a decision made decades ago when
UNIX was all there was.

Linux made a decision to be UNIX compatible, so there you are.

ie. Per stat(2):  These system calls conform to SVr4, 4.3BSD, POSIX.1-2001.

Getting Linux to break that compatibility is very unlikely in my opinion.

For filesystems like NTFS that have 2 fields (file creation time and
file metadata change time) I don't know if Linux maintains the file
creation time or not.  And if it does, I don't know if their is a
userspace API to retrieve it.

HTH
Greg

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux