Documentation
¶
Index ¶
- Constants
- func GetAttr(fd *os.File) (int, error)
- func GetAttrFd(fd int) (int, error)
- func GetAttrFdPtr(fd uintptr) (int, error)
- func IsAppendOnly(fd *os.File) bool
- func IsAppendOnlyFd(fd int) bool
- func IsAppendOnlyFdPtr(fd uintptr) bool
- func IsImmutable(fd *os.File) bool
- func IsImmutableFd(fd int) bool
- func IsImmutableFdPtr(fd uintptr) bool
- func IsNoDump(fd *os.File) bool
- func IsNoDumpFd(fd int) bool
- func IsNoDumpFdPtr(fd uintptr) bool
- func SetAppendOnly(fd *os.File) error
- func SetAppendOnlyFd(fd int) error
- func SetAppendOnlyFdPtr(fd uintptr) error
- func SetAttr(fd *os.File, attr int) error
- func SetAttrFd(fd int, attr int) error
- func SetAttrFdPtr(fd uintptr, attr int) error
- func SetImmutable(fd *os.File) error
- func SetImmutableFd(fd int) error
- func SetImmutableFdPtr(fd uintptr) error
- func SetNoDump(fd *os.File) error
- func SetNoDumpFd(fd int) error
- func SetNoDumpFdPtr(fd uintptr) error
- func UnSetAppendOnly(fd *os.File) error
- func UnSetAppendOnlyFd(fd int) error
- func UnSetAppendOnlyFdPtr(fd uintptr) error
- func UnSetImmutable(fd *os.File) error
- func UnSetImmutableFd(fd int) error
- func UnSetImmutableFdPtr(fd uintptr) error
- func UnSetNoDump(fd *os.File) error
- func UnSetNoDumpFd(fd int) error
- func UnSetNoDumpFdPtr(fd uintptr) error
Constants ¶
const ( // FsIocGetFlags is FS_IOC_GETFLAGS from /usr/include/linux/fs.h (man ioctl_list) FsIocGetFlags = 0x80086601 // FsIocSetFlags is FS_IOC_SETFLAGS from /usr/include/linux/fs.h (man ioctl_list) FsIocSetFlags = 0x40086602 // FsImmutableFlag is FS_IMMUTABLE_FL from /usr/include/linux/fs.h FsImmutableFlag = 0x00000010 /* Immutable file */ // FsAppendFlag is FS_APPEND_FL from /usr/include/linux/fs.h FsAppendFlag = 0x00000020 /* writes to file may only append */ // FsNoDumpFlag is FS_NODUMP_FL from /usr/include/linux/fs.h FsNoDumpFlag = 0x00000040 /* do not dump file */ )
ToDo: Test on XFS
Variables ¶
This section is empty.
Functions ¶
func GetAttrFd ¶
GetAttrFd retrieves the attributes of a file on a linux filesystem, using file descriptor as int directly.
func GetAttrFdPtr ¶
GetAttrFdPtr retrieves the attributes of a file on a linux filesystem, using file descriptor as uintptr directly.
func IsAppendOnly ¶
IsAppendOnly checks if file has append only flag set.
func IsAppendOnlyFd ¶
IsAppendOnlyFd checks if file has append only flag set, using file descriptor as int directly.
func IsAppendOnlyFdPtr ¶
IsAppendOnlyFdPtr checks if file has append only flag set, using file descriptor as uintptr directly.
func IsImmutable ¶
IsImmutable checks if file has immutable flag set.
func IsImmutableFd ¶
IsImmutableFd checks if file has immutable flag set, using file descriptor as int directly.
func IsImmutableFdPtr ¶
IsImmutableFdPtr checks if file has immutable flag set, using file descriptor as uintptr directly.
func IsNoDumpFd ¶
IsNoDumpFd checks if file has no dump flag set, using file descriptor as int directly.
func IsNoDumpFdPtr ¶
IsNoDumpFdPtr checks if file has no dump flag set, using file descriptor as uintptr directly.
func SetAppendOnly ¶
SetAppendOnly sets append only flag on file.
func SetAppendOnlyFd ¶
SetAppendOnlyFd sets append only flag on file, using file descriptor as int directly.
func SetAppendOnlyFdPtr ¶
SetAppendOnlyFdPtr sets append only flag on file, using file descriptor as uintptr directly.
func SetAttrFd ¶
SetAttrFd sets the attributes of a file on a linux filesystem to the given value, using file descriptor as uintptr directly.
func SetAttrFdPtr ¶
SetAttrFdPtr sets the attributes of a file on a linux filesystem to the given value, using file descriptor as uintptr directly.
func SetImmutableFd ¶
SetImmutableFd sets immutable flag on file, using file descriptor as int directly.
func SetImmutableFdPtr ¶
SetImmutableFdPtr sets immutable flag on file, using file descriptor as uintptr directly.
func SetNoDumpFd ¶
SetNoDumpFd sets no dump flag on file, using file descriptor as int directly.
func SetNoDumpFdPtr ¶
SetNoDumpFdPtr sets no dump flag on file, using file descriptor as uintptr directly.
func UnSetAppendOnly ¶
UnSetAppendOnly unsets append only flag on file.
func UnSetAppendOnlyFd ¶
UnSetAppendOnlyFd unsets append only flag on file, using file descriptor as int directly.
func UnSetAppendOnlyFdPtr ¶
UnSetAppendOnlyFdPtr unsets append only flag on file, using file descriptor as uintptr directly.
func UnSetImmutable ¶
UnSetImmutable unsets immutable flag on file.
func UnSetImmutableFd ¶
UnSetImmutableFd unsets immutable flag on file, using file descriptor as int directly.
func UnSetImmutableFdPtr ¶
UnSetImmutableFdPtr unsets immutable flag on file, using file descriptor as uintptr directly.
func UnSetNoDumpFd ¶
UnSetNoDumpFd unsets no dump flag on file, using file descriptor as int directly.
func UnSetNoDumpFdPtr ¶
UnSetNoDumpFdPtr unsets no dump flag on file, using file descriptor as uintptr directly.
Types ¶
This section is empty.