You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Sven Mueller <sm...@leogic.com> on 2004/07/15 12:22:46 UTC
Re: [Issue 1960] file modifications get lost due to FAT 2s time
resolution
breser@tigris.org [u] schrieb:
> http://subversion.tigris.org/issues/show_bug.cgi?id=1960
> User breser changed the following:
>
> What |Old value |New value
> ================================================================================
> Target milestone|--- |2.0
> --------------------------------------------------------------------------------
> ------- Additional comments from breser@tigris.org Wed Jul 14 16:51:01 -0700 2004 -------
> This is going to require a very big kludge or a lot of wc changes. Deferring
> until 2.0. The use case is not one anyone had encourtered in actual usage and
> rquires a file system that is deprecated on its native platform.
Actually, this is not completely true. The cygwin compile of SVN works
quite fine on Windows 98 (at least 98SecondEdition onwards). And that OS
does not deprecate FAT (VFAT/FAT32) at all, in fact it doesn't support
any other file system.
regards,
Sven
--
---------------------[ Ciphire Signature ]----------------------
From: sm@leogic.com signed email body (796 characters)
Date: on 15 July 2004 at 12:22:48 GMT
To: dev@subversion.tigris.org
----------------------------------------------------------------
: The message above has been secured using Ciphire Mail.
: Verify this signature and download your free encryption
: software at www.ciphire.com. The three garbled lines
: below are the sender's verifiable encoded signature.
----------------------------------------------------------------
00fAAAAAEAAAAYd/ZAHAMAAGECAAIAAgACACA2A1N0anFAjhISsXqfspQ17ONB+Y
6A9ebgf4EvPUUdWwEAZ8hoc7VVY9dHDJGN9IMnlKpqZgaQgRfmZl6cjXlBQ49HjP
6c9v1aNqhOLfeTpCf36vrEB1/NfKOI3elGXPL8SA==
------------------[ End Ciphire Signed Message ]----------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by "C.A.T.Magic" <c....@gmx.at>.
Ben Reser wrote:
> On Thu, Jul 15, 2004 at 12:46:36PM -0400, Mark Phippard wrote:
>
> But it's the same thing that
> CVS does and I suspect nobody had a beter solution at the time.
>
cvs records the time when it modifies a file
and sleeps until that time passes:
code snippet from cvs commit.c:
int
commit (argc, argv)
[...]
/* see if we need to sleep before returning to avoid time-stamp
races */
if (last_register_time)
{
sleep_past (last_register_time);
}
[...]
and 'last_register_time' is updated whenever
a relevant file is modified.
but the rest of the cvs sourcecode
really gives me the creeps...
it even seems to have the same flaw on FAT,
but does not trigger it easily because
its 'slow enough' anyway.
:-)
======
c.a.t.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Ben Reser <be...@reser.org>.
On Thu, Jul 15, 2004 at 12:46:36PM -0400, Mark Phippard wrote:
> I have to say that I do not quite understand why this even falls into the
> category of a bug. It seems like the circumstances that would trigger it
> would almost have to be intentional, at which point, if the person really
> had a desire to do what they are doing, all they have to do is make their
> script sleep. I do not see the real world case where someone would run
> into this bug.
I agree for the most part. I suppose someone might be able to trigger
this unintentionally. But it would be a highly unusual case.
> Along that same line of reasoning, I do not understand why the current
> code attempts to "sleep" in the first place. If that code is only there
> to handle this kind of edge case, why even have it all?
I think the sleep was a poor choice now. But it's the same thing that
CVS does and I suspect nobody had a beter solution at the time.
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Philip Martin <ph...@codematters.co.uk>.
"C.A.T.Magic" <c....@gmx.at> writes:
> and the problem is neither update nor commit seem to fully restore
> the original speed.
An operation that both takes a write-lock and checks timestamps is
required, so commit should do the trick as should revert. Update
won't do it as it doesn't examine timestamps.
> (and update/commit would also require
> server access which you probably don't have when you bothered
> to put it on a memory stick in the first place.)
A Unix user can use 'SVN_EDITOR=/bin/false svn commit' which doesn't
get as far as committing and doesn't require server access.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by "C.A.T.Magic" <c....@gmx.at>.
kfogel@collab.net wrote:
> I'm puzzled -- what is the exact scenario by which the loss of
> timestamp precision (when copying a working copy to FAT) causes
> 'svn status' to take a long time?
if you do a 'touch' to every file you get a similar effect.
the timestamps in the entries file never get updated,
so svn status does a full compare on every file, every time
(even more annoying with TSVN).
and the problem is neither update nor commit seem to fully restore
the original speed. (and update/commit would also require
server access which you probably don't have when you bothered
to put it on a memory stick in the first place.)
:)
c.a.t.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Martin Tomes <li...@tomes.org>.
kfogel@collab.net wrote:
> Martin Tomes <li...@tomes.org> writes:
>
>>The entries file time and the actual file timestamp may differ after
>>the precision on the file timestamp is lost so a status has to compare
>>the content of the file and the pristine copy in order to find out if
>>the file content has changed. If the time in the entries file and the
>>datestamp on the file match then there is no need to do the diff.
>>This user had copied from NTFS to FAT (memory stick) and then back to
>>NTFS.
>
> So it's not merely that FAT might not notice events within 2 seconds
> of each other, but it actually loses precision (i.e., *can't* store)
> timestamps too close to each other when copied from another file
> system? I hadn't realized that.
>
> By the way, have you done any experiments to confirm that this is the
> cause of the slower status? It might also just be that the memory
> stick is, you know, slower :-).
By then it has been copied back off the memory stick onto another
computer, so it's not the speed of the memory stick.
--
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by kf...@collab.net.
Martin Tomes <li...@tomes.org> writes:
> The entries file time and the actual file timestamp may differ after
> the precision on the file timestamp is lost so a status has to compare
> the content of the file and the pristine copy in order to find out if
> the file content has changed. If the time in the entries file and the
> datestamp on the file match then there is no need to do the diff.
> This user had copied from NTFS to FAT (memory stick) and then back to
> NTFS.
>
> That is the current theory here!
So it's not merely that FAT might not notice events within 2 seconds
of each other, but it actually loses precision (i.e., *can't* store)
timestamps too close to each other when copied from another file
system? I hadn't realized that.
By the way, have you done any experiments to confirm that this is the
cause of the slower status? It might also just be that the memory
stick is, you know, slower :-).
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Michael <ec...@yahoo.com>.
--- Martin Tomes <li...@tomes.org> wrote:
> The entries file time and the actual file timestamp may differ
> after the precision on the file timestamp is lost so a status
> has to compare the content of the file and the pristine copy
> in order to find out if the file content has changed. If the
> time in the entries file and the datestamp on the file match then
> there is no need to do the diff. This user had copied from NTFS
> to FAT (memory stick) and then back to NTFS.
>
> That is the current theory here!
This isn't a solution, just a work-around, but people can use programs
like xxcopy or the cygwin cpio and tar to copy while preserving the
date and time.
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Martin Tomes <li...@tomes.org>.
kfogel@collab.net wrote:
> Martin Tomes <li...@tomes.org> writes:
>
>>FAT is also used on memory sticks. Someone here copied their working
>>copy onto a memory stick, took it home and copied the wc onto their
>>home machine and then wondered why svn status took so long. The loss
>>of timestamp precision meant that a lot of diffs were being done.
>
> I'm puzzled -- what is the exact scenario by which the loss of
> timestamp precision (when copying a working copy to FAT) causes
> 'svn status' to take a long time?
The entries file time and the actual file timestamp may differ after the precision on the file
timestamp is lost so a status has to compare the content of the file and the pristine copy in order
to find out if the file content has changed. If the time in the entries file and the datestamp on
the file match then there is no need to do the diff. This user had copied from NTFS to FAT (memory
stick) and then back to NTFS.
That is the current theory here!
--
Martin Tomes
echo 'martin at tomes x org x uk'\
| sed -e 's/ x /\./g' -e 's/ at /@/'
The Subversion Wiki is at http://www.subversionary.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by kf...@collab.net.
Martin Tomes <li...@tomes.org> writes:
> FAT is also used on memory sticks. Someone here copied their working
> copy onto a memory stick, took it home and copied the wc onto their
> home machine and then wondered why svn status took so long. The loss
> of timestamp precision meant that a lot of diffs were being done.
I'm puzzled -- what is the exact scenario by which the loss of
timestamp precision (when copying a working copy to FAT) causes
'svn status' to take a long time?
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Martin Tomes <li...@tomes.org>.
Toby Johnson wrote:
> Ben Reser wrote:
>
>> Windows 98, 98 SE, and ME are all at the end of their offical support
>> lifetime. Microsoft extended critical security bug fix support and paid
>> support until June 30th, 2006. If you're on these systems you should be
>> looking to replace them. So I consider these platforms deprecated.
>>
> Win 9x/Me isn't the only place FAT is used; to my knowledge, FAT is just
> about the only (easy, free) way to share filesystems between Windows
> (whether 9x/NT/2k/XP/2003) and Linux (by "share", I don't mean SMB or
> ICFS, I'm referring to e.g. dual-booters who want a partition to be
> visible to both Windows and Linux).
>
> I'm not arguing one way or the other towards a fix, just pointing out
> that there are very valid reasons for people to still be using FAT.
FAT is also used on memory sticks. Someone here copied their working copy onto a memory stick, took
it home and copied the wc onto their home machine and then wondered why svn status took so long.
The loss of timestamp precision meant that a lot of diffs were being done. Of course the solution
to this is to zip the files onto the memory stick, but it does show there are cases where FAT will
continue to be used for the foreseeable future. Users would expect to be able to check out onto a
memory stick in order to take the code home.
--
Martin Tomes
echo 'martin at tomes x org x uk'\
| sed -e 's/ x /\./g' -e 's/ at /@/'
The Subversion Wiki is at http://www.subversionary.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Ben Reser <be...@reser.org>.
On Thu, Jul 15, 2004 at 01:40:15PM -0400, Toby Johnson wrote:
> Win 9x/Me isn't the only place FAT is used; to my knowledge, FAT is just
> about the only (easy, free) way to share filesystems between Windows
> (whether 9x/NT/2k/XP/2003) and Linux (by "share", I don't mean SMB or
> ICFS, I'm referring to e.g. dual-booters who want a partition to be
> visible to both Windows and Linux).
>
> I'm not arguing one way or the other towards a fix, just pointing out
> that there are very valid reasons for people to still be using FAT.
We already break on FAT mounted on Linux becuase we can't change
permissions on files.
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Toby Johnson <to...@etjohnson.us>.
Ben Reser wrote:
>Windows 98, 98 SE, and ME are all at the end of their offical support
>lifetime. Microsoft extended critical security bug fix support and paid
>support until June 30th, 2006. If you're on these systems you should be
>looking to replace them. So I consider these platforms deprecated.
>
>
Win 9x/Me isn't the only place FAT is used; to my knowledge, FAT is just
about the only (easy, free) way to share filesystems between Windows
(whether 9x/NT/2k/XP/2003) and Linux (by "share", I don't mean SMB or
ICFS, I'm referring to e.g. dual-booters who want a partition to be
visible to both Windows and Linux).
I'm not arguing one way or the other towards a fix, just pointing out
that there are very valid reasons for people to still be using FAT.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Mark Phippard <Ma...@softlanding.com>.
Ben Reser <be...@reser.org> wrote on 07/15/2004 12:34:01 PM:
> On Thu, Jul 15, 2004 at 02:22:46PM +0200, Sven Mueller wrote:
> > Actually, this is not completely true. The cygwin compile of SVN works
> > quite fine on Windows 98 (at least 98SecondEdition onwards). And that
OS
> > does not deprecate FAT (VFAT/FAT32) at all, in fact it doesn't support
> > any other file system.
>
>
> Finally, everyone should remember that putting this in a 2.0 milestone
> doesn't mean someone won't decide to do it sooner. It means that in
> mine and some of the other developers opinions that this is something we
> want to have fixed before 2.0.
>
> People willing to try fixing this without starting over on the wc are
> welcome to. We'll evaluate the patch. If it is technically competent
> and complies with our compatability gurantees we'll apply it.
>
I have to say that I do not quite understand why this even falls into the
category of a bug. It seems like the circumstances that would trigger it
would almost have to be intentional, at which point, if the person really
had a desire to do what they are doing, all they have to do is make their
script sleep. I do not see the real world case where someone would run
into this bug.
Along that same line of reasoning, I do not understand why the current
code attempts to "sleep" in the first place. If that code is only there
to handle this kind of edge case, why even have it all?
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: file modifications get lost due to FAT 2s time resolution
Posted by Ben Reser <be...@reser.org>.
On Thu, Jul 15, 2004 at 02:22:46PM +0200, Sven Mueller wrote:
> Actually, this is not completely true. The cygwin compile of SVN works
> quite fine on Windows 98 (at least 98SecondEdition onwards). And that OS
> does not deprecate FAT (VFAT/FAT32) at all, in fact it doesn't support
> any other file system.
Windows 98, 98 SE, and ME are all at the end of their offical support
lifetime. Microsoft extended critical security bug fix support and paid
support until June 30th, 2006. If you're on these systems you should be
looking to replace them. So I consider these platforms deprecated.
http://support.microsoft.com/default.aspx?pr=LifeAn1
Addtionally the fix is going to require a great deal of effort because
all of the acceptable fixes do not fit within our code as it is designed
now. While we could increase the sleep time to 2.1 seconds that's not
really an acceptable solution.
However, people on Windows do have reasonable workarounds:
a) Don't script subversion without adding sleeps.
b) Compile their own version with a 2 second sleep.
I'll also point out that no developer so far has argued that this should
block any release. I set this to 2.0 which means it will block that
release. I.E. the redesign of the wc will not be complete unless we fix
this issue.
Finally, everyone should remember that putting this in a 2.0 milestone
doesn't mean someone won't decide to do it sooner. It means that in
mine and some of the other developers opinions that this is something we
want to have fixed before 2.0.
People willing to try fixing this without starting over on the wc are
welcome to. We'll evaluate the patch. If it is technically competent
and complies with our compatability gurantees we'll apply it.
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org