Clean up disk layer.
[pintos-anon] / src / filesys / fsutil.c
index 57cd4e8d5d2024faf3c21eed04ca1ec2819dae2c..9c814e1a44b0d8f0f245498df45e5e22ebb1c8d4 100644 (file)
@@ -22,9 +22,9 @@ copy (const char *filename, off_t size)
   void *buffer;
 
   /* Open source disk. */
-  src = disk_get (2);
+  src = disk_get (1, 0);
   if (src == NULL)
-    PANIC ("couldn't open source disk (hdc or ide1:0)");
+    PANIC ("couldn't open source disk (hdc or hd1:0)");
   if (size > (off_t) disk_size (src) * DISK_SECTOR_SIZE)
     PANIC ("source disk is too small for %Ld-byte file",
            (unsigned long long) size);