9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David du Colombier <0intro@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] fossil pb: a clue?
Date: Fri, 13 Jan 2012 14:59:52 +0100	[thread overview]
Message-ID: <20120113145952.0bc64b61@wks-ddc.exosec.local> (raw)
In-Reply-To: <20120113113026.GA419@polynum.com>

How have you deleted the plan9.iso file?

If you have used rm(1) or fossilcons(4) remove, the blocks
should be properly unallocated from Fossil. But if you used
fossilcons(4) clri for example, you have to manually reclaim
the abandoned storage with clre and bfree, with the help of
fossil/flchk or fossilcons(4) check.

See the following illustration:

# our current empty fossil
main: df
main: 40,960 used + 1,071,710,208 free = 1,071,751,168 (0% used)

# we copy a file on fossil, then remove it properly
% cp /386/9pcf /n/fossil
main: df
main: 3,661,824 used + 1,068,089,344 free = 1,071,751,168 (0% used)
main: remove /active/9pcf
main: df
main: 57,344 used + 1,071,693,824 free = 1,071,751,168 (0% used)

# we copy a file on fossil, then remove it with clri
% cp /386/9pcf /n/fossil
main: df
main: 3,661,824 used + 1,068,089,344 free = 1,071,751,168 (0% used)
main: check
checking epoch 1...
check: visited 1/130829 blocks (0%)
fsys blocks: total=130829 used=447(0.3%) free=130382(99.7%) lost=0(0.0%)
fsck: 0 clri, 0 clre, 0 clrp, 0 bclose
main: clri /active/9pcf
main: df
main: 3,661,824 used + 1,068,089,344 free = 1,071,751,168 (0% used)
main: check
checking epoch 1...
check: visited 1/130829 blocks (0%)
fsys blocks: total=130829 used=447(0.3%) free=130382(99.7%) lost=0(0.0%)
error: non referenced entry in source /active[0]
fsck: 0 clri, 1 clre, 0 clrp, 0 bclose

# we identify the abandoned storage and reclaim it with bfree
term% fossil/flchk -f fossil.img | sed -n 's/^# //p'
clre 0x5 0
term% fossil/flchk -f fossil.img | sed -n 's/^# bclose (.*) .*/bfree \1/p'
bfree 0x7
bfree 0x8
[...]
main: clre 0x5 0
block 0x5 0 40
000000001FF420002900000000000000003691B900000000000000000000000071875E60000001A1
main: bfree 0x7
label 0x7 0 1 1 4294967295 0x71875e60
main: bfree 0x8
label 0x8 1 1 1 4294967295 0x71875e60
[...]
main: check
checking epoch 1...
check: visited 1/130829 blocks (0%)
fsys blocks: total=130829 used=7(0.0%) free=130822(100.0%) lost=0(0.0%)
fsck: 0 clri, 0 clre, 0 clrp, 0 bclose
main: df main: 3,661,824 used + 1,068,089,344 free = 1,071,751,168 (0%
used)

Note that it doesn't update c->fl->nused, reported by df.

