[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Signing causes to loose hardlinks.
- From: Jeff Johnson <jbj redhat com>
- To: rpm-list redhat com
- Subject: Re: Signing causes to loose hardlinks.
- Date: Tue, 26 Aug 2003 09:50:00 -0400
On Tue, Aug 26, 2003 at 03:01:47PM +0200, Dag Wieers wrote:
> On Mon, 25 Aug 2003, Jeff Johnson wrote:
>
> > On Mon, Aug 25, 2003 at 11:12:08AM -0400, Jeff Johnson wrote:
> > >
> > > Hmmm, what file system? Adding a suffix like that was not done by
> > > rpm code afaik.
> >
> > Hmmm, total brain fart on my part. Signing behavior wrto hardlinks
> > was changed to avoid dataloss if/when ENOSPC was encountered while
> > rewriting into the original file.
> >
> > IIRC (and I sometimes forget, sigh) this was on a RHL 7.1 time frame.
>
> Ok this makes sense. But couldn't you copy the original file and do the
> same thing on the hardlink, if it fails you won't have dataloss either.
>
Sure, I can do anything and everything, but it's hardly worth the effort
for something as obscure as signing hardlinked packages on full partitions.
> At least this way you only loose the hardlinks when there's actually
> something going wrong (like ENOSPC), but you won't have any dataloss.
If you really want to sign hardlinked pkgs, look at lib/rpmchecksig.c
from rpm-4.0. The change is not hard at all. Link statically and use
rpmsign, not rpm, to get the job done.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]