9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: YAMANASHI Takeshi <uncover@beat.cc.titech.ac.jp>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] how to truncate a file?
Date: Fri, 15 Oct 2004 10:14:19 +0900	[thread overview]
Message-ID: <b02cfdf8f17b4221276a52112bc1c27c@orthanc.cc.titech.ac.jp> (raw)

On Fri Oct 15 09:42:16 JST 2004, geoff@collyer.net wrote:
> In theory, wstat with the desired file length will do it, though ken's
> fs doesn't implement it currently.

Your theory seems to be approved by Russ's ftruncate.
And also, I was warned that it depends on underlying file server
if it works or not (fossil does while ken's fs doesn't).

Thanks, Geoff and Russ.
-- 




             reply	other threads:[~2004-10-15  1:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15  1:14 YAMANASHI Takeshi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-10-15  2:04 YAMANASHI Takeshi
2004-10-15  0:29 YAMANASHI Takeshi
2004-10-15  0:41 ` geoff
2004-10-15  0:52   ` Russ Cox

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=b02cfdf8f17b4221276a52112bc1c27c@orthanc.cc.titech.ac.jp \
    --to=uncover@beat.cc.titech.ac.jp \
    --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).