9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Q:How to replace 9load in the 9fat partition?
@ 2005-09-21  9:30 icQQ
  2005-09-21 10:00 ` Charles Forsyth
  2005-09-21 11:16 ` Lucio De Re
  0 siblings, 2 replies; 4+ messages in thread
From: icQQ @ 2005-09-21  9:30 UTC (permalink / raw)
  To: 9fans

I have done some changes on 9load source and recompiled it.
I read `Notes on Plan 9 source' and it says 9load is stored
continuously on the 9fat patition, can i replace it with new
version directly, or how to replace in another way?

Thanks


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Q:How to replace 9load in the 9fat partition?
  2005-09-21  9:30 [9fans] Q:How to replace 9load in the 9fat partition? icQQ
@ 2005-09-21 10:00 ` Charles Forsyth
  2005-09-21 11:16 ` Lucio De Re
  1 sibling, 0 replies; 4+ messages in thread
From: Charles Forsyth @ 2005-09-21 10:00 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

the mode of the file on 9fat is set specially (see dossrv(4)),
and provided the bits remain set, you can just
	cp new9load /n/9fat/9load
and it should be fine.  you can also chmod +al /n/9fat/9load
later if the bits aren't set.

[-- Attachment #2: Type: message/rfc822, Size: 2524 bytes --]

From: icQQ <sillydonkey@163.com>
To: 9fans@cse.psu.edu
Subject: [9fans] Q:How to replace 9load in the 9fat partition?
Date: Wed, 21 Sep 2005 09:30:31 GMT
Message-ID: <1127208926.049648.138960@g43g2000cwa.googlegroups.com>

I have done some changes on 9load source and recompiled it.
I read `Notes on Plan 9 source' and it says 9load is stored
continuously on the 9fat patition, can i replace it with new
version directly, or how to replace in another way?

Thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Q:How to replace 9load in the 9fat partition?
  2005-09-21  9:30 [9fans] Q:How to replace 9load in the 9fat partition? icQQ
  2005-09-21 10:00 ` Charles Forsyth
@ 2005-09-21 11:16 ` Lucio De Re
  2005-09-21 15:34   ` Russ Cox
  1 sibling, 1 reply; 4+ messages in thread
From: Lucio De Re @ 2005-09-21 11:16 UTC (permalink / raw)
  To: 9fans

> I have done some changes on 9load source and recompiled it.
> I read `Notes on Plan 9 source' and it says 9load is stored
> continuously on the 9fat patition, can i replace it with new
> version directly, or how to replace in another way?

If it's not significantly bigger than before, just cp it.  If its
permission bits change, you need to use disk/format as shown in man
prep, with all the pertinent provisos.

++L



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Q:How to replace 9load in the 9fat partition?
  2005-09-21 11:16 ` Lucio De Re
@ 2005-09-21 15:34   ` Russ Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2005-09-21 15:34 UTC (permalink / raw)
  To: Lucio De Re, Fans of the OS Plan 9 from Bell Labs

> If it's not significantly bigger than before, just cp it.  If its
> permission bits change, you need to use disk/format as shown in man
> prep, with all the pertinent provisos.

this isn't true.  as forsyth said, all you have to do
is chmod +al it if the permission bits change.
if chmod fails, then you might need to do some
moving things around to make some contiguous
disk space.

russ


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-21 15:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-21  9:30 [9fans] Q:How to replace 9load in the 9fat partition? icQQ
2005-09-21 10:00 ` Charles Forsyth
2005-09-21 11:16 ` Lucio De Re
2005-09-21 15:34   ` Russ Cox

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).