All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sstate.bbclass: update .siginfo atime
@ 2017-03-01 14:28 Ed Bartosh
  2017-03-04 10:38 ` Richard Purdie
  2017-03-06 11:14 ` Burton, Ross
  0 siblings, 2 replies; 12+ messages in thread
From: Ed Bartosh @ 2017-03-01 14:28 UTC (permalink / raw)
  To: openembedded-core

.siginfo files are not being accessed from local or NFS-mounted
sstate mirrors when sstate package is installed, so their atime
is not updated. If sstate mirror is cleaned based on access time,
they get deleted, even though they are still being used.

Updated atime of .siginfo symlinks with 'touch -a'. This command
dereferences symlinks pointing to the local mirror and updates
atime of the .siginfo file on the mirror.

[YOCTO #10857]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
 meta/classes/sstate.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 465fdcf..aa95964 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -753,6 +753,8 @@ sstate_unpack_package () {
 	[ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
 	[ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
 	[ ! -w ${SSTATE_PKG}.siginfo ] || [ ! -e ${SSTATE_PKG}.siginfo ] || touch --no-dereference ${SSTATE_PKG}.siginfo
+	# update .siginfo atime on local/NFS mirror
+	[ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
 }
 
 BB_HASHCHECK_FUNCTION = "sstate_checkhashes"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-03-07 11:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-01 14:28 [PATCH] sstate.bbclass: update .siginfo atime Ed Bartosh
2017-03-04 10:38 ` Richard Purdie
2017-03-06 11:14 ` Burton, Ross
2017-03-06 12:37   ` Ed Bartosh
2017-03-06 15:31   ` [PATCH v2] " Ed Bartosh
2017-03-06 16:49     ` Burton, Ross
2017-03-06 17:50       ` Ed Bartosh
2017-03-06 19:31         ` Patrick Ohly
2017-03-06 19:58           ` Ed Bartosh
2017-03-06 21:46             ` Patrick Ohly
2017-03-07 11:29               ` Peter Kjellerstedt
2017-03-06 20:49         ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.