9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: cinap_lenrek@gmx.de
To: 9fans@cse.psu.edu
Subject: Re: [9fans] venti woes with brand new install
Date: Sat,  8 Sep 2007 21:08:34 +0200	[thread overview]
Message-ID: <39e534b3d8edea8971c2bc53088928d6@gmx.de> (raw)
In-Reply-To: <3e90b031be3e4fc9eafb1eeadfb9f9e1@quanstro.net>

> n/sources/plan9//sys/src/cmd/venti/srv/ifile.c:36,43 - ifile.c:36,44
>   			freepart(p);
>   			return -1;
>   		}
> - 		b->data += m;
> - 		b->len -= m;
> + 		memmove(b->data, b->data+m, 8192-m);

/*
 * > + 		memset(b->data+8192-m, 0, 8192-m);
 */

memset(b->data + 8192-m, 0, m);

> +
>   		z = memchr(b->data, 0, b->len);
>   		if(z)
>   			b->len = z - b->data;

cinap



  parent reply	other threads:[~2007-09-08 19:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-08 15:27 cinap_lenrek
2007-09-08 16:49 ` erik quanstrom
2007-09-08 17:07   ` cinap_lenrek
2007-09-08 19:08   ` cinap_lenrek [this message]
2007-09-08 21:45     ` John Soros
  -- strict thread matches above, loose matches on Subject: below --
2007-09-08 12:09 John Soros
2007-09-08 13:43 ` erik quanstrom
2007-09-08 14:27   ` gabidiaz
2007-09-09 12:01   ` John Soros
2007-09-09 12:05     ` erik quanstrom
2007-09-09 12:57       ` John Soros
2007-09-09 13:08         ` Uriel
2007-09-09 13:13         ` erik quanstrom
2007-09-09 13:22           ` Uriel
2007-09-10  8:12     ` SHRIZZA
2007-09-10  8:39       ` Uriel

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=39e534b3d8edea8971c2bc53088928d6@gmx.de \
    --to=cinap_lenrek@gmx.de \
    --cc=9fans@cse.psu.edu \
    /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).