From owner-freebsd-questions@FreeBSD.ORG Thu Dec 29 15:52:11 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 73C9B16A41F for ; Thu, 29 Dec 2005 15:52:11 +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 DC94643D4C for ; Thu, 29 Dec 2005 15:52:10 +0000 (GMT) (envelope-from hika@bsdmon.com) Received: from localhost (localhost [127.0.0.1]) by smtp.bsdmon.com (Postfix) with ESMTP id C7F2C37609D for ; Thu, 29 Dec 2005 16:52:08 +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 82999-01 for ; Thu, 29 Dec 2005 16:52:00 +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 E96B337606C for ; Thu, 29 Dec 2005 16:51:59 +0100 (CET) Received: by sdf1.bsdmon.com (Postfix, from userid 1001) id 6AB13B853; Thu, 29 Dec 2005 16:51:56 +0100 (CET) Date: Thu, 29 Dec 2005 16:51:56 +0100 From: Gilbert Cao To: freebsd-questions@freebsd.org Message-ID: <20051229155156.GB1075@bsdmon.com> References: <20051228112558.GA79302@bsdmon.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aM3YZ0Iwxop3KEKx" Content-Disposition: inline In-Reply-To: <20051228112558.GA79302@bsdmon.com> 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: Thu, 29 Dec 2005 15:52:11 -0000 --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 28, 2005 at 12:25:58PM +0100, Gilbert Cao wrote: >=20 > I have quickly looked into the source code of both cp and gqview, and it = seems > that cp relies on utimes(), and gqview relies on utime(). >=20 Hi, I have finally done my little investigation when applying utime() or utimes= () to a SMB file path : In both case, the access and modification times are preserved. So it seems that the cp and tar utilities does not its job about preserving times over SMB path (I still don't know why ...). I have a source code example available, if anyone is interested. --=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 -------------------------------- --aM3YZ0Iwxop3KEKx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDtAYbSyQfFTqAEpcRAkHwAJ9UlR6fLii8UuhOq/A4aanAavKPOQCfcJve 7puu7GUKRWPRgmPM5zZtvhg= =nGzy -----END PGP SIGNATURE----- --aM3YZ0Iwxop3KEKx--