Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2012-01-02 Thread David du Colombier
> Would you care to share? Sure. But beware it's just a quick hack. diff -r 92a579c6549c src/cmd/9pfuse/main.c --- a/src/cmd/9pfuse/main.c Mon Dec 12 16:44:50 2011 -0500 +++ b/src/cmd/9pfuse/main.c Mon Jan 02 19:00:00 2012 +0100 @@ -837,6 +837,8 @@ void fusereadlink(FuseMsg *m) { +

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2012-01-02 Thread smiley
David du Colombier <0in...@gmail.com> writes: > OK, I found the problem. At least concerning 9pfuse and symlink. OK, great. So I'm not going crazy, after all. ;) > I've something that work, but it's ugly. Would you care to share? > As supposed, other Unix special files don't seem to be curre

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2012-01-02 Thread David du Colombier
> When I use 9pfuse to mount the file system, I get a little further: > > lrw-rw 1 root root6 Mar 10 2005 video -> > -rw-rw 1 root root3 Mar 10 2005 video10 > > The symbolic links show up as links, but with the null string ("") as > target. The Linux kernel interperets

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2012-01-02 Thread David du Colombier
> OK, I'm stumped. Maybe I'm making this more complicated than it has > to be. Posing my question as simply as possible: If plan9port's vac > is used to archive a Linux file system to venti, is there any way to > access that file system in a way that exposes symbolic links, device > nodes, socket

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2012-01-01 Thread smiley
OK, I'm stumped. Maybe I'm making this more complicated than it has to be. Posing my question as simply as possible: If plan9port's vac is used to archive a Linux file system to venti, is there any way to access that file system in a way that exposes symbolic links, device nodes, sockets, and FIF

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2011-12-30 Thread David du Colombier
> Who decided that .u is deprecated? I definitely didn't and I am using > it for all my file servers that are supposed to work on Unix. Sorry, I mean the plan9port support for 9p2000.u is deprecated. It was removed in december 2010. -- David du Colombier

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2011-12-30 Thread Latchesar Ionkov
On Wed, Dec 28, 2011 at 4:48 PM, David du Colombier <0in...@gmail.com> wrote: > Forget about 9p2000.u, it's deprecated. Who decided that .u is deprecated? I definitely didn't and I am using it for all my file servers that are supposed to work on Unix. Thanks, Lucho

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2011-12-29 Thread David du Colombier
> IIRC, the RFC for it didn't indicate deprecated status. (Perhaps IETF > could use an update.) Assuming it has been deprecated, with what has > 9p2000.u been replaced? As far I know, these RFCs were early draft and were never completed nor submitted. I think the 9P2000.u authors moved to a new

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2011-12-29 Thread smiley
David du Colombier <0in...@gmail.com> writes: > The problem you are encountering is that v9fs doesn't translate > uid/gid strings back to their numeric equivalent in /etc/passwd. > Since Unix doesn't know how to handle these strings, it falls > back to -1. I had suspected that. However, the uid/

