From: Ming Z. <mi...@el...> - 2005-09-13 00:21:26
|
Hi Salvo Thanks a lot. Could you resend them by using "diff -Nura <old> <new>"? Thanks Ming On Tue, 2005-09-13 at 02:14 +0200, salvatore ventura wrote: > Hi, > these three patches apply to files: > * AccessSpecList.cpp > * PageDisk.h > * PageDisk.cpp >=20 > and do the following: > - add predefined IO profiles as > - 64KB > - 2 MB > - Rename "All in one" to "All in one - no 64K/2MB" >=20 > - add support to handle CTRL+P keyboard accelerator > on the PageDisk list, which will select all the=20 > Physical Disks. This in addition to the existing > CTRL+A which selects *all* the devices, and this > enhancement is for automation purposes. >=20 > All the patch files were done against the latest released > version, even though there has been no development on them > since release date. >=20 > If any question, feel free to contact me. >=20 > thx, > .salvo > =20 >=20 > worth a visit... > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > http://guidamadrid.altervista.org > http://www.worldbuildingservice.com >=20 >=20 > =09 > ___________________________________=20 > Yahoo! Messenger: chiamate gratuite in tutto il mondo=20 > http://it.beta.messenger.yahoo.com > plain text document attachment (AccessSpecList.patch), "1742150075- > AccessSpecList.patch" > 56c56,61 < /* ## Changes ...: 2004-04-24 (dan...@ed...) #= # */ --- > /* ## Changes ...: ## */ > /* ## 2005-09-08 (v= ent...@ya...) ## */ > /* ## - Added 64K and 2MB profiles, = not included in ## */ > /* ## the All-in-one. ## */ > /* ## - Rena= med "All in one" to "All in one - no 64K/2M" ## */ > /* ## 2004-04-24 (d= ani...@ed...) ## */ 371a377,492 > > // 65536 Bytes / 64 Kil= o Bytes > > spec =3D New(); > _snprintf( spec->name, MAX_NAME, "64K; 100%= % Read; 0%% random" ); > spec->access[0].of_size =3D 100; > spec->access[= 0].size =3D 65536; > spec->access[0].reads =3D 100; > spec->access[0].ran= dom =3D 0; > spec->access[0].delay =3D 0; > spec->access[0].burst =3D 1; = > spec->access[0].align =3D 0; > spec->access[0].reply =3D 0; > > spec = =3D New(); > _snprintf( spec->name, MAX_NAME, "64K; 75%% Read; 0%% random"= ); > spec->access[0].of_size =3D 100; > spec->access[0].size =3D 65536; = > spec->access[0].reads =3D 75; > spec->access[0].random =3D 0; > spec->= access[0].delay =3D 0; > spec->access[0].burst =3D 1; > spec->access[0].a= lign =3D 0; > spec->access[0].reply =3D 0; > > spec =3D New(); > _snprin= tf( spec->name, MAX_NAME, "64K; 50%% Read; 0%% random" ); > spec->access[0= ].of_size =3D 100; > spec->access[0].size =3D 65536; > spec->access[0].re= ads =3D 50; > spec->access[0].random =3D 0; > spec->access[0].delay =3D 0= ; > spec->access[0].burst =3D 1; > spec->access[0].align =3D 0; > spec->= access[0].reply =3D 0; > > spec =3D New(); > _snprintf( spec->name, MAX_N= AME, "64K; 25%% Read; 0%% random" ); > spec->access[0].of_size =3D 100; > = spec->access[0].size =3D 65536; > spec->access[0].reads =3D 25; > spec->= access[0].random =3D 0; > spec->access[0].delay =3D 0; > spec->access[0].= burst =3D 1; > spec->access[0].align =3D 0; > spec->access[0].reply =3D 0= ; > > spec =3D New(); > _snprintf( spec->name, MAX_NAME, "64K; 0%% Read; = 0%% random" ); > spec->access[0].of_size =3D 100; > spec->access[0].size = =3D 65536; > spec->access[0].reads =3D 0; > spec->access[0].random =3D 0;= > spec->access[0].delay =3D 0; > spec->access[0].burst =3D 1; > spec->a= ccess[0].align =3D 0; > spec->access[0].reply =3D 0; > > > // 2097152 B= ytes / 2 Mega Bytes > > spec =3D New(); > _snprintf( spec->name, MAX_NAME= , "2M; 100%% Read; 0%% random" ); > spec->access[0].of_size =3D 100; > sp= ec->access[0].size =3D 2097152; > spec->access[0].reads =3D 100; > spec->= access[0].random =3D 0; > spec->access[0].delay =3D 0; > spec->access[0].= burst =3D 1; > spec->access[0].align =3D 0; > spec->access[0].reply =3D 0= ; > > spec =3D New(); > _snprintf( spec->name, MAX_NAME, "2M; 75%% Read; = 0%% random" ); > spec->access[0].of_size =3D 100; > spec->access[0].size = =3D 2097152; > spec->access[0].reads =3D 75; > spec->access[0].random =3D= 0; > spec->access[0].delay =3D 0; > spec->access[0].burst =3D 1; > spec= ->access[0].align =3D 0; > spec->access[0].reply =3D 0; > > spec =3D New(= ); > _snprintf( spec->name, MAX_NAME, "2M; 50%% Read; 0%% random" ); > sp= ec->access[0].of_size =3D 100; > spec->access[0].size =3D 2097152; > spec= ->access[0].reads =3D 50; > spec->access[0].random =3D 0; > spec->access[= 0].delay =3D 0; > spec->access[0].burst =3D 1; > spec->access[0].align = =3D 0; > spec->access[0].reply =3D 0; > > spec =3D New(); > _snprintf( s= pec->name, MAX_NAME, "2M; 25%% Read; 0%% random" ); > spec->access[0].of_s= ize =3D 100; > spec->access[0].size =3D 2097152; > spec->access[0].reads = =3D 25; > spec->access[0].random =3D 0; > spec->access[0].delay =3D 0; > = spec->access[0].burst =3D 1; > spec->access[0].align =3D 0; > spec->acce= ss[0].reply =3D 0; > > spec =3D New(); > _snprintf( spec->name, MAX_NAME,= "2M; 0%% Read; 0%% random" ); > spec->access[0].of_size =3D 100; > spec-= >access[0].size =3D 2097152; > spec->access[0].reads =3D 0; > spec->acces= s[0].random =3D 0; > spec->access[0].delay =3D 0; > spec->access[0].burst= =3D 1; > spec->access[0].align =3D 0; > spec->access[0].reply =3D 0; > = 375c496 < _snprintf( spec->name, MAX_NAME, "All in one" ); --- > _snprin= tf( spec->name, MAX_NAME, "All in one - no 64K/2M" ); > plain text document attachment (PageDisk.cpp.patch), "905230720- > PageDisk.cpp.patch" > 53c53,61 < /* ## Changes ...: 2003-10-17 (dan...@ed...) #= # */ --- > /* ## Changes ...: 2005-09-08 (ven...@ya...) ## */ = > /* ## - Added CPageDisk::SetAllCheckByType, to allow ## */ > /* ## disk = selection based on type. ## */ > /* ## - In KeyMultiSel: ## */ > /* ## - Ad= ded ShowTargets() before the SetAllCheck to ## */ > /* ## reset the lis= t when using the Keyboard accelerator## */ > /* ## - Added case 'P', to = select only PhysicalDiskType ## */ > /* ## targets. ## */ > /* ## 2003-= 10-17 (dan...@ed...) ## */ 738a747,781 > // > // Sets all t= he interface's check box to the specified state. > // but only for specifie= d disktype > // > void CPageDisk::SetAllCheckByType( TargetSelType selectio= n , TargetType disktype) > { > HTREEITEM hdisk; > int i, iface_count; = > Manager *manager; > Target_Spec *disk; > > > hdisk =3D m_TTargets.G= etRootItem(); > > manager =3D theApp.pView->m_pWorkerView->GetSelectedMana= ger(); > if ( !manager ) > return; > > iface_count =3D manager->Inter= faceCount( GenericDiskType ); > for ( i =3D 0; i < iface_count; i++ ) > {= > // > disk =3D manager->GetInterface( i, GenericDiskType ); > if ( = disk->type =3D=3D disktype ) > { > SetSelectionCheck( hdisk, selection= ); > } > > hdisk =3D m_TTargets.GetNextSiblingItem( hdisk ); > } > } = > > > > 1046a1090 > // Clear the target list first, then Select All the t= argets 1048a1093 > ShowTargets(); 1051a1097,1106 > break; > case 'P':= > // Clear the target list first, then Select All the targets > // tha= t match the "PhysicalDiskType" > if ( control ) > { > ShowTargets();= > SetAllCheckByType( TargetChecked , PhysicalDiskType); > StoreTarge= tSelection(); > } > plain text document attachment (PageDisk.h.patch), "3992589679- > PageDisk.h.patch" > 53c53,56 < /* ## Changes ...: 2003-10-17 (dan...@ed...) #= # */ --- > /* ## Changes ...: 2005-09-08 (ven...@ya...) ## */ = > /* ## - Added CPageDisk::SetAllCheckByType, to allow ## */ > /* ## disk = selection based on type. ## */ > /* ## 2003-10-17 (daniel.scheibli@edelbyte= .org) ## */ 119a123 > void SetAllCheckByType( TargetSelType selection , Ta= rgetType disktype ); |