mirror of
https://github.com/versity/scoutfs-go.git
synced 2026-01-04 11:03:59 +00:00
scoutfs: update release/stage for new ioctl structs
This commit is contained in:
@@ -288,7 +288,7 @@ func ReleaseFile(path string, version uint64) error {
|
||||
// FReleaseFile marks file offline and frees associated extents
|
||||
func FReleaseFile(f *os.File, version uint64) error {
|
||||
r := iocRelease{
|
||||
Count: math.MaxUint64,
|
||||
Length: math.MaxUint64,
|
||||
Version: version,
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ func FStageFile(f *os.File, version, offset uint64, b []byte) (int, error) {
|
||||
Data_version: version,
|
||||
Buf_ptr: uint64(uintptr(unsafe.Pointer(&b[0]))),
|
||||
Offset: offset,
|
||||
Count: int32(len(b)),
|
||||
Length: int32(len(b)),
|
||||
}
|
||||
|
||||
return scoutfsctl(f, IOCSTAGE, unsafe.Pointer(&r))
|
||||
|
||||
@@ -49,15 +49,15 @@ type inoPath struct {
|
||||
X_pad [6]uint8
|
||||
}
|
||||
type iocRelease struct {
|
||||
Block uint64
|
||||
Count uint64
|
||||
Offset uint64
|
||||
Length uint64
|
||||
Version uint64
|
||||
}
|
||||
type iocStage struct {
|
||||
Data_version uint64
|
||||
Buf_ptr uint64
|
||||
Offset uint64
|
||||
Count int32
|
||||
Length int32
|
||||
X_pad uint32
|
||||
}
|
||||
type Stat struct {
|
||||
|
||||
Reference in New Issue
Block a user