Re: [9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2011-12-28 Thread David du Colombier
> When I mount the file system, all the files are owned by uid = gid = > (-2 mod 2^32), unless I tell the Linux kernel to mount the fs as a > specific user/group. In the latter case, all files present with the > specified user/group (as expected). I can't find any way to get at > the actual uid/g

[9fans] p9p vac/vacfs compatibility: uid/gid, ctime, 9P2000.L, 9pserve

2011-12-28 Thread smiley
Hello, I'm trying to use vac/vacfs on p9p, using the Linux v9fs driver (-t 9p) with unix domain sockets as transport (-o trans=unix). And I'm confused. :( When I mount the file system, all the files are owned by uid = gid = (-2 mod 2^32), unless I tell the Linux kernel to mount the fs as a spec

Re: [9fans] p9p vac troubles, possible fix and questions?

2009-07-26 Thread Russ Cox
Fixed in http://code.swtch.com/plan9port/changeset/c9f799b3ad09/ Thanks.

Re: [9fans] p9p vac troubles, possible fix and questions?

2009-07-24 Thread david bulkow
> > Also, has anyone ever been able to debug p9p apps with gdb? I try to > set breakpoints, but the apps just blow right through them, I'm not > sure why... if not, is there any other answer for debugging p9p apps? > For starters try setting: (gdb) set follow-fork-mode child before running the p

[9fans] p9p vac troubles, possible fix and questions?

2009-07-23 Thread Venkatesh Srinivas
I believe that the bug that people have been having with vac and venti in p9p (create bsize 8192 psize 8160vac: vacfscreate: vacfileroot: read too small: asked for 0 need at least 389) can be fixed by this change: (in plan9port/src/libventi/fcall.c:185), change "f->count = (buf[2] << 8) | buf[3];"

Re: [9fans] p9p vac issue

2009-06-26 Thread Fernan Bolando
On Tue, Jun 23, 2009 at 12:50 AM, erik quanstrom wrote: >> looks like it's related to the error above. you might want to downgrade to >> http://swtch.com/plan9port/plan9port-20090609.tgz > > fortune tells me > > The most effective debugging tool is still careful thought, > coupled with judiciously

Re: [9fans] p9p vac issue

2009-06-22 Thread erik quanstrom
> looks like it's related to the error above. you might want to downgrade to > http://swtch.com/plan9port/plan9port-20090609.tgz fortune tells me The most effective debugging tool is still careful thought, coupled with judiciously placed print statements. -Kernighan, 1978 i don't think t

Re: [9fans] p9p vac issue

2009-06-22 Thread Fernan Bolando
if you want. >> >> Mathieu >> >> >> -- Forwarded message -- >> From: Adrian Tritschler >> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> >> Date: Mon, 22 Jun 2009 21:33:22 +1000 >> Subject: Re: [9fans] p9p vac issue >&

Re: [9fans] p9p vac issue

2009-06-22 Thread Fernan Bolando
--- > From: Adrian Tritschler > To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> > Date: Mon, 22 Jun 2009 21:33:22 +1000 > Subject: Re: [9fans] p9p vac issue > 2009/6/22 Mathieu L. >> >> Indeed, this works for me as well. > > >> >> I&#x

Re: [9fans] p9p vac issue

2009-06-22 Thread Mathieu L.
if you can't get an old one from swtch.com, I can tar this mid-february tree I have - or rather only the necessary parts - and serve it to you if you want. Mathieu --- Begin Message --- 2009/6/22 Mathieu L. > Indeed, this works for me as well. > I've just migrated the arenas, bloom and isect

Re: [9fans] p9p vac issue

2009-06-22 Thread Josh Wood
OK, so all I need now is to get my hands on an old copy of the p9p binaries... the only old ones I've got are carefully backed up inside the venti that I can't get at :) I'm not sure why you may need binaries as you say, but older source revs can be pulled from hg or cvs, also giving a ch

Re: [9fans] p9p vac issue

2009-06-22 Thread Adrian Tritschler
2009/6/22 Mathieu L. > Indeed, this works for me as well. > I've just migrated the arenas, bloom and isect to another machine with > a p9p tree from mid February and I had no problem unvacing my data > there. And for what it's worth, checkindex on that machine didn't report > any problem while

Re: [9fans] p9p vac issue

2009-06-22 Thread Mathieu L.
Indeed, this works for me as well. I've just migrated the arenas, bloom and isect to another machine with a p9p tree from mid February and I had no problem unvacing my data there. And for what it's worth, checkindex on that machine didn't report any problem while it did on the machine with the rece

[9fans] p9p vac issue

2009-06-22 Thread phætøn
X-No-Archive: Yes This is not much of a solution to the problem, however I have temporarily resolved my issue by performing vac/unvac using my p9p tree from mid-March, and then resorting to the latest p9p for vacfs/9pfuse in order to mount my archives. For those researching the issue, I

[9fans] p9p vac issue

2009-06-20 Thread phætøn
X-No-Archive: Yes Adrian T. wrote:> There were a few followups with a subject of> "p9p venti problem", but no fix. I had looked up that thread, and the thread that Venkatesh S.refers to earlier with the subject "P9P venti/copy bug?" from9fans:2009/02:198. Nathaniel F. suggests a patch in 9fans:

Re: [9fans] p9p vac issue

2009-06-20 Thread Adrian Tritschler
Same problem that I've had since about the 10th of June on two separate p9p ventis on two machines, I can no longer get data into them or out of them. There were a few followups with a subject of "p9p venti problem", but no fix. If you get a solution please let me know what it is. thanks A

[9fans] p9p vac issue

2009-06-20 Thread phætøn
X-No-Archive: YesI'm using the latest p9p and the following fails for a simple directory A containing a file a with the text Aa:vac -h localhost -v -f A.vac AThe error is:create bsize 8192 psize 8160vac: vacfscreate: vacfileroot: read too small: asked for 0 need at least 389The archive is a fre

[9fans] p9p vac

2008-07-02 Thread Russ Cox
the vac -m bug is fixed. (it was fixed earlier tonight, i just forgot to push the fix to cvs.) if you use vac -m to manage a dump-like tree of backups, you will likely be interested in the new -a flag, which automates the process. also, -e takes glob patterns now, and -x will read patterns from

Re: [9fans] p9p vac merge problem

2008-07-02 Thread myron cheung
Sorry Russ, I just updated again from CVS and rebuilt p9p, but the problem remains. P.S. I still keep an older version of p9p which works as far as "vac -m" is concerned. Myron Russ Cox wrote: I recently updated my p9p from the CVS respository, and vac fails when I try to use the -m option

Re: [9fans] p9p vac merge problem

2008-07-02 Thread Russ Cox
> I recently updated my p9p from the CVS respository, and vac fails when I try > to use the -m option for merging. I am not sure whether the cause of the > problem is in venti or in vac. I did not test that well enough. It should be fixed now. Russ

[9fans] p9p vac merge problem

2008-07-02 Thread Myron Cheung
Dear 9fans, I recently updated my p9p from the CVS respository, and vac fails when I try to use the -m option for merging. I am not sure whether the cause of the problem is in venti or in vac. Here is a transcript of what I did: vac -f main.vac -m main vac: could not walk main in main/2008-05-0