From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JVSYH-0007Lj-RG for garchives@archives.gentoo.org; Sat, 01 Mar 2008 14:19:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FA0BE01E8; Sat, 1 Mar 2008 14:18:59 +0000 (UTC) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by pigeon.gentoo.org (Postfix) with ESMTP id 8B8FBE01E8 for ; Sat, 1 Mar 2008 14:18:59 +0000 (UTC) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 575F4A8B22; Sat, 1 Mar 2008 09:18:59 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 01 Mar 2008 09:18:59 -0500 X-Sasl-enc: jDosBXKkRbfcopc9930WRlrmqg4r3n+iJlstFdn0rAN1 1204381138 Received: from [192.168.2.2] (dslb-088-072-145-214.pools.arcor-ip.net [88.72.145.214]) by mail.messagingengine.com (Postfix) with ESMTPSA id 8949E109FF for ; Sat, 1 Mar 2008 09:18:58 -0500 (EST) Subject: Re: [gentoo-user] Set a property on a file and have it remove when the file is modified? From: Florian Philipp To: gentoo-user@lists.gentoo.org In-Reply-To: <47C94EB4.1060803@gmail.com> References: <47C94EB4.1060803@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-7nhICXOPLAPoFLvMsQBq" Date: Sat, 01 Mar 2008 15:18:48 +0100 Message-Id: <1204381128.5915.17.camel@NOTE_GENTOO64.PHHEIMNETZ> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 X-Archives-Salt: cabc5bda-d7c4-468d-92ee-8385c4c52a51 X-Archives-Hash: 58605546d9a2d4b0b95d1ea8759dbf14 --=-7nhICXOPLAPoFLvMsQBq Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2008-03-01 at 13:40 +0100, Erik wrote: > Is it possible to set a property on a file and have it remove=20 > automatically when the file is modified? >=20 > Suppose that we have a style checker that checks a lot of source code=20 > files. Once it examined a file and found it to be clean, it should set a=20 > property on the file ("style-clean"). Whenever the style checker is=20 > executed it skips files with this property. Whenever the file is=20 > modified, the filesystem removes the property. >=20 > Is this possible? Which filesystems does it work on? Looks like you are looking for extended attributes: http://en.wikipedia.org/wiki/Extended_attributes But I don't think you can make them "disappear" by modifying a file. Inotify might be a solution for that problem: http://en.wikipedia.org/wiki/Inotify Alternatively you could check the file modification times as stored by default on every FS. You could use "find" for that or "ls --full-time". --=-7nhICXOPLAPoFLvMsQBq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBHyWXIqs4uOUlOuU8RArpcAJ9W+ju6OZRWOB+fWSyG1KEruD+SpgCfSBNp LgBdS4AacnffP77mixdY4+g= =vsid -----END PGP SIGNATURE----- --=-7nhICXOPLAPoFLvMsQBq-- -- gentoo-user@lists.gentoo.org mailing list