make format

This commit is contained in:
Jakob Unterwurzacher 2022-08-28 11:11:36 +02:00
parent 4808adc761
commit 003a7fa2e5
22 changed files with 24 additions and 6 deletions

View File

@ -1,4 +1,5 @@
//+build linux //go:build linux
// +build linux
/* /*
Small tool to try to debug unix.Getdents problems on CIFS mounts Small tool to try to debug unix.Getdents problems on CIFS mounts

View File

@ -1,3 +1,4 @@
//go:build go1.7
// +build go1.7 // +build go1.7
// ^^^^^^^^^^^^ we use the "sub-benchmark" feature that was added in Go 1.7 // ^^^^^^^^^^^^ we use the "sub-benchmark" feature that was added in Go 1.7

View File

@ -65,7 +65,7 @@ func NewRootNode(args fusefrontend.Args, c *contentenc.ContentEnc, n *nametransf
} }
shortNameMax = n.GetLongNameMax() * 3 / 4 shortNameMax = n.GetLongNameMax() * 3 / 4
shortNameMax = shortNameMax - shortNameMax % 16 - 1 shortNameMax = shortNameMax - shortNameMax%16 - 1
rn := &RootNode{ rn := &RootNode{
args: args, args: args,

View File

@ -38,7 +38,6 @@ func (n *VirtualConfNode) Getattr(ctx context.Context, fh fs.FileHandle, out *fu
return 0 return 0
} }
// Check that we have implemented the fs.File* interfaces // Check that we have implemented the fs.File* interfaces
var _ = (fs.FileReader)((*VirtualConfFile)(nil)) var _ = (fs.FileReader)((*VirtualConfFile)(nil))
var _ = (fs.FileReleaser)((*VirtualConfFile)(nil)) var _ = (fs.FileReleaser)((*VirtualConfFile)(nil))

View File

@ -172,4 +172,4 @@ func Dir(path string) string {
// this should be hashed. // this should be hashed.
func (n *NameTransform) GetLongNameMax() int { func (n *NameTransform) GetLongNameMax() int {
return n.longNameMax return n.longNameMax
} }

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build cgo && !without_openssl
// +build cgo,!without_openssl // +build cgo,!without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
// We compare against Go's built-in GCM implementation. Since stupidgcm only // We compare against Go's built-in GCM implementation. Since stupidgcm only

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build without_openssl
// +build without_openssl // +build without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
// Copyright 2018 The Go Authors. All rights reserved. // Copyright 2018 The Go Authors. All rights reserved.

View File

@ -1,3 +1,4 @@
//go:build !without_openssl
// +build !without_openssl // +build !without_openssl
package stupidgcm package stupidgcm

View File

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package syscallcompat package syscallcompat

View File

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package syscallcompat package syscallcompat

View File

@ -1,3 +1,4 @@
//go:build race
// +build race // +build race
package main package main

View File

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package defaults package defaults

View File

@ -1,4 +1,5 @@
//+build linux //go:build linux
// +build linux
// Package root_test contains tests that need root // Package root_test contains tests that need root
// permissions to run // permissions to run

View File

@ -1,4 +1,5 @@
//+build linux //go:build linux
// +build linux
// Darwin does not support Fgetxattr and friends! // Darwin does not support Fgetxattr and friends!