GNU bug report logs - #7184
Problems with timestamp on FAT32 directories

Previous Next

Package: coreutils;

Reported by: Steven Lee <stlee987 <at> gmail.com>

Date: Sun, 10 Oct 2010 13:00:04 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7184 in the body.
You can then email your comments to 7184 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7184; Package coreutils. (Sun, 10 Oct 2010 13:00:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steven Lee <stlee987 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 10 Oct 2010 13:00:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Steven Lee <stlee987 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Problems with timestamp on FAT32 directories
Date: Sun, 10 Oct 2010 02:06:04 -0700
Hello,

On an IOMega 500 GB Home Network Hard Drive with a FAT32 partition, all 
of the directories are showing up as "1969-12-31 16:00" (or essentially 
no date), but when viewing the directory in Windows Explorer, there is 
no problem.  It doesn't matter if I use 'mkdir' to create a directory or 
create the directory from Windows; the result is the same.  Files are 
okay.  NTFS partitions are okay.  I have not seen this issue reported 
when searching the Internet.  I've using latest Cygwin 1.7.7 release.  
Here's a log of what I've done.

$ mkdir tmp
$ ls -ld tmp
drwxr-xr-x 1 Steven None 0 1969-12-31 16:00 tmp

$ touch test.txt
$ ls -l test.txt
-rw-r--r-- 1 Steven None 0 2010-10-10 00:50 test.txt

$ which ls
/usr/bin/ls
$ ls -l /usr/bin/ls
-rwxr-xr-x 1 Steven root 128526 2010-06-25 07:42 /usr/bin/ls

Any idea what could be wrong?

-Steven





Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7184; Package coreutils. (Mon, 11 Oct 2010 12:03:02 GMT) Full text and rfc822 format available.

Message #8 received at 7184 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Steven Lee <stlee987 <at> gmail.com>
Cc: 7184 <at> debbugs.gnu.org
Subject: Re: bug#7184: Problems with timestamp on FAT32 directories
Date: Mon, 11 Oct 2010 06:05:54 -0600
On 10/10/2010 03:06 AM, Steven Lee wrote:
> On an IOMega 500 GB Home Network Hard Drive with a FAT32 partition, all
> of the directories are showing up as "1969-12-31 16:00" (or essentially
> no date), but when viewing the directory in Windows Explorer,

> Any idea what could be wrong?

There's the issue.  FAT is an inherently metadata-poor file system, 
which lacks a lot of information.  Then Windows mistakenly treats 
stat()'s ctime as creation-time instead of change-time.  Cygwin MUST 
fake timestamps for information that is not present in the native 
filesystem, so it's easier to fake the epoch (0 seconds since Jan 1 
1970, adjusted for your timezone) than it is to fake any other date.  If 
you have further questions, you should raise them with the cygwin list, 
as there is nothing that coreutils can do about the inherent lack of 
information in your filesystem nor with cygwin's choice of how to fake 
that information.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7184; Package coreutils. (Mon, 11 Oct 2010 14:01:03 GMT) Full text and rfc822 format available.

Message #11 received at 7184 <at> debbugs.gnu.org (full text, mbox):

From: Steven Lee <stlee987 <at> gmail.com>
To: Eric Blake <eblake <at> redhat.com>
Cc: 7184 <at> debbugs.gnu.org
Subject: Re: bug#7184: Problems with timestamp on FAT32 directories
Date: Mon, 11 Oct 2010 06:24:53 -0700
Hi Eric,

The change-time information is there as it shows up properly in Windows 
Explorer.  In addition, files are okay under Cygwin; the problem is only 
with directories.

FYI, I want to use rsync under Cygwin to backup files but it's causing 
all of my directories to be resetted to the epoch time.

-Steven


On 10/11/2010 5:05 AM, Eric Blake wrote:
> On 10/10/2010 03:06 AM, Steven Lee wrote:
>> On an IOMega 500 GB Home Network Hard Drive with a FAT32 partition, all
>> of the directories are showing up as "1969-12-31 16:00" (or essentially
>> no date), but when viewing the directory in Windows Explorer,
>
>> Any idea what could be wrong?
>
> There's the issue.  FAT is an inherently metadata-poor file system, 
> which lacks a lot of information.  Then Windows mistakenly treats 
> stat()'s ctime as creation-time instead of change-time.  Cygwin MUST 
> fake timestamps for information that is not present in the native 
> filesystem, so it's easier to fake the epoch (0 seconds since Jan 1 
> 1970, adjusted for your timezone) than it is to fake any other date.  
> If you have further questions, you should raise them with the cygwin 
> list, as there is nothing that coreutils can do about the inherent 
> lack of information in your filesystem nor with cygwin's choice of how 
> to fake that information.
>




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7184; Package coreutils. (Mon, 11 Oct 2010 14:27:01 GMT) Full text and rfc822 format available.

Message #14 received at 7184 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Steven Lee <stlee987 <at> gmail.com>
Cc: 7184 <at> debbugs.gnu.org
Subject: Re: bug#7184: Problems with timestamp on FAT32 directories
Date: Mon, 11 Oct 2010 08:29:56 -0600
[please don't top-post]

On 10/11/2010 07:24 AM, Steven Lee wrote:
> Hi Eric,
>
> The change-time information is there as it shows up properly in Windows
> Explorer. In addition, files are okay under Cygwin; the problem is only
> with directories.

But as I already said, this is not a coreutils issue, but a cygwin 
issue.  If you want it fixed in cygwin, then you need to report it to 
the cygwin folks.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




Information forwarded to bug-coreutils <at> gnu.org:
bug#7184; Package coreutils. (Tue, 30 Oct 2018 07:17:01 GMT) Full text and rfc822 format available.

Message #17 received at 7184 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 7184 <at> debbugs.gnu.org
Subject: Re: bug#7184: Problems with timestamp on FAT32 directories
Date: Tue, 30 Oct 2018 01:16:48 -0600
tags 7184 notabug
close 7184
stop

(triaging old bugs)

On 2010-10-11 8:29 a.m., Eric Blake wrote:
> 
> On 10/11/2010 07:24 AM, Steven Lee wrote:
>>
>> The change-time information is there as it shows up properly in Windows
>> Explorer. In addition, files are okay under Cygwin; the problem is only
>> with directories.
> 
> But as I already said, this is not a coreutils issue, but a cygwin 
> issue.  If you want it fixed in cygwin, then you need to report it to 
> the cygwin folks.
> 

With no further comments in 8 years, I'm closing this bug.

-assaf




Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 07:17:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 7184 <at> debbugs.gnu.org and Steven Lee <stlee987 <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 07:17:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Nov 2018 12:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.