From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 22:38:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24A0916A41F for ; Wed, 28 Dec 2005 22:38:15 +0000 (GMT) (envelope-from hika@bsdmon.com) Received: from smtp.bsdmon.com (hosting-28.42.rev.fr.colt.net [213.41.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78F0B43D53 for ; Wed, 28 Dec 2005 22:38:13 +0000 (GMT) (envelope-from hika@bsdmon.com) Received: from localhost (localhost [127.0.0.1]) by smtp.bsdmon.com (Postfix) with ESMTP id 9CA08375838 for ; Wed, 28 Dec 2005 23:38:12 +0100 (CET) Received: from smtp.bsdmon.com ([127.0.0.1]) by localhost (freefugu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 56407-07 for ; Wed, 28 Dec 2005 23:37:46 +0100 (CET) Received: from mail.bsdmon.com (14.128.101-84.rev.gaoland.net [84.101.128.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.bsdmon.com (Postfix) with ESMTP id 7B653375834 for ; Wed, 28 Dec 2005 23:37:46 +0100 (CET) Received: by sdf1.bsdmon.com (Postfix, from userid 1001) id 806DEB853; Wed, 28 Dec 2005 23:37:44 +0100 (CET) Date: Wed, 28 Dec 2005 23:37:44 +0100 From: Gilbert Cao To: freebsd-questions@freebsd.org Message-ID: <20051228223743.GA1075@bsdmon.com> References: <20051228112558.GA79302@bsdmon.com> <20051228215353.GA8743@echobase.hoth.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <20051228215353.GA8743@echobase.hoth.dk> X-Operating-System: FreeBSD 6.0-STABLE i386 Organization: BSDMon X-GPG-Key: http://www.bsdmon.com/public_key.gpg User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at bsdmon.com Subject: Re: Preserve date when cp over smbfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 22:38:15 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Dec 28, 2005 at 10:53:53PM +0100, Martin P. Hansen wrote: > On Wed, 28 Dec 2005, Gilbert Cao wrote: > > When I copy a single file with the cp utility, with -p flag, to > > a smbfs mounted directory, the modification datetime is not preserved a= nd it > > is set to the current datetime : >=20 > I've had this problem too, cp was also emitting a warning about utimes: >=20 > mph# mount -t smbfs -o-Eiso8859-1:cp850,-f660 //mph@light/e$ /mnt > mph% cp -p INFO /mnt > cp: utimes: /mnt/INFO: Operation not permitted I don't have this warning when copying files. All my mount directories are owned by my current (the one who does the copy) >=20 > This was because I wasn't ``owner'' of the files. Adding the -u flag fixe= d this. so, according to the mount_smbfs(8), the -u flag is not needed in my case. >=20 > mph# mount -t smbfs -o-Eiso8859-1:cp850,-f660,-umph //mph@light/e$ /mnt >=20 > Now my modification time is preserved. The problem still persists in my case : My samba server is a FreeBSD machine (//mph@light/e$ <- I guess it is a Windows machine) But I still don't know why modification time is preserved when copying with gqview ... --=20 -------------------------------- (hika) Gilbert Cao http://www.miaouirc.com - MiaouIRC Project 2002-2003 http://www.bsdmon.com - The BSD DMON Power to serve IRC : #miaule at IRCNET Network -------------------------------- --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDsxO3SyQfFTqAEpcRAln1AKCIma0fWquWnZRgkY8tsxWIiJ3cDQCglj83 S+6GccqT3HgXi/3OX8PHPYA= =DhAO -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--