shithub: riscv

Download patch

ref: 7180b70ad36a7db3aadfa74fbca1555a91df5da1
parent: 748551ea060ffc9d6020201778f4769065e69e2b
author: ment <thement@ibawizard.net>
date: Wed Jun 8 19:05:20 EDT 2011

disk/format: removed 9fat magic VOLID value

--- a/sys/src/cmd/disk/format.c
+++ b/sys/src/cmd/disk/format.c
@@ -560,14 +560,6 @@
 if(chatty) print("driveno = %ux\n", b->driveno);
 	
 		b->bootsig = 0x29;
-		x = disk->offset + b->nfats*fatsecs + nresrv;
-		PUTLONG(b->volid, x);
-		/*
-		 * FAT32 9boot PBS requires volid at this
-		 * offset even for FAT16/FAT12 partitions.
-		 */
-		PUTLONG(b->volid+28, x);
-if(chatty) print("volid = %lux %lux\n", x, GETLONG(b->volid));
 		memmove(b->label, label, sizeof(b->label));
 		sprint(r, "FAT%d    ", fatbits);
 		memmove(b->type, r, sizeof(b->type));
--