Date: Thu, 29 Dec 2005 16:51:56 +0100 From: Gilbert Cao <hika@bsdmon.com> To: freebsd-questions@freebsd.org Subject: Re: Preserve date when cp over smbfs Message-ID: <20051229155156.GB1075@bsdmon.com> In-Reply-To: <20051228112558.GA79302@bsdmon.com> References: <20051228112558.GA79302@bsdmon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051229155156.GB1075>
