From jfh@jfh00.fernuni-hagen.de  Mon Jan 17 01:04:59 2000
Return-Path: <jfh@jfh00.fernuni-hagen.de>
Received: from jfh00.fernuni-hagen.de (jfh00.fernuni-hagen.de [132.176.7.6])
	by hub.freebsd.org (Postfix) with ESMTP id 2BD1F14BFF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Jan 2000 01:04:58 -0800 (PST)
	(envelope-from jfh@jfh00.fernuni-hagen.de)
Received: (from jfh@localhost)
	by jfh00.fernuni-hagen.de (8.9.3/8.9.3) id KAA64215;
	Mon, 17 Jan 2000 10:04:53 +0100 (CET)
	(envelope-from jfh)
Message-Id: <200001170904.KAA64215@jfh00.fernuni-hagen.de>
Date: Mon, 17 Jan 2000 10:04:53 +0100 (CET)
From: Fritz Heinrichmeyer <jfh@jfh00.fernuni-hagen.de>
Reply-To: jfh@jfh00.fernuni-hagen.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: cp -p does not preserve modification time with msdos-fs <Synopsis of the problem (one line)>
X-Send-Pr-Version: 3.2

>Number:         16155
>Category:       bin
>Synopsis:       cp -p does not preserve modification time with msdos-fs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 17 01:10:01 PST 2000
>Closed-Date:    Sun Jan 13 07:51:17 PST 2002
>Last-Modified:  Sun Jan 13 07:51:18 PST 2002
>Originator:     Fritz Heinrichmeyer
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
FernUni Hagen 
>Environment:
FBSD-Current
	

>Description:
	cp -p of files does not preserve modification time with copying
	from ufs to msdosfs.
	cp -p works ok with ufs ufs copies.

	

>How-To-Repeat:
	cp -p file from ufs to msdosfs filesystem.
	
	

>Fix:

	use cpio, tar etc. to do the job.

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Tue Feb 1 07:48:20 PST 2000 
Responsible-Changed-Why:  
Misfiled Pr. 
State-Changed-From-To: open->feedback 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 11:38:59 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=16155 
State-Changed-From-To: feedback->open 
State-Changed-By: mike 
State-Changed-When: Wed Aug 1 19:27:17 PDT 2001 
State-Changed-Why:  

Mail sent to originator bounces.  Leaving open for someone with an 
MS-DOS partition to test. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=16155 

From: setantae <setantae@submonkey.net>
To: freebsd-gnats-submit@FreeBSD.org, jfh@jfh00.fernuni-hagen.de
Cc:  
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Fri, 3 Aug 2001 17:10:14 +0100

 This problem does exist, yes.
 
 root@rhadamanth /# mount
 /dev/ad0s2a on / (ufs, local)
 /dev/ad0s2e on /home (ufs, local, soft-updates)
 /dev/ad0s2g on /tmp (ufs, local, soft-updates)
 /dev/ad0s2h on /usr (ufs, local, soft-updates)
 /dev/ad0s2f on /var (ufs, local, soft-updates)
 /dev/ad0s5 on /data (msdos, local)
 procfs on /proc (procfs, local)
 root@rhadamanth /# ls -al /COPYRIGHT 
 -r--r--r--  1 root  wheel  4735 Sep 26  2000 /COPYRIGHT
 root@rhadamanth /# cp -p /COPYRIGHT /data
 root@rhadamanth /# ls -al /data/COPYRIGHT 
 -r-xr-xr-x  1 root  wheel  4735 Aug  3 17:04 /data/COPYRIGHT
 root@rhadamanth /# 
 
 Ceri

From: setantae <setantae@submonkey.net>
To: setantae <setantae@submonkey.net>
Cc: freebsd-gnats-submit@FreeBSD.org, jfh@jfh00.fernuni-hagen.de
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Fri, 3 Aug 2001 17:48:08 +0100

 I should have added I am running a build of this morning's tree :
 
 FreeBSD rhadamanth.hounds 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #4: Fri Aug  3 12:49:51 BST 2001     root@rhadamanth.hounds:/usr/obj/usr/src/sys/RHADAMANTH  i386
 
 Ceri

