Reserving Space on Disk

Joshua Osborne stripes at eng.umd.edu
Tue Jul 17 13:05:40 AEST 1990


In article <13212 at mcdphx.phx.mcd.mot.com> fnf at riscokid.UUCP (Fred Fish) writes:
>This reminds me, I've always wondered why there wasn't a /dev/full as a
>standard part of unix.  It's the obvious counterpart of /dev/null, and
>simply returns as many null bytes as you ask for.  Then all you would
>have to do is:
>
>	dd if=/dev/full of=myfile bs=1k count=4k
SunOS has a /dev/zero, it does exactly what you want.  They use it to get
zero mapped pages (ld.so mmap()s shared lib's data space from the /dev/zero
file).
-- 
           stripes at eng.umd.edu          "Security for Unix is like
      Josh_Osborne at Real_World,The          Mutitasking for MS-DOS"
      "The dyslexic porgramer"                  - Kevin Lockwood
"Don't try to change C into some nice, safe, portable programming language
 with all sharp edges removed, pick another language."  - John Limpert



More information about the Comp.unix.wizards mailing list