Changeset 555


Ignore:
Timestamp:
Mar 4, 2007, 5:01:14 AM (14 years ago)
Author:
Gregg Young
Message:

Added NTFS support (read only); minor dive icon code cleanup; update help files

Location:
trunk/dll
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r552 r555  
    10401040             driveflags[x] &= ~DRIVE_REMOTE;
    10411041            }
     1042            if (!stricmp(FileSystem,NTFS))
     1043             driveflags[x] |= DRIVE_NOTWRITEABLE;
    10421044            if (strcmp(FileSystem, HPFS) &&
    10431045                strcmp(FileSystem, JFS) &&
     
    10471049                strcmp(FileSystem, NDFS32) &&
    10481050                strcmp(FileSystem, RAMFS) &&
     1051                strcmp(FileSystem, NTFS) &&
    10491052                strcmp(FileSystem, HPFS386)) {
    10501053              driveflags[x] |= DRIVE_NOLONGNAMES;
     
    10871090                  suggest[1] = 0;
    10881091                }
    1089                 sprintf(suggest + strlen(suggest), "%c", toupper(*szDrive));
     1092                sprintf(suggest + strlen(suggest), "%c" , toupper(*szDrive));
    10901093                strcpy(pci->szFileName, szDrive);
    10911094                pci->pszFileName = pci->szFileName;
  • trunk/dll/fm3dll.h

    r552 r555  
    13611361  *DRMDRFLIST, *DRMDRFOS2FILE, *DRMDRFFM2ARC,
    13621362  *DRM_FM2INIRECORD, *DRF_FM2INI, *SUBJECT, *LONGNAME,
    1363   *HPFS, *JFS, *CDFS, *FAT32, *HPFS386, *NDFS32, *CBSIFS, *ISOFS, *RAMFS,
     1363  *HPFS, *JFS, *CDFS, *FAT32, *HPFS386, *NDFS32, *CBSIFS, *ISOFS, *RAMFS, *NTFS,
    13641364  *WPProgram, *FM3Folder, *FM3Tools;
    13651365DATADEF RGB2 RGBGREY, RGBBLACK;
  • trunk/dll/init.c

    r552 r555  
    220220    NDFS32 = "NDFS32";
    221221    RAMFS = "RAMFS";
     222    NTFS = "NTFS";
    222223    /* end of strings */
    223224    memset(&RGBBLACK, 0, sizeof(RGB2));
  • trunk/dll/ipf/context.ipf

    r499 r555  
    66.*
    77.* Copyright (c) 1993-98 M. Kimes
    8 .* Copyright (c) 2006 Steven H.Levine
     8.* Copyright (c) 2006-07 Steven H.Levine
    99.*
    1010.* 01 Sep 06 GKY ADD new partition disks information
     11.* 03 Mar 07 GKY Update that file systems other than HPFS support long names
    1112.*
    1213.***********************************************************************
     
    571572based on several criteria. You can also tell FM/2 to always display
    572573directories ahead of or behind files. Note that :hp1.Last access
    573 date:ehp1. and :hp1.Creation date:ehp1. are only meaningful for HPFS
    574 file systems; FAT file systems do not track this information. The
    575 difference between :hp1.Pathname:ehp1. and :hp1.Filename:ehp1. is only
     574date:ehp1. and :hp1.Creation date:ehp1. are not tracked by the FAT file system
     575The difference between :hp1.Pathname:ehp1. and :hp1.Filename:ehp1. is only
    576576apparent in the Collector. With the former, the entire pathname of the
    577577object is used to sort. With the latter, only the filename portion is
  • trunk/dll/ipf/eas.ipf

    r268 r555  
     1.***********************************************************************
     2.*
     3.* $Id$
     4.*
     5.* Extended Atribute Usage
     6.*
     7.* Copyright (c) 1993-98 M. Kimes
     8.* Copyright (c) 2006-07 Steven H.Levine
     9.*
     10.* 03 Mar 07 GKY Update that file systems other than HPFS support long names
     11.*
     12.***********************************************************************
     13.*
    114:h2 res=95000 name=PANEL_EAS.Extended Attributes
    215:i1 id=aboutEAs.Extended Attributes
     
    88101:hp1..LONGNAME:ehp1. is an ASCII attribute that gives the full name of a
    89102file when stored on a file system that doesn't support long filenames
    90 (like FAT). Sometimes you'll see them even on files stored on HPFS
    91 drives, when invalid characters (invalid for the file system, like
     103(like FAT). Sometimes you'll see them even on files stored on drives that
     104support long names, when invalid characters (invalid for the file system, like
    92105a colon not used for a path separator, for example) are used.
    93106:p.
  • trunk/dll/ipf/notebook.ipf

    r549 r555  
    66.*
    77.* Copyright (c) 1993-98 M. Kimes
    8 .* Copyright (c) 2006 Steven H.Levine
     8.* Copyright (c) 2006-07 Steven H.Levine
    99.*
    1010.* 30 Dec 06 GKY Corrected statement re copy/move "toggle" in OS/2
     11.* 03 Mar 07 GKY Update that file systems other than HPFS support long names
    1112.*
    1213.***********************************************************************
     
    172173You can also tell FM/2 to always display directories ahead of or behind
    173174files. Note that :hp1.Last access date:ehp1. and :hp1.Creation
    174 date:ehp1. are only meaningful for HPFS file systems; FAT file systems
    175 do not track this information. The difference between
     175date:ehp1. are not tracked on FAT file systems. The difference between
    176176:hp1.Pathname:ehp1. and :hp1.Filename:ehp1. is only apparent in the
    177177Collector. With the former, the entire pathname of the object is used
     
    233233You can also tell FM/2 to always display directories ahead of or behind
    234234files. Note that :hp1.Last access date:ehp1. and :hp1.Creation
    235 date:ehp1. are only meaningful for HPFS file systems; FAT file systems
    236 do not track this information. The difference between
     235date:ehp1. are not tracked on FAT file systems. The difference between
    237236:hp1.Pathname:ehp1. and :hp1.Filename:ehp1. is only apparent in the
    238237Collector. With the former, the entire pathname of the object is used
     
    654653:p.
    655654If :hp6.Load Longnames:ehp6. is checked, FM/2 loads the .LONGNAME
    656 extended attribute for non-HPFS drives. This attribute usually contains
     655extended attribute for drives that don't have native support for long file names
     656(ie FAT). This attribute usually contains
    657657a long name for objects that should be restored if the object is moved
    658 to an HPFS drive. As for Subject, Longnames are only shown in the
     658to an HPFS/JFS drive. As for Subject, Longnames are only shown in the
    659659Details view. You can turn this off to marginally increase scanning
    660660speed. You can also adjust this on a drive-by-drive basis from the
  • trunk/dll/misc.c

    r552 r555  
    350350        !stricmp(FileSystem, RAMFS) ||
    351351        !stricmp(FileSystem, NDFS32) ||
     352        !stricmp(FileSystem, NTFS) ||
    352353        !stricmp(FileSystem, HPFS386)) {
    353354      hasCreateDT = TRUE;
  • trunk/dll/treecnr.c

    r552 r555  
    2222  29 Dec 06 GKY Fixed menu gray out for remote drives (added variable "remote")
    2323  29 Dec 06 GKY Enabled edit of drive flags on "not ready" drives
    24   18 Feb 07 GKY More drive type and inco support
     24  18 Feb 07 GKY More drive type and icon support
    2525
    2626***********************************************************************/
     
    17741774                                DRIVE_NOLOADICONS | DRIVE_NOLOADSUBJS |
    17751775                                DRIVE_NOLOADLONGS | DRIVE_INCLUDEFILES |
    1776                                 DRIVE_SLOW) | DRIVE_NOSTATS;
     1776                                DRIVE_SLOW | DRIVE_NOSTATS);
    17771777
    17781778              if (removable == 1)
     
    17831783                driveflags[x] |= DRIVE_ZIPSTREAM;
    17841784                driveflags[x] &= (~DRIVE_REMOTE);
     1785              }
    17851786              if(!strcmp(FileSystem,NDFS32)) {
    17861787                driveflags[x] |= DRIVE_VIRTUAL;
     
    17931794              if (!strcmp(FileSystem, CDFS) || !strcmp(FileSystem, ISOFS))
    17941795                driveflags[x] |= (DRIVE_REMOVABLE |
    1795                                   DRIVE_NOTWRITEABLE | DRIVE_CDROM);
     1796                                  DRIVE_NOTWRITEABLE | DRIVE_CDROM);
     1797              if(!strcmp(FileSystem,NTFS))
     1798                driveflags[x] |= DRIVE_NOTWRITEABLE;
    17961799              if (strcmp(FileSystem, HPFS) &&
    17971800                  strcmp(FileSystem, JFS) &&
     
    18011804                  strcmp(FileSystem, FAT32) &&
    18021805                  strcmp(FileSystem, NDFS32) &&
     1806                  strcmp(FileSystem, NTFS) &&
    18031807                  strcmp(FileSystem, HPFS386)) {
    18041808                driveflags[x] |= DRIVE_NOLONGNAMES;
    1805               }
    1806 
    18071809              }
    18081810              if (driveflags[x] & DRIVE_CDROM)
  • trunk/dll/valid.c

    r552 r555  
    244244
    245245  if (pulType && (!strcmp(pfsn, CDFS) || !strcmp(pfsn, ISOFS)))
    246     *pulType |= DRIVE_NOTWRITEABLE | DRIVE_CDROM | DRIVE_REMOVABLE;
     246      *pulType |= DRIVE_NOTWRITEABLE | DRIVE_CDROM | DRIVE_REMOVABLE;
     247  if (pulType && !strcmp(pfsn, NTFS))
     248      *pulType |= DRIVE_NOTWRITEABLE;
    247249  if (pulType && !strcmp(pfsn, NDFS32)){
    248250        *pulType |= DRIVE_VIRTUAL;
     
    252254    }
    253255  if (((PFSQBUFFER2) pvBuffer)->iType == FSAT_REMOTEDRV &&
    254       (strcmp(pfsn, CDFS) && strcmp(pfsn, ISOFS))) {
     256      (strcmp(pfsn, CDFS) || strcmp(pfsn, ISOFS))) {
    255257    if (pulType)
    256258      *pulType |= DRIVE_REMOTE;
     
    278280         !strcmp(pfsn, RAMFS) ||
    279281         !strcmp(pfsn, NDFS32) ||
     282         !strcmp(pfsn, NTFS) ||
    280283         !strcmp(pfsn, HPFS386))) {
    281284      *pulType &= ~DRIVE_NOLONGNAMES;
     
    294297      strcmp(pfsn, FAT32) &&
    295298      strcmp(pfsn, NDFS32) &&
     299      strcmp(pfsn, NTFS) &&
    296300      strcmp(pfsn, HPFS386)) {
    297301    if (pulType)
     
    642646    driveflags[x] &= (~DRIVE_REMOTE);
    643647  }
     648  if(!stricmp(FileSystem,NTFS))
     649    driveflags[x] |= DRIVE_NOTWRITEABLE;
    644650  if (strcmp(FileSystem, HPFS) &&
    645651      strcmp(FileSystem, JFS) &&
     
    648654      strcmp(FileSystem, RAMFS) &&
    649655      strcmp(FileSystem, FAT32) &&
     656      strcmp(FileSystem, NTFS) &&
     657      strcmp(FileSystem, NDFS32) &&
    650658      strcmp(FileSystem, HPFS386)) {
    651659    driveflags[x] |= DRIVE_NOLONGNAMES;
Note: See TracChangeset for help on using the changeset viewer.