]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix by Joren l'Ami <jwlami@cs.vu.nl> to make block devices work beyond
authorBen Gras <ben@minix3.org>
Wed, 29 Jun 2005 11:56:56 +0000 (11:56 +0000)
committerBen Gras <ben@minix3.org>
Wed, 29 Jun 2005 11:56:56 +0000 (11:56 +0000)
2GB (e.g. for 'large' mkfs).

servers/fs/read.c

index 9792cd4b07cb008ce9cea5644af2c68980d369d4..027990458fd74d429bfb42ff064b1c4b7af24dc1 100644 (file)
@@ -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]);