9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@9fans.net
Subject: Re: [9fans] p9p vbackup on linux
Date: Thu,  3 Jul 2008 17:59:12 -0400	[thread overview]
Message-ID: <20080703215705.E47401E8C87@holo.morphisms.net> (raw)
In-Reply-To: <9b6771dc699292d62556752b53d8f420@9srv.net>

> Adding those lines verbatim to a file 'config', I then ran:
> 	vnfs -c 16k config
> and got back:
> 	handle da...0d
> I don't yet fully understand the implications of that 16 char hex string,
> so I'm not posting it here, but I didn't seem to need it anywhere else.

It was just a debugging print.  It's the root handle that
clients need to know to connect to the NFS server.
It used to be randomly generated each time vnfs started,
but I found it was much easier to use a fixed one.
The bytes you didn't post are the first 8 bytes of
sha1sum /dev/zero.

> On my venti server, I got a *lot* of these messages:
> 	venti/venti: bucket overflow XXX
> but I think I understand that (this is a junk venti server used for
> experimentation, so i didn't spend any time sizing things appropriately)

Right, your index is too small.

> 4)	It looks like libdiskfs allows vnfs to serve up arbitrary disk image
> formats (hfs, ffs, ufs, &c), which is awesome, but it'd be nice if it could
> also serve vac snapshots. Anything peculiar about vac that inhibits this,
> or is it just a matter of extra code in libdiskfs (or in vnfs, to switch
> between libdiskfs and something for vac)?

Better to just use vacfs -m if you want to view vac,
and skip NFS entirely.  NFS doesn't let you see
close events, so you have to make up handles
that can last an arbitrarily long time.  This is pretty
easy if you're serving a fixed set of Unix file system
disk images: the handle specifies the particular disk
image and  the inode in that disk image.  There's no
similarly easy handle to use for vac archives.
(Also remember that the handle has to have enough
information to make dotdot work!)

Also, vac -a is a viable alternative to vbackup, and
it lets you exclude certain directories or files from
the backup.

Russ



  reply	other threads:[~2008-07-03 21:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-25 10:22 John Soros
2008-06-25 13:21 ` a
2008-07-03 21:59   ` Russ Cox [this message]
2008-07-03 23:16     ` a

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080703215705.E47401E8C87@holo.morphisms.net \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).