|
@@ -58,7 +58,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsFree(_ context.Context, _ wa_api.Modul
|
|
|
}
|
|
|
_, ok := a.api.AferoFsInstancesMgr.Release(hAfs)
|
|
|
if !ok {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_release_error",
|
|
|
"handle": fmt.Sprintf("%d", hAfs),
|
|
|
})
|
|
@@ -66,7 +66,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsFree(_ context.Context, _ wa_api.Modul
|
|
|
stack[0] = uint64(neg1)
|
|
|
return
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_free_ok",
|
|
|
"handle": fmt.Sprintf("%d", hAfs),
|
|
|
})
|
|
@@ -98,7 +98,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsMkdir(_ context.Context, mod wa_api.Mo
|
|
|
}
|
|
|
err := objAfs.Fs.MkdirAll(string(dirPath), os.FileMode(perm))
|
|
|
if err != nil {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_mkdir_error",
|
|
|
"dir-path": string(dirPath),
|
|
|
"afs": fmt.Sprintf("%d", hAfs),
|
|
@@ -109,7 +109,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsMkdir(_ context.Context, mod wa_api.Mo
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_VERBOSE, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_VERBOSE, map[string]string{
|
|
|
"type": "afs_mkdir_ok",
|
|
|
"afs": fmt.Sprintf("%d", hAfs),
|
|
|
"path": string(dirPath),
|
|
@@ -127,7 +127,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateOsFs(_ context.Context, _ wa_api
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -135,7 +135,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateOsFs(_ context.Context, _ wa_api
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -144,7 +144,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateOsFs(_ context.Context, _ wa_api
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_osfs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
})
|
|
@@ -160,7 +160,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateMemFs(_ context.Context, _ wa_ap
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -168,7 +168,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateMemFs(_ context.Context, _ wa_ap
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -177,7 +177,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateMemFs(_ context.Context, _ wa_ap
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_memfs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
})
|
|
@@ -214,7 +214,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBpFs(_ context.Context, mod wa_a
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -222,7 +222,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBpFs(_ context.Context, mod wa_a
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -231,7 +231,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBpFs(_ context.Context, mod wa_a
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_bpfs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
"base-afs": fmt.Sprintf("%d", hBaseAfs),
|
|
@@ -264,7 +264,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateRegFs(_ context.Context, mod wa_
|
|
|
}
|
|
|
cpdRegExp, err := regexp.Compile(string(strRegExp))
|
|
|
if err != nil {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_regfs_regexp_compile_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -280,7 +280,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateRegFs(_ context.Context, mod wa_
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -288,7 +288,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateRegFs(_ context.Context, mod wa_
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -297,7 +297,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateRegFs(_ context.Context, mod wa_
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_regfs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
"base-afs": fmt.Sprintf("%d", hBaseAfs),
|
|
@@ -328,7 +328,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateRoFs(_ context.Context, _ wa_api
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -336,7 +336,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateRoFs(_ context.Context, _ wa_api
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -345,7 +345,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateRoFs(_ context.Context, _ wa_api
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_rofs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
"base-afs": fmt.Sprintf("%d", hBaseAfs),
|
|
@@ -386,7 +386,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateCowFs(_ context.Context, _ wa_ap
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -394,7 +394,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateCowFs(_ context.Context, _ wa_ap
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -403,7 +403,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateCowFs(_ context.Context, _ wa_ap
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_cowfs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
"base-ro-afs": fmt.Sprintf("%d", hRoAfs),
|
|
@@ -452,7 +452,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateCorFs(_ context.Context, _ wa_ap
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -460,7 +460,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateCorFs(_ context.Context, _ wa_ap
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -469,7 +469,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateCorFs(_ context.Context, _ wa_ap
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_corfs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
"base-ro-afs": fmt.Sprintf("%d", hRoAfs),
|
|
@@ -501,7 +501,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBepOvFs(_ context.Context, mod w
|
|
|
return
|
|
|
}
|
|
|
if len(b) != 4 {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_create_bep_ovfs_error",
|
|
|
"sub-type": "read_fs_layer_array_error",
|
|
|
"msg": "the length of the array element is not 4",
|
|
@@ -518,7 +518,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBepOvFs(_ context.Context, mod w
|
|
|
afsObjArray := make([]afero.Fs, lenAfsArray)
|
|
|
for i, v := range sliceAfsHandleArray {
|
|
|
if v <= 0 {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_create_bep_ovfs_error",
|
|
|
"sub-type": "read_fs_layer_invalid_handle",
|
|
|
"msg": "the value of this element is a invalid handle",
|
|
@@ -531,7 +531,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBepOvFs(_ context.Context, mod w
|
|
|
}
|
|
|
objV, ok := a.api.AferoFsInstancesMgr.Get(v)
|
|
|
if !ok {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_create_bep_ovfs_error",
|
|
|
"sub-type": "read_fs_layer_invalid_handle",
|
|
|
"msg": "the value of this element is a invalid handle",
|
|
@@ -542,7 +542,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBepOvFs(_ context.Context, mod w
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_bep_ovfs_debug",
|
|
|
"sub-type": "get_valid_fs_layer",
|
|
|
"i": fmt.Sprintf("%d", i),
|
|
@@ -565,7 +565,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBepOvFs(_ context.Context, mod w
|
|
|
h, err := a.api.AferoFsInstancesMgr.AllocateAndPut(afsObj)
|
|
|
if err != nil {
|
|
|
if err == go_int32_handle.ErrHandleExceedMax {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_WARN, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": "handle exceed max",
|
|
|
})
|
|
@@ -573,7 +573,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBepOvFs(_ context.Context, mod w
|
|
|
stack[0] = uint64(ecode)
|
|
|
return
|
|
|
} else {
|
|
|
- a.logger.LogComplex("ngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs", hiedalog.DLN_ERROR, map[string]string{
|
|
|
"type": "afs_handle_alloc_error",
|
|
|
"msg": err.Error(),
|
|
|
})
|
|
@@ -582,7 +582,7 @@ func (a *InitWAVMHostModuleAdapter) efnAfsCreateBepOvFs(_ context.Context, mod w
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- a.logger.LogComplex("ngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
+ a.logger.LogComplex("openngvfs-debug", hiedalog.DLN_DEBUG, map[string]string{
|
|
|
"type": "afs_create_bep_ovfs_ok",
|
|
|
"handle": fmt.Sprintf("%d", h),
|
|
|
})
|