9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: anooop.anooop@gmail.com
To: 9fans@9fans.net
Subject: Re: [9fans] Regarding venti block size
Date: Tue, 17 Feb 2009 09:53:12 +0000	[thread overview]
Message-ID: <2c60577b-edf1-4f3c-bdd9-d8b1b2859a5b@x38g2000yqj.googlegroups.com> (raw)
In-Reply-To: <fd01f51d-65fc-4fb2-ac68-3b30cfa3b631@b16g2000yqb.googlegroups.com>

> i guess i'm not up to speed yet.  what is the advantage
> of supporting blocks of different sizes?
>
> - erik

I am doing a part of a bigger project which involves splitting files
into many pieces and storing them separately for security reasons. I
thought of using each piece as a block of data to be stored on a venti
server. But since the number of parts a file will be split into need
to be constant the block size varies. But may be this is not the right
way to do it. I am now re-considering splitting files into number of
pieces = filesize/block size.

>  If you don't care
> about coalescing duplicate blocks (and you
> don't seem to), why not use an extent-based
> file system instead?
>
> Russ

It is necessary for me to avoid duplicate blocks and hence it doesnt
look like other alternatives will work here.

> maybe i'm being stupid, but isn't that precisely what the
> vac format (as documented inhttp://www.cs.bell-labs.com/sys/doc/fossil.pdf)
> and its block tree structure is there for?

I have to learn more about vac before I say anything about this. I
will get back after catching up. but what I understand is vac backs up
file system trees on the server. I am on linux and using plan9port.And
I am using raw partitions for arena, index and bloom filter and do not
have a fossil fs. If vac can store a single file and retrieve it, then
I will be able to use this to store the parts of the original file.

I was using "venti/write -h 127.0.0.1 < datablock" to store file parts
until I hit the upper limit when I started using "comparatively"
bigger files which gave bigger than 64k parts.

~Anoop



  parent reply	other threads:[~2009-02-17  9:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16 10:25 anooop.anooop
2009-02-16 11:52 ` matt
2009-02-16 14:16   ` erik quanstrom
2009-02-16 14:20 ` erik quanstrom
2009-02-16 15:56 ` anooop.anooop
2009-02-16 16:17   ` matt
2009-02-16 17:03   ` Russ Cox
2009-02-16 17:11     ` erik quanstrom
2009-02-16 17:17 ` roger peppe
2009-02-16 17:28 ` anooop.anooop
2009-02-16 19:08   ` lucio
2009-02-16 19:24     ` ron minnich
2009-02-17  9:53     ` anooop.anooop
2009-02-17  0:17   ` matt
2009-02-17  9:53 ` anooop.anooop [this message]
     [not found] ` <2c60577b-edf1-4f3c-bdd9-d8b1b2859a5b@x38g2000yqj.googlegroups.co>
2009-02-17 13:38   ` erik quanstrom

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=2c60577b-edf1-4f3c-bdd9-d8b1b2859a5b@x38g2000yqj.googlegroups.com \
    --to=anooop.anooop@gmail.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).