Revision c324da14 src/Ganeti/HTools/Node.hs

b/src/Ganeti/HTools/Node.hs
141 141
  , pTags    :: TagMap    -- ^ Primary instance exclusion tags and their count
142 142
  , group    :: T.Gdx     -- ^ The node's group (index)
143 143
  , iPolicy  :: T.IPolicy -- ^ The instance policy (of the node's group)
144
  , exclStorage :: Bool   -- ^ Effective value of exclusive_storage
144 145
  } deriving (Show, Eq)
145 146

  
146 147
instance T.Element Node where
......
216 217
-- The index and the peers maps are empty, and will be need to be
217 218
-- update later via the 'setIdx' and 'buildPeers' functions.
218 219
create :: String -> Double -> Int -> Int -> Double
219
       -> Int -> Double -> Bool -> Int -> T.Gdx -> Node
220
       -> Int -> Double -> Bool -> Int -> T.Gdx -> Bool -> Node
220 221
create name_init mem_t_init mem_n_init mem_f_init
221 222
       dsk_t_init dsk_f_init cpu_t_init offline_init spindles_init
222
       group_init =
223
       group_init excl_stor =
223 224
  Node { name = name_init
224 225
       , alias = name_init
225 226
       , tMem = mem_t_init
......
255 256
       , pTags = Map.empty
256 257
       , group = group_init
257 258
       , iPolicy = T.defIPolicy
259
       , exclStorage = excl_stor
258 260
       }
259 261

  
260 262
-- | Conversion formula from mDsk\/tDsk to loDsk.

Also available in: Unified diff