Commit b311b5e0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e7cc46b7
......@@ -8,5 +8,5 @@ if test -z "$qrun_loglevel"; then
fi
# executed under qemu-runlinux
export WENDELIN_CORE_WCFS_OPTIONS="-d -alsologtostderr -v=1"
#export WENDELIN_CORE_WCFS_OPTIONS="-d -alsologtostderr -v=1"
py.test -vsx -k test_wcfs
......@@ -425,6 +425,7 @@ import (
stdlog "log"
"os"
// "runtime"
"sort"
"strings"
"sync"
"sync/atomic"
......@@ -806,8 +807,16 @@ retry:
δF := bfdir.δFtail.Update(δZ, zhead)
fmt.Printf("\n\nzδhandle: δF (#%d):\n", len(δF.Change))
for file := range δF.Change {
fmt.Printf("\t- %s\n", file.zfile.POid())
for file, δfile := range δF.Change {
blkv := δfile.Blocks.Elements()
sort.Slice(blkv, func(i, j int) bool {
return blkv[i] < blkv[j]
})
size := " "
if δfile.Size {
size = "S"
}
fmt.Printf("\t- %s\t%s %v\n", file.zfile.POid(), size, blkv)
}
time.Sleep(1*time.Second)
fmt.Printf("\n\n")
......
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