wrstuden
f2c170eda0
Modify newfs so that the root node (and lost+found dir, if created)
...
of the new fs has uid.gid equal to the euid.egid of the process
which made it. This change permits users who have write access to
a device (say a floppy) to create a filesystem that, when mounted,
they have write access to.
This change closes PR bin/5990 from jbernard@ox.mines.edu , and is also the
change requested in PR bin/6276 from "Charles M. Hannum" <mycroft@netbsd.org>
1999-03-16 21:52:34 +00:00
wrstuden
988bdf8e19
Modify how the byteswapping of the cylinder summaries is handled. If we
...
need to swap, allocate a buffer for the swapped summaries rather than using
writebuf. The latter is fixed at 64k, which is only enough room to hold
4096 summaries. Creating an fs with more results in a buffer overrun.
First noted by Matt Jacob mjacob@netbsd.org , and fixed by Albeaus
Bayucan, bayucan@nas.nasa.gov . Minor mods by me.
1999-03-11 20:23:58 +00:00
simonb
00c4adc933
Explicitly zero "node" before we start using it.
1998-11-03 18:14:55 +00:00
thorpej
a2d370bc46
Use DINODE_SIZE instead of sizeof(struct dinode). Also, eliminate some
...
unnecessary pointer casts.
1998-10-23 00:39:15 +00:00
kleink
31e5ddfa12
Need <time.h> for time() prototype.
1998-04-01 15:28:12 +00:00
bouyer
15c41b2f72
Allow creation of non-native byteorder FFS (via the '-B' option).
1998-03-18 17:10:15 +00:00
drochner
55f4357866
Make "mount_mfs" behave synchronously - don't exit before the mount is
...
done. This has 2 advantages:
-The calling process can rely on the mounted filesystem.
-We get error messages if the mount system call fails.
1997-11-01 18:25:46 +00:00
jeremy
f83ae6979b
Quell gcc 2.7.2 initialization warning.
1997-09-21 08:32:04 +00:00
lukem
ec31f79470
* resolve conflicts from lite-2 import
...
* use int32_t instead of long
1997-09-16 14:05:39 +00:00
christos
bec3b005c5
Fix compiler warnings.
1997-06-30 22:20:30 +00:00
cgd
93a2f4ea60
update for posixified stat structure
1995-06-18 21:35:33 +00:00
mycroft
ae16273156
Back out previous change.
1995-06-11 05:16:04 +00:00
cgd
788733b7a9
typeof(timeval.tv_sec) != time_t
1995-06-07 17:14:21 +00:00
jtc
2d709c7062
flush stdout instead of stderr, so that each block number is displayed
...
as it is printed. From PR 989.
1995-05-06 06:55:34 +00:00
mycroft
5a76ea02ce
Set the `clean' flag.
1995-04-12 21:24:31 +00:00
cgd
0cc5c1886a
short -> int16_t in a couple of places
1995-03-21 01:28:05 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
cgd
909eb54fbb
calculate the 'offset' argument to lseek() in a prettier way, more
...
consistent with the way fsck(8) does it. no functional change.
1995-03-18 07:02:29 +00:00
cgd
f9b9202a22
flush stdout after printing each alternate superblock location.
1995-03-04 06:28:20 +00:00
cgd
4c02b41140
fix up inconsisten uses of lseek(). (three uses. one hard-coded 'whence'
...
as a number, one used an L_ constant and the other used a SEEK_ constant!)
1995-03-04 06:10:39 +00:00
cgd
74104b5039
compile against new headers.
1994-12-18 16:00:21 +00:00
cgd
4c998ed311
type size paranoia, and allow one to mount an mfs on the device 'swap',
...
so that diskless machines can use MFS /tmp directories.
1994-12-18 05:09:39 +00:00
cgd
86400f0f91
types/field names.
1994-10-31 04:22:12 +00:00
mycroft
ea7b5d4ec6
Eliminate uses of some obsolete functions.
1994-09-23 14:26:58 +00:00
cgd
040aaa7707
fix from Peter Galbavy <peter@alice.wonderland.org>: don't overflow 80cols.
1994-07-20 20:31:58 +00:00
cgd
cbc266d592
fix that annoying 'cgd0: bad magic number' bug
1994-07-20 20:06:52 +00:00
mycroft
625a6892f7
Update from 4.4-Lite, with local changes.
1994-06-08 19:27:32 +00:00
cgd
ceeb9f072d
various grunge
1994-04-25 18:28:36 +00:00
cgd
59e72907cf
off_t death...
1994-04-01 08:42:43 +00:00
mycroft
d9e1211542
Set clean flags.
1993-10-01 01:56:42 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
cbdb50c1c1
incorporate changes from 0-9-base to 0-9-ALPHA
1993-07-28 00:56:43 +00:00
cgd
06be60083d
changed "Id" to "Header" for rcsids
1993-03-23 00:22:59 +00:00
cgd
346aa5dd48
added rcs ids to all files
1993-03-22 08:04:00 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00