--
David du Colombier



  parent reply	other threads:[~2012-01-13 13:59 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13 11:30 tlaronde
2012-01-13 13:30 ` erik quanstrom
2012-01-13 13:38 ` [9fans] fossil pb: FOUND! tlaronde
2012-01-13 13:59   ` erik quanstrom
2012-01-13 14:08     ` tlaronde
2012-01-13 14:47       ` erik quanstrom
2012-01-13 16:01         ` tlaronde
2012-01-13 16:16           ` erik quanstrom
2012-01-13 16:34             ` tlaronde
2012-01-13 16:42               ` David du Colombier
2012-01-13 16:44               ` Vivien MOREAU
2012-01-13 16:50                 ` tlaronde
2012-01-13 16:17           ` David du Colombier
2012-01-13 16:41             ` tlaronde
2012-01-13 16:50               ` Charles Forsyth
2012-01-13 17:05                 ` tlaronde
2012-01-13 17:02               ` tlaronde
2012-01-13 17:11                 ` Charles Forsyth
2012-01-13 17:24                 ` Nicolas Bercher
2012-01-13 17:44                   ` tlaronde
2012-01-13 17:37               ` erik quanstrom
2012-01-13 17:58                 ` tlaronde
2012-01-13 18:14                   ` erik quanstrom
2012-01-13 21:00                     ` Yaroslav
2012-01-13 22:14                       ` Charles Forsyth
     [not found]                   ` <CAG3N4d8c56DRSbt30k3EkgnyvrPSLbFkWH-kKapm7CVmKsu9og@mail.gmail.c>
2012-01-13 21:02                     ` erik quanstrom
     [not found]                   ` <CAOw7k5hU=F2tynnFHtoz=AJ=HiFq2oLYhz4Rg-QgM+rv_gu5Ow@mail.gmail.c>
2012-01-13 22:17                     ` erik quanstrom
2012-01-13 23:10                       ` Aram Hăvărneanu
2012-01-13 23:14                         ` Francisco J Ballesteros
2012-01-13 23:23                           ` Aram Hăvărneanu
2012-01-14  0:30                           ` Bakul Shah
2012-01-14  1:01                             ` dexen deVries
2012-01-14 13:26                               ` erik quanstrom
2012-01-14 15:00                                 ` hiro
2012-01-14 15:06                                   ` Charles Forsyth
     [not found]                                   ` <CAOw7k5h2T+xuxbJhwTxPMOjG3K14KarrJPXFmH9EHdHJnXFpPA@mail.gmail.c>
2012-01-14 15:29                                     ` erik quanstrom
2012-01-14 16:16                                       ` Aram Hăvărneanu
     [not found]                                       ` <CAEAzY3_9jpi6j-C1u87OKaEazajOBwkvbEBdO5f1eUJysJbH1A@mail.gmail.c>
2012-01-14 16:32                                         ` erik quanstrom
2012-01-14 18:01                                           ` Aram Hăvărneanu
     [not found]                                           ` <CAEAzY39pUNCTs6kMYnYoukx3TH8OuhgcmhSF+nVW5jX0iTCYvA@mail.gmail.c>
2012-01-14 20:43                                             ` erik quanstrom
2012-01-14 21:39                                               ` Aram Hăvărneanu
     [not found]                                           ` <CAEAzY3842EWp=WByCPAm7yGEK2h5b+1hkbwm5NoRPTH_2F5CVA@mail.gmail.c>
2012-01-14 21:54                                             ` erik quanstrom
2012-01-14 22:11                                               ` Aram Hăvărneanu
     [not found]                                           ` <CAEAzY39GD4QoTRf2S0Nd4rN+vSyG1tsKyP3rFWu5a0mFN=sH6w@mail.gmail.c>
2012-01-14 22:42                                             ` erik quanstrom
2012-01-14 23:03                                               ` Aram Hăvărneanu
2012-01-14 23:32                                               ` Bakul Shah
2012-01-14 23:45                                                 ` Aram Hăvărneanu
     [not found]                                           ` <CAEAzY39ddvxRSwSP+Eh7kujJEs3nYh4kQegfuSisgdgB9qMQ4g@mail.gmail.c>
2012-01-15 13:12                                             ` erik quanstrom
2012-01-15 14:07                                               ` Aram Hăvărneanu
     [not found]                                           ` <CAEAzY3-mPRW3jGYWbXeTk7Sc+nC6Xn1NhK2a=Tb2yKkm06EStQ@mail.gmail.c>
2012-01-15 14:25                                             ` erik quanstrom
2012-01-15 14:39                                               ` Charles Forsyth
2012-01-14 18:39                                       ` Charles Forsyth
2012-01-14 13:27                               ` erik quanstrom
2012-01-13 23:24                         ` cinap_lenrek
     [not found]                   ` <CAEAzY39VJhaWD03PruMoS2A+bCP62XDTdgob1hgtjp6qHtjdSA@mail.gmail.c>
2012-01-14 13:07                     ` erik quanstrom
2012-01-13 13:59 ` David du Colombier [this message]
2012-01-13 14:11   ` [9fans] fossil pb: a clue? tlaronde

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=20120113145952.0bc64b61@wks-ddc.exosec.local \
    --to=0intro@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).