Do not blindly allow the block count to overflow. Restrict newfs filesystem
commit258b1f1593f943b181a145b130fc9c4cc3072b70
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 19 Jun 2007 19:18:20 +0000 (19 19:18 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 19 Jun 2007 19:18:20 +0000 (19 19:18 +0000)
tree5be632c5867be732f73ffdaa1c24bc84f0388574
parent0ad0d29e00d301d18d100d25c3feca05f6227114
Do not blindly allow the block count to overflow.  Restrict newfs filesystem
sizes to just under 1TB and report a fatal error if the media is too large.
sbin/newfs/newfs.c