Re: 2.6.21-git10/11: files getting truncated on xfs? or maybe an nlink problem?

From: Matt Mackall
Date: Wed May 09 2007 - 18:44:46 EST


On Wed, May 09, 2007 at 03:17:58PM -0700, Jeremy Fitzhardinge wrote:
> Matt Mackall wrote:
> >> Mercurial uses a strictly append-only model for updating its repo files,
> >> but it looks like maybe an append operation didn't stick.
> >>
> >
> > (Unless you're using the mq extension, which regularly truncates
> > files. But you're definitely the first person to run into this sort of
> > thing in any case.)
> >
>
> Which I am, extensively, but not on the repo that got damaged. That's
> why I was wondering about the nlink issues. If I qpop a bunch of
> patches after just pushing them, won't it simply truncate the file?

Yep. But it will break links before doing that. Basically all opens go
through a function that breaks links.

--
Mathematics is the supreme nostalgia of our time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/