9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* ls quibble
@ 1996-09-03  2:12 Russ
  0 siblings, 0 replies; 4+ messages in thread
From: Russ @ 1996-09-03  2:12 UTC (permalink / raw)


term% diff /sys/src/cmd/ls.c /sys/clean-src/cmd
190c190
< 		sprint(buf, "%lud", db->length);
---
> 		sprint(buf, "%ld", db->length);
220c220
< 		Bprint(&bin, "%M %C %*d %*s %s %*lud %s %s\n",
---
> 		Bprint(&bin, "%M %C %*d %*s %s %*ld %s %s\n",
term%

so that big hard drives (>2GB) have positive
sizes for /dev/hd?disk




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

* ls quibble
@ 1996-09-03  2:48 Scott
  0 siblings, 0 replies; 4+ messages in thread
From: Scott @ 1996-09-03  2:48 UTC (permalink / raw)


Brandon Black <photon@nol.net> writes:
| What variable type is the internal, real, size value for files?  I would
| assume it is probably a 64 bit value, or else the filesystem would be limited
| to never having files larger than 4Gb...

The type is union Length.  (see u.h).  It's 64 bits.





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

* ls quibble
@ 1996-09-03  2:39 Brandon
  0 siblings, 0 replies; 4+ messages in thread
From: Brandon @ 1996-09-03  2:39 UTC (permalink / raw)



On Mon, 2 Sep 1996, Russ Cox wrote:

> term% diff /sys/src/cmd/ls.c /sys/clean-src/cmd
> 190c190
> < 		sprint(buf, "%lud", db->length);
> ---
> > 		sprint(buf, "%ld", db->length);
> 220c220
> < 		Bprint(&bin, "%M %C %*d %*s %s %*lud %s %s\n",
> ---
> > 		Bprint(&bin, "%M %C %*d %*s %s %*ld %s %s\n",
> term%
>
> so that big hard drives (>2GB) have positive
> sizes for /dev/hd?disk
>

Going to unsigned takes the limit from 2Gb to 4Gb... what if you have larger
(i.e. 4.8Gb, 9Gb) drives... Or hardware RAID boxes that appear to the operating
system to be gargantuan multi-gigabyte physical drives...?  Obviously, its
just ls output, and doesn't affect anything to do with using the drives, but
still...in such a generally robust operating system, its a shame even in
something as insignificant as the output format of "ls", to be narrowminded
in choosing variable sizes....

What variable type is the internal, real, size value for files?  I would
assume it is probably a 64 bit value, or else the filesystem would be limited
to never having files larger than 4Gb...


..............................................
: Brandon Lee Black  : photon@gnu.ai.mit.edu :
:....................: photon@nol.net        :
: "Sanity is the     : photon@vanity.ops.org :
: trademark of a     : vis_blb@unx1.shsu.edu :
: weak mind. . ."    : +1 713 397 3490       :
:....................:.......................:






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

* ls quibble
@ 1996-09-03  2:36 Scott
  0 siblings, 0 replies; 4+ messages in thread
From: Scott @ 1996-09-03  2:36 UTC (permalink / raw)


Russ Cox <rsc@research.att.com> writes:
| < 		sprint(buf, "%lud", db->length);

Speaking of that, does Brazil flesh out support for vlength?





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

end of thread, other threads:[~1996-09-03  2:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-03  2:12 ls quibble Russ
1996-09-03  2:36 Scott
1996-09-03  2:39 Brandon
1996-09-03  2:48 Scott

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