I've just copied a file on an ext2 file system and ended up with a file 6MB larger than it
should be !
This was the situation before the copy.
>ls -l st*
>-rw-r----- 1 stevei mail 0 May 23 12:02 stevei
>-rw------- 1 stevei mail 2740690 Sep 16 17:07 stevei_home
>-rw------- 1 stevei mail 1277952 Sep 16 17:08 stevei_laptop
>-rw------- 1 root root 8864902 Sep 16 17:02 stevei_laptop.sav
>-rw------- 1 stevei mail 2804165 Sep 16 17:07 stevei_office
>-rw------- 1 stevei mail 0 Jul 25 22:54 stevei_outlook
>-rw------- 1 stevei mail 28041 Sep 12 15:47 stevei_tm
Now the copy of 2740690 bytes from stevei_home to stevei_laptop.
>gate:/var/spool/mail# cp stevei_home stevei_laptop
>cp: overwrite `stevei_laptop'? y
>ls -l st*
>gate:/var/spool/mail# ls -l st*
>-rw-r----- 1 stevei mail 0 May 23 12:02 stevei
>-rw------- 1 stevei mail 2740690 Sep 16 17:07 stevei_home
>-rw------- 1 stevei mail 8635961 Sep 16 17:08 stevei_laptop
>-rw------- 1 root root 8864902 Sep 16 17:02 stevei_laptop.sav
>-rw------- 1 stevei mail 2804165 Sep 16 17:07 stevei_office
>-rw------- 1 stevei mail 0 Jul 25 22:54 stevei_outlook
>-rw------- 1 stevei mail 28041 Sep 12 15:47 stevei_tm
After the copy, stevei_latop is 8635961 bytes !
>gate:/var/spool/mail# !ls
>ls -l st*
>-rw-r----- 1 stevei mail 0 May 23 12:02 stevei
>-rw------- 1 stevei mail 2740690 Sep 16 17:07 stevei_home
>-rw------- 1 stevei mail 8635961 Sep 16 17:08 stevei_laptop
>-rw------- 1 root root 8864902 Sep 16 17:02 stevei_laptop.sav
>-rw------- 1 stevei mail 2804165 Sep 16 17:07 stevei_office
>-rw------- 1 stevei mail 0 Jul 25 22:54 stevei_outlook
>-rw------- 1 stevei mail 28041 Sep 12 15:47 stevei_tm
Didn't believe it, so listed it again. Yep it's still wrong.
>gate:/var/spool/mail# cp stevei_home stevei_laptop
>cp: overwrite `stevei_laptop'? y
Copied it again.
>gate:/var/spool/mail# !ls
>ls -l st*
>-rw-r----- 1 stevei mail 0 May 23 12:02 stevei
>-rw------- 1 stevei mail 2740690 Sep 16 17:07 stevei_home
>-rw------- 1 stevei mail 2740690 Sep 16 17:09 stevei_laptop
>-rw------- 1 root root 8864902 Sep 16 17:02 stevei_laptop.sav
>-rw------- 1 stevei mail 2804165 Sep 16 17:07 stevei_office
>-rw------- 1 stevei mail 0 Jul 25 22:54 stevei_outlook
>-rw------- 1 stevei mail 28041 Sep 12 15:47 stevei_tm
>gate:/var/spool/mail#
This time it is correct.
I've checked the following.
1) Mail did not arrive during the copy operation.
2) Mail wasn't checked during the copy operation.
3) fsck shows no errors on mount.
4) No OOPS or any other console message.
config file listed below.
CONFIG_MODULES=y
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_SYSVIPC=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
CONFIG_M586=y
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_TRITON=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_FIREWALL=y
CONFIG_NET_ALIAS=y
CONFIG_INET=y
CONFIG_IP_FORWARD=y
CONFIG_SYN_COOKIES=y
CONFIG_IP_FIREWALL=y
CONFIG_IP_MASQUERADE=y
CONFIG_IP_MASQUERADE_ICMP=y
CONFIG_IP_ALWAYS_DEFRAG=y
CONFIG_IP_ALIAS=y
CONFIG_IP_NOSR=y
CONFIG_SKB_LARGE=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=m
CONFIG_CHR_DEV_ST=m
CONFIG_BLK_DEV_SR=m
CONFIG_CHR_DEV_SG=m
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_AHA1542=m
CONFIG_SCSI_BUSLOGIC=m
CONFIG_SCSI_DTC3280=m
CONFIG_SCSI_ULTRASTOR=m
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
CONFIG_PPP=y
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_VENDOR_3COM=y
CONFIG_EL3=y
CONFIG_NET_VENDOR_SMC=y
CONFIG_WD80x3=y
CONFIG_NET_ISA=y
CONFIG_DEPCA=y
CONFIG_NE2000=y
CONFIG_NET_EISA=y
CONFIG_DE4X5=y
CONFIG_DEC_ELCP=y
CONFIG_MINIX_FS=y
CONFIG_EXT2_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
CONFIG_SMB_FS=y
CONFIG_ISO9660_FS=y
CONFIG_SERIAL=y
CONFIG_PRINTER=y
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
CONFIG_APM=y
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
CONFIG_APM_POWER_OFF=y
CONFIG_WATCHDOG=y
CONFIG_SOFT_WATCHDOG=y
Suggestions, comments,
Steve
-----------------------------------------------------
Steven Ireland, Development Manager.
Earthworks Corporation.
28 Clive Street, West Perth, Western Australia, 6005.
Telephone +61-9-3211522 Fax +61-9-3211545
email stevei@earthworks.com.au
-----------------------------------------------------