Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 63 for syscall (0.16 sec)

  1. internal/disk/stat_linux_32bit.go

    	if !ok {
    		return "UNKNOWN"
    	}
    	return fsTypeString
    }
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    		Total:  uint64(s.Frsize) * (s.Blocks - reservedBlocks),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. cmd/os-dirent_fileino.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "syscall"
    
    func direntInode(dirent *syscall.Dirent) uint64 {
    	return uint64(dirent.Fileno)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 950 bytes
    - Viewed (0)
  3. cmd/os-dirent_ino.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    //go:build (linux || darwin) && !appengine
    // +build linux darwin
    // +build !appengine
    
    package cmd
    
    import "syscall"
    
    func direntInode(dirent *syscall.Dirent) uint64 {
    	return dirent.Ino
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 953 bytes
    - Viewed (0)
  4. internal/disk/fdatasync_unix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"os"
    	"syscall"
    )
    
    // Fdatasync is fsync on freebsd/darwin
    func Fdatasync(f *os.File) error {
    	return syscall.Fsync(int(f.Fd()))
    }
    
    // FadviseDontNeed is a no-op
    func FadviseDontNeed(f *os.File) error {
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  5. cmd/xl-storage_windows_test.go

    	err = fs.AppendFile(context.Background(), "voldir", "/file", []byte("hello"))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Try to create a file that includes a file in its path components.
    	// In *nix, this returns syscall.ENOTDIR while in windows we receive the following error.
    	err = fs.AppendFile(context.Background(), "voldir", "/file/obj1", []byte("hello"))
    	if err != errFileAccessDenied {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 29 06:35:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. cmd/service.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"os"
    	"os/exec"
    	"runtime"
    	"syscall"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    // Type of service signals currently supported.
    type serviceSignal int
    
    const (
    	serviceRestart       serviceSignal = iota // Restarts the server.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. internal/config/lambda/target/webhook.go

    package target
    
    import (
    	"bytes"
    	"context"
    	"crypto/tls"
    	"encoding/json"
    	"errors"
    	"net/http"
    	"strings"
    	"sync/atomic"
    	"syscall"
    	"time"
    
    	"github.com/minio/minio/internal/config/lambda/event"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/certs"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 17 20:02:26 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  8. internal/ioutil/ioutil.go

    // used with DIRECT I/O based file descriptor and it is expected that
    // input writer *os.File not a generic io.Writer. Make sure to have
    // the file opened for writes with syscall.O_DIRECT flag.
    func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, file *os.File) (int64, error) {
    	if totalSize == 0 {
    		return 0, nil
    	}
    
    	var written int64
    	for {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  9. cmd/server-main.go

    	return output, nil
    }
    
    // serverMain handler called for 'minio server' command.
    func serverMain(ctx *cli.Context) {
    	var warnings []string
    
    	signal.Notify(globalOSSignalCh, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT)
    
    	go handleSignals()
    
    	setDefaultProfilerRates()
    
    	// Initialize globalConsoleSys system
    	bootstrapTrace("newConsoleLogger", func() {
    		output, err := initializeLogRotate(ctx)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  10. cmd/xl-storage_test.go

    						if pathErr, ok := err.(*os.PathError); ok {
    							if errno, pok := pathErr.Err.(syscall.Errno); pok {
    								resultErrno = uintptr(errno)
    							}
    						}
    						if pathErr, ok := testCase.expectedErr.(*os.PathError); ok {
    							if errno, pok := pathErr.Err.(syscall.Errno); pok {
    								expectErrno = uintptr(errno)
    							}
    						}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top