- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ramdisk (0.06 sec)
-
internal/mountinfo/mountinfo_windows.go
return false } switch windows.GetDriveType(&wvolume[0]) { case windows.DRIVE_FIXED, windows.DRIVE_REMOVABLE, windows.DRIVE_REMOTE, windows.DRIVE_RAMDISK: // Recognize "fixed", "removable", "remote" and "ramdisk" drives as proper drives // which can be treated as an actual mount-point, rest can be ignored. // https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-getdrivetypew mountPointCache.Store(path, true)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 2K bytes - Viewed (0) -
internal/disk/disk_unix.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "syscall" ) // SameDisk reports whether di1 and di2 describe the same disk. func SameDisk(disk1, disk2 string) (bool, error) { st1 := syscall.Stat_t{} st2 := syscall.Stat_t{} if err := syscall.Stat(disk1, &st1); err != nil { return false, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 1.2K bytes - Viewed (0) -
internal/disk/disk_windows.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 disk // SameDisk reports whether di1 and di2 describe the same disk. func SameDisk(disk1, disk2 string) (bool, error) { return false, nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 951 bytes - Viewed (0) -
cmd/erasure-encode_test.go
"context" "crypto/rand" "io" "testing" "github.com/dustin/go-humanize" ) type badDisk struct{ StorageAPI } func (a badDisk) String() string { return "bad-disk" } func (a badDisk) AppendFile(ctx context.Context, volume string, path string, buf []byte) error { return errFaultyDisk } func (a badDisk) ReadFileStream(ctx context.Context, volume, path string, offset, length int64) (io.ReadCloser, error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 11.9K bytes - Viewed (0) -
internal/disk/root_disk.go
func IsRootDisk(diskPath string, rootDisk string) (bool, error) { if runtime.GOOS == "windows" { // On windows this function is not implemented. return false, nil } return SameDisk(diskPath, rootDisk)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.1K bytes - Viewed (0) -
cmd/erasure-heal_test.go
} for j := 0; j < test.badDisks; j++ { switch r := readers[test.offDisks+j].(type) { case *streamingBitrotReader: r.disk = badDisk{nil} case *wholeBitrotReader: r.disk = badDisk{nil} } } for j := 0; j < test.badStaleDisks; j++ { staleDisks[j] = badDisk{nil} } staleWriters := make([]io.Writer, len(staleDisks)) for i, disk := range staleDisks { if disk == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 7.9K bytes - Viewed (0) -
cmd/erasure-decode_test.go
for j := range disks[:test.offDisks] { if bitrotReaders[j] == nil { continue } switch r := bitrotReaders[j].(type) { case *wholeBitrotReader: r.disk = badDisk{nil} case *streamingBitrotReader: r.disk = badDisk{nil} } } if test.offDisks > 0 { bitrotReaders[0] = nil } writer.Reset()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 21.1K bytes - Viewed (0)