From: Ben Gras Date: Wed, 29 Jun 2005 11:56:56 +0000 (+0000) Subject: Fix by Joren l'Ami to make block devices work beyond X-Git-Tag: v3.1.0~677 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=ca0d035146a6e971b92dc6987cb3adbdfafa8de4;p=minix.git Fix by Joren l'Ami to make block devices work beyond 2GB (e.g. for 'large' mkfs). --- diff --git a/servers/fs/read.c b/servers/fs/read.c index 9792cd4b0..027990458 100644 --- a/servers/fs/read.c +++ b/servers/fs/read.c @@ -137,7 +137,7 @@ int rw_flag; /* READING or WRITING */ block_size = get_block_size(rip->i_zone[0]); } if((block_spec = (mode_word == I_BLOCK_SPECIAL ? 1 : 0))) { - f_size = LONG_MAX; + f_size = ULONG_MAX; if(rip->i_zone[0] == NO_DEV) panic(__FILE__,"read_write tries to read from block device NO_DEV", NO_NUM); block_size = get_block_size(rip->i_zone[0]);