* updated the openbsd tstatfs structure to be compatible with the currently

supported openbsd versions (6.3 and 6.4)

git-svn-id: trunk@41878 -
This commit is contained in:
nickysn 2019-04-15 17:11:13 +00:00
parent 924b4c6f10
commit e2a139ee19

View File

@ -149,11 +149,11 @@ type
); );
Const Const
MNAMLEN = 90; // length of buffer for returned name MFSNAMELEN = 16; // length of fs type name, including nul
MFSNamLen = 16; // length of fs type name, including nul MNAMELEN = 90; // length of buffer for returned name
type type
fsid_t = array[0..1] of cint; fsid_t = array[0..1] of cint32;
ufs_args_rec = record end; ufs_args_rec = record end;
mfs_args_rec = record end; mfs_args_rec = record end;
@ -176,29 +176,36 @@ type
end; end;
// kernel statfs from mount.h // kernel statfs from mount.h
{ new statfs structure with mount options and statvfs fields }
TStatfs = record TStatfs = record
flags, { copy of mount flags } flags, { copy of mount flags }
bsize, { filesystem block size} bsize, { filesystem block size }
iosize : cint; { optimal transfr block size } iosize : cuint32; { optimal transfer block size }
blocks, { total data block in file system }
bfree : cuint64; { blocks free in fs } { unit is f_bsize }
bavail : cint64; { block available for non-superuser } blocks, { total data block in file system }
files, { total file nodes in file system } bfree : cuint64; { free blocks in fs }
ffree : cuint64; { free files nodes in fs } bavail : cint64; { free blocks avail to non-superuser }
favail : cint64; { free file nodes avail to non-root }
fsyncwrites, { count of sync writes since mount } files, { total file nodes in file system }
fasyncwrites, { count of async writes since mount } ffree : cuint64; { free files nodes in fs }
fsyncreads, { count of sync reads since mount } favail : cint64; { free file nodes avail to non-root }
fasyncreads : cuint64; { count of async reads since mount }
fsid : fsid_t; { file system id } fsyncwrites, { count of sync writes since mount }
namemax : cint; { maximum fileystem length } fsyncreads, { count of sync reads since mount }
fowner : tuid; { user that mounted the fileystem } fasyncwrites, { count of async writes since mount }
ctime : cint; { last mount [-u] time } fasyncreads : cuint64; { count of async reads since mount }
fspare3 : array[0..2] of cint; { spare for later }
fstypename : array[0..MFSNamLen-1] of char; { fs type name } fsid : fsid_t; { file system id }
mountpoint : array[0..MNAMLEN-1] of char; { directory on which mounted} namemax : cuint32; { maximum filename length }
mnfromname : array[0..MNAMLEN-1] of char; { mounted file system } owner : tuid; { user that mounted the fileystem }
mount_info : mountinfo; { per-filesystem mount options } ctime : cuint64; { last mount [-u] time }
fstypename : array[0..MFSNAMELEN-1] of char; { fs type name }
mntonname : array[0..MNAMELEN-1] of char; { directory on which mounted }
mntfromname: array[0..MNAMELEN-1] of char; { mounted file system }
mntfromspec: array[0..MNAMELEN-1] of char; { special for mount request }
mount_info: mountinfo; { per-filesystem mount options }
end; end;
PStatFS=^TStatFS; PStatFS=^TStatFS;