patch-2.1.79 linux/fs/fat/misc.c

Next file: linux/fs/fat/mmap.c
Previous file: linux/fs/fat/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/fs/fat/misc.c linux/fs/fat/misc.c
@@ -221,6 +221,10 @@
 #endif
 	sector = MSDOS_SB(sb)->data_start+(nr-2)*cluster_size;
 	last_sector = sector + cluster_size;
+	if(MSDOS_SB(sb)->cvf_format&&
+	  MSDOS_SB(sb)->cvf_format->zero_out_cluster)
+	    MSDOS_SB(sb)->cvf_format->zero_out_cluster(inode,nr);
+	else
 	for ( ; sector < last_sector; sector++) {
 		#ifdef DEBUG
 			printk("zeroing sector %d\n",sector);
@@ -279,9 +283,7 @@
 	    month < 2 ? 1 : 0)+3653);
 			/* days since 1.1.70 plus 80's leap day */
 	secs += sys_tz.tz_minuteswest*60;
-	if (sys_tz.tz_dsttime) {
-	    secs -= 3600;
-	}
+	if (sys_tz.tz_dsttime) secs -= 3600;
 	return secs;
 }
 
@@ -293,9 +295,6 @@
 {
 	int day,year,nl_day,month;
 
-	if (sys_tz.tz_dsttime) {
-		unix_date += 3600;
-	}
 	unix_date -= sys_tz.tz_minuteswest*60;
 	if (sys_tz.tz_dsttime) unix_date += 3600;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov