9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] fdisk.c
@ 2000-11-05  4:52 Russ Cox
  2000-11-05 10:23 ` Micah Stetson
  0 siblings, 1 reply; 4+ messages in thread
From: Russ Cox @ 2000-11-05  4:52 UTC (permalink / raw)
  To: 9fans

The fdisk source is in /sys/src/cmd/disk/prep.
The one in /sys/src/cmd/disk is a half-written
version that I forgot to delete when I moved the
partitioning programs into their own directory.
We've deleted it in later distributions.

In general, btw, the src(1) program is quite
useful for things like this.

Sorry about the fdisk confusion.

Russ


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

* Re: [9fans] fdisk.c
  2000-11-05  4:52 [9fans] fdisk.c Russ Cox
@ 2000-11-05 10:23 ` Micah Stetson
  0 siblings, 0 replies; 4+ messages in thread
From: Micah Stetson @ 2000-11-05 10:23 UTC (permalink / raw)
  To: 9fans

> In general, btw, the src(1) program is quite
> useful for things like this.

As usual, I'm running my system in a half-functional
state.  Plumbing isn't turned on and I didn't think
about src -n, so I went striking out on my own and
did something dumb...

Micah



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

* Re: [9fans] fdisk.c
  2000-11-05 10:06 Micah Stetson
@ 2000-11-05 10:20 ` Micah Stetson
  0 siblings, 0 replies; 4+ messages in thread
From: Micah Stetson @ 2000-11-05 10:20 UTC (permalink / raw)
  To: 9fans

> things in the code.  Figuring it was either wrong or I
> really had no clue after all, I compiled it.  I see

I guess the second one is true.  Sorry.
/sys/src/cmd/disk/PREP/fdisk.c

Micah



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

* [9fans] fdisk.c
@ 2000-11-05 10:06 Micah Stetson
  2000-11-05 10:20 ` Micah Stetson
  0 siblings, 1 reply; 4+ messages in thread
From: Micah Stetson @ 2000-11-05 10:06 UTC (permalink / raw)
  To: 9fans

While trying to hunt down a bug in fdisk (all of the
subpartitions in an extended partition are said to have the
same starting sector when they do not), I noticed some weird
things in the code.  Figuring it was either wrong or I
really had no clue after all, I compiled it.  I see
something like this:

term% cd /sys/src/cmd/disk
term% mk 8.fdisk
8c -FVw fdisk.c
8l  -o 8.fdisk fdisk.8
term% 8.fdisk
disk/fdisk [-p] prefix
term% 8.fdisk /dev/sdC0/data
prep: stating /dev/sdC0/datadisk: file does not exist
term%

Where might I find the current fdisk source?

Micah



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

end of thread, other threads:[~2000-11-05 10:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-05  4:52 [9fans] fdisk.c Russ Cox
2000-11-05 10:23 ` Micah Stetson
2000-11-05 10:06 Micah Stetson
2000-11-05 10:20 ` Micah Stetson

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