From ca0d035146a6e971b92dc6987cb3adbdfafa8de4 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 29 Jun 2005 11:56:56 +0000 Subject: [PATCH] Fix by Joren l'Ami to make block devices work beyond 2GB (e.g. for 'large' mkfs). --- servers/fs/read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.44.0