org.catacombae.jfuse.types.fuse26
Class FUSEFileInfo

java.lang.Object
  extended by org.catacombae.jfuse.types.fuse26.FUSEFileInfo
All Implemented Interfaces:
FileStatusFlags

public class FUSEFileInfo
extends Object
implements FileStatusFlags

Author:
erik

Field Summary
 boolean direct_io
          Can be filled in by open, to use direct I/O on this file.
 long fh
          File handle.
 long fh_old
          Old file handle, don't use
 int flags
          Open flags.
 boolean flush
          Indicates a flush operation.
 boolean keep_cache
          Can be filled in by open, to indicate, that cached file data need not be invalidated.
 long lock_owner
          Lock owner id.
 int writepage
          In case of a write operation indicates if this was caused by a writepage
 
Fields inherited from interface org.catacombae.jfuse.types.system.FileStatusFlags
O_ACCMODE, O_APPEND, O_ASYNC, O_CREAT, O_DIRECTORY, O_EVTONLY, O_EXCL, O_EXLOCK, O_NOCTTY, O_NOFOLLOW, O_NONBLOCK, O_RDONLY, O_RDWR, O_SHLOCK, O_SYMLINK, O_SYNC, O_TRUNC, O_WRONLY
 
Constructor Summary
FUSEFileInfo()
           
 
Method Summary
 boolean getFlagAppend()
          Convenience method that checks if O_APPEND is set.
 boolean getFlagCreate()
          Convenience method that checks if O_CREAT is set.
 boolean getFlagExcl()
          Convenience method that checks if O_EXCL is set.
 boolean getFlagExclusiveLock()
          Convenience method that checks if O_EXLOCK is set.
 boolean getFlagNofollow()
          Convenience method that checks if O_NOFOLLOW is set.
 boolean getFlagNonblock()
          Convenience method that checks if O_NONBLOCK is set.
 boolean getFlagReadOnly()
          Convenience method that checks if O_RDONLY is set.
 boolean getFlagReadWrite()
          Convenience method that checks if O_RDWR is set.
 boolean getFlagSharedLock()
          Convenience method that checks if O_SHLOCK is set.
 boolean getFlagSymlink()
          Convenience method that checks if O_SYMLINK is set.
 boolean getFlagTruncate()
          Convenience method that checks if O_TRUNC is set.
 boolean getFlagWriteOnly()
          Convenience method that checks if O_WRONLY is set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flags

public int flags
Open flags. Available in open() and release()


fh_old

public long fh_old
Old file handle, don't use


writepage

public int writepage
In case of a write operation indicates if this was caused by a writepage


direct_io

public boolean direct_io
Can be filled in by open, to use direct I/O on this file. Introduced in version 2.4


keep_cache

public boolean keep_cache
Can be filled in by open, to indicate, that cached file data need not be invalidated. Introduced in version 2.4


flush

public boolean flush
Indicates a flush operation. Set in flush operation, also maybe set in highlevel lock operation and lowlevel release operation. Introduced in version 2.6


fh

public long fh
File handle. May be filled in by filesystem in open(). Available in all other file operations


lock_owner

public long lock_owner
Lock owner id. Available in locking operations and flush

Constructor Detail

FUSEFileInfo

public FUSEFileInfo()
Method Detail

getFlagReadOnly

public boolean getFlagReadOnly()
Convenience method that checks if O_RDONLY is set.


getFlagWriteOnly

public boolean getFlagWriteOnly()
Convenience method that checks if O_WRONLY is set.


getFlagReadWrite

public boolean getFlagReadWrite()
Convenience method that checks if O_RDWR is set.


getFlagNonblock

public boolean getFlagNonblock()
Convenience method that checks if O_NONBLOCK is set.


getFlagAppend

public boolean getFlagAppend()
Convenience method that checks if O_APPEND is set.


getFlagCreate

public boolean getFlagCreate()
Convenience method that checks if O_CREAT is set.


getFlagTruncate

public boolean getFlagTruncate()
Convenience method that checks if O_TRUNC is set.


getFlagExcl

public boolean getFlagExcl()
Convenience method that checks if O_EXCL is set.


getFlagSharedLock

public boolean getFlagSharedLock()
Convenience method that checks if O_SHLOCK is set.


getFlagExclusiveLock

public boolean getFlagExclusiveLock()
Convenience method that checks if O_EXLOCK is set.


getFlagNofollow

public boolean getFlagNofollow()
Convenience method that checks if O_NOFOLLOW is set.


getFlagSymlink

public boolean getFlagSymlink()
Convenience method that checks if O_SYMLINK is set.