projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disallow creation of filesystem on partition marked FS_BOOT
[unix-history]
/
usr
/
src
/
sbin
/
newfs
/
newfs.c
diff --git
a/usr/src/sbin/newfs/newfs.c
b/usr/src/sbin/newfs/newfs.c
index
e36c06c
..
0810440
100644
(file)
--- a/
usr/src/sbin/newfs/newfs.c
+++ b/
usr/src/sbin/newfs/newfs.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)newfs.c 6.3
2
(Berkeley) %G%";
+static char sccsid[] = "@(#)newfs.c 6.3
3
(Berkeley) %G%";
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
@@
-374,6
+374,9
@@
main(argc, argv)
if (pp->p_size == 0)
fatal("%s: `%c' partition is unavailable",
argv[0], *cp);
if (pp->p_size == 0)
fatal("%s: `%c' partition is unavailable",
argv[0], *cp);
+ if (pp->p_fstype == FS_BOOT)
+ fatal("%s: `%c' partition overlaps boot program",
+ argv[0], *cp);
}
if (fssize == 0)
fssize = pp->p_size;
}
if (fssize == 0)
fssize = pp->p_size;