9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] mk9660 or mkfs, how much can they archive?
@ 2004-02-23  2:37 YAMANASHI Takeshi
  2004-02-23  2:42 ` Geoff Collyer
  0 siblings, 1 reply; 3+ messages in thread
From: YAMANASHI Takeshi @ 2004-02-23  2:37 UTC (permalink / raw)
  To: 9fans

Hi,

I'm trying to archive some parts of my file system using mk9660 and mkfs,
but both mk9660 and mkfs seem to be failing in creating their archives
larger than 2GB.  Are there any constraints in them?

Thank you.
--
YAMANASHI Takeshi




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

* Re: [9fans] mk9660 or mkfs, how much can they archive?
  2004-02-23  2:37 [9fans] mk9660 or mkfs, how much can they archive? YAMANASHI Takeshi
@ 2004-02-23  2:42 ` Geoff Collyer
  0 siblings, 0 replies; 3+ messages in thread
From: Geoff Collyer @ 2004-02-23  2:42 UTC (permalink / raw)
  To: 9fans

Ken's file server uses signed 32-bit file sizes internally, so 2GB-1
is the largest file you can create via his file server.



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

* Re: [9fans] mk9660 or mkfs, how much can they archive?
@ 2004-02-23  7:57 YAMANASHI Takeshi
  0 siblings, 0 replies; 3+ messages in thread
From: YAMANASHI Takeshi @ 2004-02-23  7:57 UTC (permalink / raw)
  To: 9fans

> I'm trying to archive some parts of my file system using mk9660 and mkfs,
> but both mk9660 and mkfs seem to be failing in creating their archives
> larger than 2GB.  Are there any constraints in them?

My archive files went via u9fs and this was where
2GB-over handling was inappropriate.

I blindly changed GBIT64 macro in /sys/src/cmd/unix/u9fs/fcall.h
as follows and it worked.

	#define	GBIT64(p)	((vlong)((vlong)(p)[0]|((vlong)(p)[1]<<8)|((vlong)(p)[2]<<16)|((vlong)(p)[3]<<24)) |\
				((vlong)((vlong)(p)[4]|((vlong)(p)[5]<<8)|((vlong)(p)[6]<<16)|((vlong)(p)[7]<<24)) << 32))

I am one of those who aren't expected to understand this, though.

P.S.
	Thank you, geoff, for all your help.
--




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

end of thread, other threads:[~2004-02-23  7:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23  2:37 [9fans] mk9660 or mkfs, how much can they archive? YAMANASHI Takeshi
2004-02-23  2:42 ` Geoff Collyer
2004-02-23  7:57 YAMANASHI Takeshi

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