From: Mike Barcroft <mike@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Sat, 4 Aug 2001 23:56:36 -0400

 Adding to Audit-Trail.
 
 ----- Forwarded message from Tony Fleisher <takhus@takhus.mind.net> -----
 
 Delivered-To: mike@freebsd.org
 X-Authentication-Warning: takhus.dyn.mind.net: fleisher owned process doing -bs
 Date: Thu, 2 Aug 2001 22:56:09 -0700 (PDT)
 From: Tony Fleisher <takhus@takhus.mind.net>
 X-X-Sender:  <fleisher@takhus.dyn.mind.net>
 To: <mike@FreeBSD.ORG>
 Cc: <freebsd-bugs@FreeBSD.ORG>
 Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
 In-Reply-To: <200108020228.f722SBc17521@freefall.freebsd.org>
 
 I am unable to reproduce this problem on a 5.0-Current (July 13) system.
 
 takhus#	ls -l
 total 76
 -rwxrwxr-x  1 fleisher  fleisher  36513 Jul 13 20:16 NETLOG.TXT
 takhus#	cp -p NETLOG.TXT /mnt/win98/temp/
 cp: chown: /mnt/win98/temp/NETLOG.TXT: Invalid argument
 takhus#	ls -l /mnt/win98/temp
 total 48
 -rwxrwxr-x  1 root  wheel  36513 Jul 13 20:16 NETLOG.TXT
 
 
 
 ----- End forwarded message -----

From: Mike Barcroft <mike@FreeBSD.org>
To: Tony Fleisher <takhus@takhus.mind.net>
Cc: Fritz Heinrichmeyer <jfh@jfh00.fernuni-hagen.de>,
	freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Sun, 5 Aug 2001 00:11:17 -0400

 On Thu, Aug 02, 2001 at 10:56:09PM -0700, Tony Fleisher wrote:
 > I am unable to reproduce this problem on a 5.0-Current (July 13) system.
 > 
 > takhus#	ls -l
 > total 76
 > -rwxrwxr-x  1 fleisher  fleisher  36513 Jul 13 20:16 NETLOG.TXT
 > takhus#	cp -p NETLOG.TXT /mnt/win98/temp/
 > cp: chown: /mnt/win98/temp/NETLOG.TXT: Invalid argument
 > takhus#	ls -l /mnt/win98/temp
 > total 48
 > -rwxrwxr-x  1 root  wheel  36513 Jul 13 20:16 NETLOG.TXT
 
 Interesting, the originator confirmed the bug still exists in
 4.4-PRERELEASE.  I don't see any changes between -STABLE and -CURRENT
 that would affect this.  So I believe it's probably a difference
 between the MS-DOS filesystems you and the originator are using.
 
 Would both of you mind supplying more details about which OS you
 used to formatted your respective MS-DOS partitions?
 
 Best regards,
 Mike Barcroft

From: Mike Barcroft <mike@FreeBSD.org>
To: Tony Fleisher <takhus@takhus.mind.net>
Cc: Fritz Heinrichmeyer <jfh@jfh00.fernuni-hagen.de>,
	freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Sun, 5 Aug 2001 00:17:52 -0400

 Oops I was mistaken, it wasn't the originator that confirmed it was
 still a problem in 4.4-PRERELEASE.  I'll follow up with that user
 separately, but I would still appreciate those details from you, Tony.
 
 Best regards,
 Mike Barcroft

From: Mike Barcroft <mike@FreeBSD.org>
To: setantae <setantae@submonkey.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Sun, 5 Aug 2001 00:25:21 -0400

 Another user has confirmed the bug doesn't exist in 5.0-CURRENT.
 I don't see any changes between -STABLE and -CURRENT that would
 affect this.  So I believe it's probably a difference between
 the MS-DOS filesystems you and the other user are using.
 
 Would you mind supplying more details about which OS you used to
 format your MS-DOS partition?
 
 Best regards,
 Mike Barcroft

From: setantae <setantae@submonkey.net>
To: Mike Barcroft <mike@FreeBSD.org>
Cc: setantae <setantae@submonkey.net>,
	freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Sun, 5 Aug 2001 16:23:55 +0100

 > Would you mind supplying more details about which OS you used to
 > format your MS-DOS partition?
 
 No problem - this is a FAT32 partition formatted under Windows2000
 Professional.  If the user running CURRENT has a different setup then
 let me know the details and if I have the relevant OS then I'll _try_ to
 replicate that.
 
 Ceri
 

