From: Jeffrey Altman Date: Thu, 6 May 2004 22:06:58 +0000 (+0000) Subject: active-mapping-20040506 X-Git-Tag: openafs-devel-1_3_64~26 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6b1cb8b1a8fcb8f48110e4583e38b696d38f6c05;p=packages%2Fo%2Fopenafs.git active-mapping-20040506 Write active drive mapping data to afsdsbmt.ini from afs_config.exe --- diff --git a/src/WINNT/client_config/tab_drives.cpp b/src/WINNT/client_config/tab_drives.cpp index 9c2afd156..3ec357f21 100644 --- a/src/WINNT/client_config/tab_drives.cpp +++ b/src/WINNT/client_config/tab_drives.cpp @@ -155,6 +155,9 @@ void DrivesTab_OnCheck (HWND hDlg) Message (MB_OK | MB_ICONHAND, IDS_ERROR_UNMAP, IDS_ERROR_UNMAP_DESC, TEXT("%08lX"), dwStatus); DrivesTab_FillList (hDlg); } + WriteActiveMap(g.Configuration.NetDrives.aDriveMap[ iDriveSel ].chDrive, fChecked && + g.Configuration.NetDrives.aDriveMap[ iDriveSel ].fPersistent ); + } } @@ -199,6 +202,7 @@ void DrivesTab_OnRemove (HWND hDlg) DrivesTab_FillList (hDlg); } + WriteActiveMap(g.Configuration.NetDrives.aDriveMap[ iDriveSel ].chDrive, FALSE ); } } @@ -351,6 +355,13 @@ void DrivesTab_EditMapping (HWND hDlg, int iDrive) lstrcpy (g.Configuration.NetDrives.aDriveMap[ DriveMap.chDrive-chDRIVE_A ].szMapping, szAfsPathNew); WriteDriveMappings (&g.Configuration.NetDrives); + if (iDrive == -1) { + WriteActiveMap(DriveMap.chDrive, DriveMap.fPersistent); + } else if ( (chDRIVE_A + iDrive) != DriveMap.chDrive ) { + WriteActiveMap(chDRIVE_A+iDrive, FALSE); + WriteActiveMap(DriveMap.chDrive, DriveMap.fPersistent); + } + DrivesTab_FillList (hDlg); } }