• Kirill Smelkov's avatar
    fuse: increase signal/noise in log messages · d1c826d1
    Kirill Smelkov authored
    - use tA=...s instead of `A...` or `AttrValid=...` for time(Attr valid);
    - use tE=...s instead of `EntryValid` for time(Entry valid);
    - use iX instead of `NodeId: X` for inode X;
    - use gX instead of `Generation=X` for generation X;
    - use `[<off> +<size>)` instead of `off <off> sz <sz>`;
    
    - use
    
            rx uniq: Op iX opargs
            tx uniq: status reply...
    
      instead of
    
            Dispatch uniq: Op NodeId: X opargs
            Serialize uniq: Op code: status reply...
    
      for received/replied messages;
    
    - use `["file1", "file2"]` instead of `names: [file1, file2]` for filenames.
    
    - use `xb` instead of `x bytes`
    
    - for replied data, also log data content, but only up to first 8 bytes.
      This does not flood the log, but at the same time makes filesystem
      diagnostics easier.
    d1c826d1
print_linux.go 1.49 KB