Commit 69601f3b authored by claes's avatar claes

DetachedClassVolume added

parent 9821d9d2
/** /**
* Proview $Id: co_cdh.h,v 1.28 2008-05-29 15:02:24 claes Exp $ * Proview $Id: co_cdh.h,v 1.29 2008-10-16 11:11:53 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -121,6 +121,8 @@ typedef enum { ...@@ -121,6 +121,8 @@ typedef enum {
//! Largest value of volume identity for system classvolumes //! Largest value of volume identity for system classvolumes
#define cdh_cSystemClassVolMax (0 + ((pwr_tVolumeId)0 << 24) + (0 << 16) + (1 << 8) + 254) #define cdh_cSystemClassVolMax (0 + ((pwr_tVolumeId)0 << 24) + (0 << 16) + (1 << 8) + 254)
#define cdh_isClassVolumeClass( Cid) ((Cid) == pwr_eClass_ClassVolume || (Cid) == pwr_eClass_DetachedClassVolume)
//! Internal representatin of object identity. //! Internal representatin of object identity.
typedef struct { typedef struct {
unsigned int oix : 32; //! Object index. unsigned int oix : 32; //! Object index.
......
/* /*
* Proview $Id: rt_gdb.c,v 1.8 2006-03-20 06:57:35 claes Exp $ * Proview $Id: rt_gdb.c,v 1.9 2008-10-16 11:12:57 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1035,7 +1035,7 @@ gdb_LoadVolume ( ...@@ -1035,7 +1035,7 @@ gdb_LoadVolume (
vp->l.flags.b.system = load.b.native && cid == pwr_eClass_SystemVolume; 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.dynamic = vp->l.flags.b.system | (load.b.native && cid == pwr_eClass_DynamicVolume);
vp->l.flags.b.shared = cid == pwr_eClass_DynamicVolume || cid == pwr_eClass_SharedVolume; 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.classvol = cdh_isClassVolumeClass(cid);
vp->l.flags.b.netCached = load.b.netCached; vp->l.flags.b.netCached = load.b.netCached;
vp->l.flags.b.fileCached = load.b.fileCached; vp->l.flags.b.fileCached = load.b.fileCached;
vp->l.flags.b.remote = load.b.netCached | load.b.fileCached; vp->l.flags.b.remote = load.b.netCached | load.b.fileCached;
......
/* /*
* Proview $Id: rt_mvol.c,v 1.21 2008-09-05 14:06:05 claes Exp $ * Proview $Id: rt_mvol.c,v 1.22 2008-10-16 11:13:20 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -770,14 +770,14 @@ mvol_LinkObject ( ...@@ -770,14 +770,14 @@ mvol_LinkObject (
errh_Bugcheck(*sts, "add class"); errh_Bugcheck(*sts, "add class");
} }
if (vp->g.cid == pwr_eClass_ClassVolume && strcmp(op->g.f.name.norm, "TEMPLATE") == 0) if ( cdh_isClassVolumeClass( vp->g.cid) && strcmp(op->g.f.name.norm, "TEMPLATE") == 0)
return cp; /* We don't want the 'Template' object. */ return cp; /* We don't want the 'Template' object. */
pwr_Assert(!op->u.n.flags.b.inCidList); pwr_Assert(!op->u.n.flags.b.inCidList);
pool_QinsertPred(sts, gdbroot->pool, &op->u.n.cid_ll, &cp->cid_lh); pool_QinsertPred(sts, gdbroot->pool, &op->u.n.cid_ll, &cp->cid_lh);
op->u.n.flags.b.inCidList = 1; op->u.n.flags.b.inCidList = 1;
if (vp->g.cid == pwr_eClass_ClassVolume) { if ( cdh_isClassVolumeClass( vp->g.cid)) {
switch (cid) { switch (cid) {
case pwr_eClass_ClassDef: case pwr_eClass_ClassDef:
/* Link the class definition object to the class. */ /* Link the class definition object to the class. */
......
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