public override StorApiStatus Initialize(VolumeInitializeType type) { StorApiStatus storApiStatus = StorApiStatusEnum.STOR_NO_ERROR; byte b = 0; byte init_Type = 3; switch (type) { case VolumeInitializeType.INIT_QUICK: init_Type = 0; break; case VolumeInitializeType.INIT_FULLFG: init_Type = 1; break; case VolumeInitializeType.INIT_FULLBG: init_Type = 2; break; } lock (MarvellUtil.mvApiLock) { try { b = MvApi.MvApi.MV_LD_StartINIT(((MarvellController)this.controller).AdapterId, this.mvid, init_Type); } catch (Exception ex) { Logger.Warn("MV_LD_StartINIT exception: {0}", new object[] { ex }); return(StorApiStatusEnum.STOR_API_ERROR); } } if (b != 0) { storApiStatus = MarvellUtil.ToStorApiStatus(b); storApiStatus.internalIntData = (int)b; } return(storApiStatus); }
public virtual StorApiStatus Initialize(VolumeInitializeType type) { return(StorApiStatusEnum.STOR_NOT_IMPLEMENTED); }