Commit 2177b39b authored by claes's avatar claes

SharedVolume added

parent 3322e73d
/*
* Proview $Id: rt_gdb.c,v 1.6 2005-09-01 14:57:55 claes Exp $
* Proview $Id: rt_gdb.c,v 1.7 2005-11-14 16:28:52 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -1033,14 +1033,15 @@ gdb_LoadVolume (
vp->l.flags.b.sub = load.b.native && cid == pwr_eClass_SubVolume;
vp->l.flags.b.system = load.b.native && cid == pwr_eClass_SystemVolume;
vp->l.flags.b.dynamic = vp->l.flags.b.system | (load.b.native && cid == pwr_eClass_DynamicVolume);
vp->l.flags.b.shared = cid == pwr_eClass_DynamicVolume;
vp->l.flags.b.shared = cid == pwr_eClass_DynamicVolume || cid == pwr_eClass_SharedVolume;
vp->l.flags.b.classvol = cid == pwr_eClass_ClassVolume;
vp->l.flags.b.netCached = load.b.netCached;
vp->l.flags.b.fileCached = load.b.fileCached;
vp->l.flags.b.remote = load.b.netCached | load.b.fileCached;
vp->l.flags.b.isOwned = nid == gdbroot->db->nid && (vp->l.flags.b.root | vp->l.flags.b.sub
| vp->l.flags.b.system | vp->l.flags.b.dynamic |vp->l.flags.b.classvol);
| vp->l.flags.b.system | vp->l.flags.b.dynamic | vp->l.flags.b.classvol
| vp->l.flags.b.shared);
if (vp->l.flags.b.isOwned) {
vp->g.nid = nid;
......
/*
* Proview $Id: wb_db.cpp,v 1.25 2005-09-06 10:43:31 claes Exp $
* Proview $Id: wb_db.cpp,v 1.26 2005-11-14 16:29:52 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -823,6 +823,8 @@ void wb_db::create(pwr_tVid vid, pwr_tCid cid, const char *volumeName, const cha
rbSize = sizeof(pwr_sDirectoryVolume);
break;
case pwr_eClass_SharedVolume:
rbSize = sizeof(pwr_sSharedVolume);
break;
case pwr_eClass_CreateVolume:
case pwr_eClass_MountVolume:
case pwr_eClass_MountObject:
......
/*
* Proview $Id: wb_vsel.cpp,v 1.12 2005-09-06 10:43:32 claes Exp $
* Proview $Id: wb_vsel.cpp,v 1.13 2005-11-14 16:30:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -365,7 +365,8 @@ WVsel::WVsel (
if (EVEN(sts)) { *status = sts; return; }
if ( classid == pwr_eClass_ClassVolume ||
classid == pwr_eClass_WorkBenchVolume )
classid == pwr_eClass_WorkBenchVolume ||
volume == ldh_cRtVolume)
{
sts = ldh_GetNextVolume( wbctx, volume, &volume);
continue;
......@@ -554,7 +555,8 @@ pwr_tStatus WVsel::load_volumelist()
if ( !all)
{
if ( classid == pwr_eClass_ClassVolume ||
classid == pwr_eClass_WorkBenchVolume )
classid == pwr_eClass_WorkBenchVolume ||
volume == ldh_cRtVolume)
{
sts = ldh_GetNextVolume( wbctx, volume, &volume);
continue;
......@@ -714,7 +716,7 @@ pwr_tStatus WVsel::check_volumelist(
if ( classid == pwr_eClass_RootVolume ||
classid == pwr_eClass_SubVolume ||
classid == pwr_eClass_SharedVolume ||
(classid == pwr_eClass_SharedVolume && volume != ldh_cRtVolume) ||
(classid == pwr_eClass_ClassVolume &&
(cdh_cUserClassVolMin <= volume && volume <= cdh_cUserClassVolMax)))
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment