org.catacombae.jfuse.types.macfuse20
Class Setattr_x

java.lang.Object
  extended by org.catacombae.jfuse.types.macfuse20.Setattr_x

public class Setattr_x
extends Object

MacFUSE structure which is used in the setattr_x and fsetattr_x operations to return a lot of different attributes at one time, reducing kernel/userspace communication.

Author:
Erik Larsson

Field Summary
 Timespec acctime
          Last accessed time.
 Timespec bkuptime
          Last backup time.
 Timespec chgtime
          Last file status change time.
 Timespec crtime
          Create time.
 int flags
          Flags (probably equivalent to Stat.st_flags).
 long gid
          Group ID of the entry.
 short mode
          File mode.
 Timespec modtime
          Last data modification time.
 long size
          Size of the entry.
 long uid
          User ID of the entry.
 int valid
          What is this?
 
Constructor Summary
Setattr_x()
           
 
Method Summary
 boolean wantsBkuptime()
          Whether or not this setattr_x session wants the file system to set the variable 'bkuptime'.
 boolean wantsChgtime()
          Whether or not this setattr_x session wants the file system to set the variable 'chgtime'.
 boolean wantsCrtime()
          Whether or not this setattr_x session wants the file system to set the variable 'crtime'.
 boolean wantsFlags()
          Whether or not this setattr_x session wants the file system to set the variable 'flags'.
 boolean wantsGid()
          Whether or not this setattr_x session wants the file system to set the variable 'gid'.
 boolean wantsMode()
          Whether or not this setattr_x session wants the file system to set the variable 'mode'.
 boolean wantsModtime()
          Whether or not this setattr_x session wants the file system to set the variable 'modtime'.
 boolean wantsSize()
          Whether or not this setattr_x session wants the file system to set the variable 'size'.
 boolean wantsUid()
          Whether or not this setattr_x session wants the file system to set the variable 'uid'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valid

public int valid
What is this? Whether or not the struct is valid? TODO: check this. (int32_t)


mode

public short mode
File mode. (mode_t)


uid

public long uid
User ID of the entry. (uid_t)


gid

public long gid
Group ID of the entry. (gid_t)


size

public long size
Size of the entry. (off_t)


acctime

public final Timespec acctime
Last accessed time. (struct timespec)


modtime

public final Timespec modtime
Last data modification time. (struct timespec)


crtime

public final Timespec crtime
Create time. (struct timespec)


chgtime

public final Timespec chgtime
Last file status change time. (struct timespec)


bkuptime

public final Timespec bkuptime
Last backup time. (struct timespec)


flags

public int flags
Flags (probably equivalent to Stat.st_flags). (uint32_t)

Constructor Detail

Setattr_x

public Setattr_x()
Method Detail

wantsMode

public boolean wantsMode()
Whether or not this setattr_x session wants the file system to set the variable 'mode'.


wantsUid

public boolean wantsUid()
Whether or not this setattr_x session wants the file system to set the variable 'uid'.


wantsGid

public boolean wantsGid()
Whether or not this setattr_x session wants the file system to set the variable 'gid'.


wantsSize

public boolean wantsSize()
Whether or not this setattr_x session wants the file system to set the variable 'size'.


wantsModtime

public boolean wantsModtime()
Whether or not this setattr_x session wants the file system to set the variable 'modtime'.


wantsCrtime

public boolean wantsCrtime()
Whether or not this setattr_x session wants the file system to set the variable 'crtime'.


wantsChgtime

public boolean wantsChgtime()
Whether or not this setattr_x session wants the file system to set the variable 'chgtime'.


wantsBkuptime

public boolean wantsBkuptime()
Whether or not this setattr_x session wants the file system to set the variable 'bkuptime'.


wantsFlags

public boolean wantsFlags()
Whether or not this setattr_x session wants the file system to set the variable 'flags'.