]> Zhao Yanbai Git Server - minix.git/commitdiff
at bugfix - openct only increased on opens when 0, openct always decreased
authorBen Gras <ben@minix3.org>
Fri, 12 Aug 2005 16:42:36 +0000 (16:42 +0000)
committerBen Gras <ben@minix3.org>
Fri, 12 Aug 2005 16:42:36 +0000 (16:42 +0000)
on closes..

this causes partition tables not to be re-read sometimes..

this causes mayhem..

drivers/at_wini/at_wini.c

index 5138b593cb0cab8bde53dcf63e7eb6b63f494dbf..2c1149c0f117b3ebdc4a7a4890ded9a8b611b1c6 100644 (file)
@@ -388,8 +388,8 @@ message *m_ptr;
 
        /* Partition the disk. */
        partition(&w_dtab, w_drive * DEV_PER_DRIVE, P_PRIMARY, wn->state & ATAPI);
-       wn->open_ct++;
   }
+  wn->open_ct++;
   return(OK);
 }