From owner-freebsd-current@FreeBSD.ORG Wed Feb 25 13:40:28 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E52370 for ; Wed, 25 Feb 2015 13:40:28 +0000 (UTC) Received: from mx143.netapp.com (mx143.netapp.com [216.240.21.24]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mx143.netapp.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F3D9E937 for ; Wed, 25 Feb 2015 13:40:27 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.09,645,1418112000"; d="asc'?scan'208";a="25917339" Received: from hioexcmbx05-prd.hq.netapp.com ([10.122.105.38]) by mx143-out.netapp.com with ESMTP; 25 Feb 2015 05:34:52 -0800 Received: from HIOEXCMBX07-PRD.hq.netapp.com (10.122.105.40) by hioexcmbx05-prd.hq.netapp.com (10.122.105.38) with Microsoft SMTP Server (TLS) id 15.0.995.29; Wed, 25 Feb 2015 05:34:52 -0800 Received: from HIOEXCMBX07-PRD.hq.netapp.com ([::1]) by hioexcmbx07-prd.hq.netapp.com ([fe80::90b4:b24a:2e3b:2056%21]) with mapi id 15.00.0995.031; Wed, 25 Feb 2015 05:34:52 -0800 From: "Eggert, Lars" To: "current@freebsd.org" Subject: FreeBSD FUSE calls truncate() on read-only files Thread-Topic: FreeBSD FUSE calls truncate() on read-only files Thread-Index: AQHQUP/VwHChp6TwukC1a1H1Ww9z6w== Date: Wed, 25 Feb 2015 13:34:52 +0000 Message-ID: <6676D082-5C06-4E59-B22C-5C00D1FD229F@netapp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.2070.6) x-originating-ip: [10.122.56.79] Content-Type: multipart/signed; boundary="Apple-Mail=_CB347791-2515-49DA-B930-B709DD527588"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 13:40:28 -0000 --Apple-Mail=_CB347791-2515-49DA-B930-B709DD527588 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, this came up when trying to port tup (https://github.com/gittup/tup) to = FreeBSD. Even though we are opening the file read-only with cat, FUSE calls = truncate() on it, which modifies its mtime and this screws up tup. See = https://github.com/gittup/tup/issues/198 Anyone know why FreeBSD's FUSE is doing this? Thanks, Lars --Apple-Mail=_CB347791-2515-49DA-B930-B709DD527588 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQCVAwUBVO3PetZcnpRveo1xAQKA3gP/YkKnEICJuASEc/JHOvRE2Rzo6h1jr1Pf cdWBCeEQoKoFbSNyx0+09x88cnmoTX9/Tp8mNmcLSiVhF4qOdkusBxAlNsA5oBbl 7mK3k0xDBXTNjyp+129idNOiCOy/GZdj8FvyfDiuGZOr8ha9fJDWRUwizaDV5Qem Nd3rQCm19mk= =dqsV -----END PGP SIGNATURE----- --Apple-Mail=_CB347791-2515-49DA-B930-B709DD527588--