Documentation ¶
Index ¶
- type Attr
- type FileHandle
- func (fh *FileHandle) Attr() (Attr, error)
- func (fh *FileHandle) Close()
- func (fh *FileHandle) ID() inodedb.ID
- func (fh *FileHandle) PWrite(p []byte, offset int64) error
- func (fh *FileHandle) ReadAt(p []byte, offset int64) (int, error)
- func (fh *FileHandle) Size() int64
- func (fh *FileHandle) Sync() error
- func (fh *FileHandle) Truncate(newsize int64) error
- type FileSystem
- func (fs *FileSystem) Attr(id inodedb.ID) (Attr, error)
- func (fs *FileSystem) CreateDir(dirID inodedb.ID, name string, permmode uint16, uid, gid uint32, ...) (inodedb.ID, error)
- func (fs *FileSystem) CreateDirFullPath(fullpath string, perm uint16, uid, gid uint32, modifiedT time.Time) (inodedb.ID, error)
- func (fs *FileSystem) CreateFile(dirID inodedb.ID, name string, permmode uint16, uid, gid uint32, ...) (inodedb.ID, error)
- func (fs *FileSystem) CreateFileFullPath(fullpath string, perm uint16, uid, gid uint32, modifiedT time.Time) (inodedb.ID, error)
- func (fs *FileSystem) DirEntries(id inodedb.ID) (map[string]inodedb.ID, error)
- func (fs *FileSystem) FindNodeFullPath(fullpath string) (inodedb.ID, error)
- func (fs *FileSystem) GetStats() (ret FileSystemStats)
- func (fs *FileSystem) IsDir(id inodedb.ID) (bool, error)
- func (fs *FileSystem) OpenFile(id inodedb.ID, flags int) (*FileHandle, error)
- func (fs *FileSystem) OpenFileFullPath(fullpath string, flags int, perm uint16) (*FileHandle, error)
- func (fs *FileSystem) ParentID(id inodedb.ID) (inodedb.ID, error)
- func (fs *FileSystem) Remove(dirID inodedb.ID, name string) error
- func (fs *FileSystem) Rename(srcDirID inodedb.ID, srcName string, dstDirID inodedb.ID, dstName string) error
- func (fs *FileSystem) SetAttr(id inodedb.ID, a Attr, valid ValidAttrFields) error
- func (fs *FileSystem) Sync() error
- func (fs *FileSystem) SyncFile(id inodedb.ID) error
- func (fs *FileSystem) TotalSize() (int64, error)
- func (fs *FileSystem) TruncateFile(id inodedb.ID, newsize int64) error
- func (fs *FileSystem) WriteFile(fullpath string, content []byte, perm uint16) error
- type FileSystemStats
- type INodeDBChunksArrayIO
- type OpenFile
- func (of *OpenFile) Append(p []byte) error
- func (of *OpenFile) CloseHandle(tgt *FileHandle)
- func (of *OpenFile) OpenHandleWithoutLock(flags int) *FileHandle
- func (of *OpenFile) PWrite(p []byte, offset int64) error
- func (of *OpenFile) ReadAt(p []byte, offset int64) (int, error)
- func (of *OpenFile) Size() int64
- func (of *OpenFile) Sync() error
- func (of *OpenFile) Truncate(newsize int64) error
- type ValidAttrFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHandle ¶
type FileHandle struct {
// contains filtered or unexported fields
}
func (*FileHandle) Attr ¶
func (fh *FileHandle) Attr() (Attr, error)
func (*FileHandle) Close ¶
func (fh *FileHandle) Close()
func (*FileHandle) ID ¶
func (fh *FileHandle) ID() inodedb.ID
func (*FileHandle) Size ¶
func (fh *FileHandle) Size() int64
func (*FileHandle) Sync ¶
func (fh *FileHandle) Sync() error
func (*FileHandle) Truncate ¶
func (fh *FileHandle) Truncate(newsize int64) error
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFileSystem ¶
func NewFileSystem(idb inodedb.DBHandler, bs blobstore.RandomAccessBlobStore, c *btncrypt.Cipher, logger *zap.Logger) *FileSystem
func (*FileSystem) CreateDirFullPath ¶
func (*FileSystem) CreateFile ¶
func (*FileSystem) CreateFileFullPath ¶
func (*FileSystem) DirEntries ¶
func (*FileSystem) FindNodeFullPath ¶
func (fs *FileSystem) FindNodeFullPath(fullpath string) (inodedb.ID, error)
func (*FileSystem) GetStats ¶
func (fs *FileSystem) GetStats() (ret FileSystemStats)
func (*FileSystem) OpenFile ¶
func (fs *FileSystem) OpenFile(id inodedb.ID, flags int) (*FileHandle, error)
func (*FileSystem) OpenFileFullPath ¶
func (fs *FileSystem) OpenFileFullPath(fullpath string, flags int, perm uint16) (*FileHandle, error)
func (*FileSystem) SetAttr ¶
func (fs *FileSystem) SetAttr(id inodedb.ID, a Attr, valid ValidAttrFields) error
func (*FileSystem) Sync ¶
func (fs *FileSystem) Sync() error
func (*FileSystem) TotalSize ¶
func (fs *FileSystem) TotalSize() (int64, error)
func (*FileSystem) TruncateFile ¶
func (fs *FileSystem) TruncateFile(id inodedb.ID, newsize int64) error
type FileSystemStats ¶
type INodeDBChunksArrayIO ¶
type INodeDBChunksArrayIO struct {
// contains filtered or unexported fields
}
func NewINodeDBChunksArrayIO ¶
func NewINodeDBChunksArrayIO(db inodedb.DBHandler, nlock inodedb.NodeLock) *INodeDBChunksArrayIO
type OpenFile ¶
type OpenFile struct {
// contains filtered or unexported fields
}
func (*OpenFile) CloseHandle ¶
func (of *OpenFile) CloseHandle(tgt *FileHandle)
func (*OpenFile) OpenHandleWithoutLock ¶
func (of *OpenFile) OpenHandleWithoutLock(flags int) *FileHandle
type ValidAttrFields ¶
type ValidAttrFields uint32
const ( UidValid ValidAttrFields = 1 << iota GidValid PermModeValid ModifiedTValid )
func (ValidAttrFields) String ¶
func (valid ValidAttrFields) String() string
Click to show internal directories.
Click to hide internal directories.