[issue1777] Corrupted repo using 9p network filesystem

Micah Stetson mercurial-bugs at selenic.com
Sun Aug 2 00:53:12 CDT 2009


New submission from Micah Stetson <micah at stetsonnet.org>:

The second commit to a repo mounted over 9p on Linux seems to corrupt the
repo.  I'm using Ubuntu jaunty.  I've tried this with hg 1.1.2 (the one that
comes with Ubuntu) and a freshly installed 1.3.1.  Below is a log ('%' is my
shell prompt), and I've attached a tar of the repo after running these commands.

% hg --version
Mercurial Distributed SCM (version 1.3.1)

Copyright (C) 2005-2009 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% cat /proc/mounts
 ... a number of filesystems omitted ...
/tmp/ns.aquila/rhema /n/rhema 9p
rw,sync,dirsync,relatimeunix,trans=unix,name=micah,uname=micah,noextend,nodev,uid=1000,gid=1000,dfltuid=1000,dfltgid=1000
0 0
% pwd
/n/rhema/home/micah
% hg debugfsinfo
exec: yes
symlink: no
case-sensitive: yes
% mkdir hgtest
% cd hgtest
% hg init
% hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
0 files, 0 changesets, 0 total revisions
% touch foo
% hg ci -A -m 'add foo'
adding foo
% hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
1 files, 1 changesets, 1 total revisions
% touch bar
% hg ci -A -m 'add bar'
adding bar
% hg verify
checking changesets
checking manifests
 manifest@?: index contains 45 extra bytes
warning: `manifest' uses revlog format 0
 manifest@?: rev 0 points to nonexistent changeset 90
 manifest@?: 000000000000 not in changesets
 ?: reading manifest delta 000000000000: list index out of range
crosschecking files in changesets and manifests
 0: changeset refers to unknown manifest 6a3df4de388f
 1: changeset refers to unknown manifest e313fc172615
 bar at 1: in changeset but not in manifest
 foo at 0: in changeset but not in manifest
checking files
2 files, 2 changesets, 2 total revisions
1 warnings encountered!
8 integrity errors encountered!
(first damaged changeset appears to be 0)

----------
files: hgtest.tgz
messages: 10260
nosy: mstetson
priority: bug
status: unread
title: Corrupted repo using 9p network filesystem

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1777>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hgtest.tgz
Type: application/x-gzip
Size: 1132 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090802/d543e90e/attachment.bin 


More information about the Mercurial-devel mailing list