Changeset 187


Ignore:
Timestamp:
Feb 12, 2017, 11:42:05 PM (8 years ago)
Author:
Valery V. Sedletski
Message:

CHKDSK: Make UFAT32.DLL silent if we're doing autocheck and FS is clean.

Location:
trunk/src/ufat32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/ufat32/chkdsk.c

    r186 r187  
    8080USHORT MakeDirEntry(PCDINFO pCD, ULONG ulDirCluster, PDIRENTRY pNew, PSZ pszName);
    8181BOOL DeleteFatChain(PCDINFO pCD, ULONG ulCluster);
    82 BOOL LoadTranslateTable(VOID);
     82BOOL LoadTranslateTable(BOOL fSilent);
    8383VOID GetFirstInfo( PBOOL pFirstInfo );
    8484VOID GetCaseConversion( PUCHAR pCase );
     
    180180   f32Parms.fEAS = TRUE;
    181181
    182    LoadTranslateTable();
    183 
    184    TranslateInitDBCSEnv();
    185 
    186    CaseConversionInit();
    187 
    188    fToFile = OutputToFile();
    189 
    190182   pCD = (PCDINFO)malloc(sizeof(CDINFO));
    191183   if (!pCD)
    192184      return ERROR_NOT_ENOUGH_MEMORY;
    193185   memset(pCD, 0, sizeof (CDINFO));
    194 
    195    printf("(UFAT32.DLL version %s compiled on " __DATE__ ")\n", FAT32_VERSION);
    196186
    197187   for (iArg = 1; iArg < iArgc; iArg++)
     
    232222      }
    233223
     224   LoadTranslateTable(pCD->fAutoCheck);
     225
     226   TranslateInitDBCSEnv();
     227
     228   CaseConversionInit();
     229
     230   fToFile = OutputToFile();
     231
    234232   ulDataSize = sizeof(f32Parms);
    235233   //rc = DosFSCtl(
     
    661659      p--;
    662660   *p = 0;
    663    if( p > szString )
    664       show_message("The volume label is %s.", 1375, 1, TYPE_STRING, szString);
    665 
    666    sprintf(szString, "%4.4X-%4.4X",
    667       HIUSHORT(pCD->BootSect.ulVolSerial), LOUSHORT(pCD->BootSect.ulVolSerial));
    668    show_message("The Volume Serial Number is %s.", 1243, 1, TYPE_STRING, szString);
     661
    669662   if (pCD->BootSect.bpb.MediaDescriptor != 0xF8)
    670663      {
     
    675668
    676669   pCD->fCleanOnBoot = GetDiskStatus(pCD);
     670
     671   if (! pCD->fAutoCheck || ! pCD->fCleanOnBoot)
     672      {
     673      printf("(UFAT32.DLL version %s compiled on " __DATE__ ")\n", FAT32_VERSION);
     674
     675      if( p > szString )
     676         show_message("The volume label is %s.", 1375, 1, TYPE_STRING, szString);
     677
     678      sprintf(szString, "%4.4X-%4.4X",
     679         HIUSHORT(pCD->BootSect.ulVolSerial), LOUSHORT(pCD->BootSect.ulVolSerial));
     680      show_message("The Volume Serial Number is %s.", 1243, 1, TYPE_STRING, szString);
     681      }
    677682
    678683   if (pCD->fAutoRecover && pCD->fCleanOnBoot)
  • TabularUnified trunk/src/ufat32/fatfunc.c

    r185 r187  
    152152VOID GetFirstInfo( PBOOL pFirstInfo );
    153153VOID SetUni2NLS( USHORT usPage, USHORT usChar, USHORT usCode );
    154 BOOL LoadTranslateTable(VOID);
     154BOOL LoadTranslateTable(BOOL fSilent);
    155155VOID GetCaseConversion( PUCHAR pCase );
    156156BOOL UpdateFSInfo(PCDINFO pCD);
     
    21292129*
    21302130******************************************************************/
    2131 BOOL LoadTranslateTable(VOID)
     2131BOOL LoadTranslateTable(BOOL fSilent)
    21322132{
    21332133    APIRET rc;
     
    24042404
    24052405   f32Parms.ulCurCP = rgCP[0];
    2406    //if( !fSilent )
     2406   if( ! fSilent )
    24072407       printf("FAT32: Unicode translate table for CP %lu loaded.\n", rgCP[0]);
    24082408   rc = TRUE;
  • TabularUnified trunk/src/ufat32/format.c

    r186 r187  
    486486                 "    ... \n"
    487487                 "  128 - use 128 sectors per cluster (64K clusters)\n"
     488                 "/P is specified by PM fromtends\n"
    488489                 "/V:<volume label>\n"
    489490                 "/R:<reserved sectors>\n"
  • TabularUnified trunk/src/ufat32/recover.c

    r186 r187  
    1818ULONG FindPathCluster(PCDINFO pCD, ULONG ulCluster, PSZ pszPath, PDIRENTRY pDirEntry, PSZ pszFullName);
    1919USHORT RecoverChain2(PCDINFO pCD, ULONG ulCluster, PBYTE pData, USHORT cbData);
    20 BOOL LoadTranslateTable(VOID);
     20BOOL LoadTranslateTable(BOOL fSilent);
    2121
    2222BOOL DoRecover(PCDINFO pCD, char *pszFilename);
     
    3838   int i;
    3939
    40    LoadTranslateTable();
     40   LoadTranslateTable(0);
    4141
    4242   pCD = (PCDINFO)malloc(sizeof(CDINFO));
Note: See TracChangeset for help on using the changeset viewer.