From: Tony Fleisher <takhus@takhus.mind.net>
To: Mike Barcroft <mike@FreeBSD.org>
Cc: Tony Fleisher <takhus@takhus.mind.net>,
	Fritz Heinrichmeyer <jfh@jfh00.fernuni-hagen.de>,
	<freebsd-gnats-submit@FreeBSD.org>
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Sun, 5 Aug 2001 13:03:50 -0700 (PDT)

 I am using Win98SE FAT32 filesystem.
 
 On Sun, 5 Aug 2001, Mike Barcroft wrote:
 
 > On Thu, Aug 02, 2001 at 10:56:09PM -0700, Tony Fleisher wrote:
 > > I am unable to reproduce this problem on a 5.0-Current (July 13) system.
 > >
 > > takhus#	ls -l
 > > total 76
 > > -rwxrwxr-x  1 fleisher  fleisher  36513 Jul 13 20:16 NETLOG.TXT
 > > takhus#	cp -p NETLOG.TXT /mnt/win98/temp/
 > > cp: chown: /mnt/win98/temp/NETLOG.TXT: Invalid argument
 > > takhus#	ls -l /mnt/win98/temp
 > > total 48
 > > -rwxrwxr-x  1 root  wheel  36513 Jul 13 20:16 NETLOG.TXT
 >
 > Interesting, the originator confirmed the bug still exists in
 > 4.4-PRERELEASE.  I don't see any changes between -STABLE and -CURRENT
 > that would affect this.  So I believe it's probably a difference
 > between the MS-DOS filesystems you and the originator are using.
 >
 > Would both of you mind supplying more details about which OS you
 > used to formatted your respective MS-DOS partitions?
 >
 > Best regards,
 > Mike Barcroft
 >
 

From: ",,," <setantae@submonkey.net>
To: freebsd-gnats-submit@FreeBSD.org, mike@FreeBSD.org,
	takhus@takhus.mind.net
Cc:  
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Wed, 08 Aug 2001 20:51:29 +0100

 On Sun, 5 Aug 2001, Tony Fleisher wrote:
 
 > I am using Win98SE FAT32 filesystem.
 
 I'm afraid I don't have Win98SE here.
 Closest I've got is Win95osr2.5 - does anyone see any value in me testing
 with that ?
 
 Ceri

From: Ryan Thompson <ryan@sasknow.com>
To: <freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: bin/16155: cp -p does not preserve modification time with msdos-fs
Date: Sat, 12 Jan 2002 02:03:07 -0600 (CST)

 I have tried to reproduce this problem with 4.4-RELEASE, with the
 following filesystem types:
 
 	Win95 FAT-16
 	Win98 FAT-16
 	Win98 FAT-32
 
 Below is a transcript of one such session:
 
 Script started on Sat Jan 12 02:03:00 2002
 kat# mount_msdos /dev/ad0s1 /mnt
 kat# mount
 /dev/ad1s1a on / (ufs, local)
 /dev/ad1s1e on /usr (ufs, local, soft-updates)
 procfs on /proc (procfs, local)
 /dev/ad0s1 on /mnt (msdos, local)
 kat# pwd
 /tmp
 kat# echo foo > bar && touch -t 200001010000.00 bar
 kat# cp -p bar /mnt/bar
 kat# ll bar /mnt/bar
 -rwxr-xr-x  1 root  wheel  4 Jan  1  2000 /mnt/bar
 -rw-r--r--  1 root  wheel  4 Jan  1  2000 bar
 kat# ll -c bar /mnt/bar
 -rwxr-xr-x  1 root  wheel  4 Jan 12 02:03 /mnt/bar
 -rw-r--r--  1 root  wheel  4 Jan 12 02:03 bar
 kat# umount /mnt
 kat# exit
 exit
 
 Script done on Sat Jan 12 02:04:57 2002
 
 Unless someone can consistently reproduce this problem under a recent
 FreeBSD release, AND can explain exactly which MS-DOS filesystem types
 are affected, I think we can close this PR.
 
 This problem likely no longer exists, or was not a bug in the first
 place.
 
 - Ryan
 
 -- 
   Ryan Thompson <ryan@sasknow.com>
   Network Administrator, Accounts
 
   SaskNow Technologies - http://www.sasknow.com
   #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2
 
         Tel: 306-664-3600   Fax: 306-664-1161   Saskatoon
   Toll-Free: 877-727-5669     (877-SASKNOW)     North America
 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Sun Jan 13 07:51:17 PST 2002 
State-Changed-Why:  
Unable to reproduce problem on 4.4-RELEASE. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=16155 
>Unformatted:
