Commit b311b5e0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

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