Changeset 1234 for trunk/libIGCM/libIGCM_sys
- Timestamp:
- 09/03/15 17:12:53 (9 years ago)
- Location:
- trunk/libIGCM/libIGCM_sys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh
r1204 r1234 700 700 701 701 typeset NB_ESSAI DELAI status i exist skip 702 typeset fileDeviceNumberInHex directoryDeviceNumberInHex 702 703 703 704 # number of tentative … … 738 739 i=0 739 740 while [ $i -lt $NB_ESSAI ] ; do 740 if [ $( stat -c %d $1 ) -ne $( stat -c %d $( dirname $2 ) ) ] ; then 741 # USUAL WAY 741 # Identify file system 742 fileDeviceNumberInHex=$( stat -c %d $1 ) 743 status=$? 744 if [ ${status} -gt 0 ] ; then 745 IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 746 fi 747 # Identify file system 748 directoryDeviceNumberInHex=$( stat -c %d $( dirname $2 ) ) 749 status=$? 750 if [ ${status} -gt 0 ] ; then 751 IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 752 fi 753 754 if [ ${fileDeviceNumberInHex} -ne ${directoryDeviceNumberInHex} ] ; then 755 # They are not on the same device. USUAL WAY 742 756 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 743 757 status=$? 744 758 else 745 # NOT SOUSUAL WAY759 # They are on the same device. USUAL WAY 746 760 \mv $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 747 761 status=$? -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh
r1230 r1234 636 636 637 637 typeset NB_ESSAI DELAI status i exist skip 638 typeset fileDeviceNumberInHex directoryDeviceNumberInHex 638 639 639 640 # number of tentative … … 673 674 i=0 674 675 while [ $i -lt $NB_ESSAI ] ; do 675 if [ $( stat -c %d $1 ) -ne $( stat -c %d $( dirname $2 ) ) ] ; then 676 # USUAL WAY 676 # Identify file system 677 fileDeviceNumberInHex=$( stat -c %d $1 ) 678 status=$? 679 if [ ${status} -gt 0 ] ; then 680 IGCM_debug_Exit "IGCM_sys_Put_Out" 681 fi 682 # Identify file system 683 directoryDeviceNumberInHex=$( stat -c %d $( dirname $2 ) ) 684 status=$? 685 if [ ${status} -gt 0 ] ; then 686 IGCM_debug_Exit "IGCM_sys_Put_Out" 687 fi 688 689 if [ ${fileDeviceNumberInHex} -ne ${directoryDeviceNumberInHex} ] ; then 690 # They are not on the same device. USUAL WAY 677 691 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 678 692 status=$? 679 693 else 680 # NOT SO USUAL WAY694 # They are on the same device. NOT SO USUAL WAY 681 695 \mv $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 682 696 status=$?
Note: See TracChangeset
for help on using the changeset viewer.