* 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,28 +176,35 @@ 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 }
{ unit is f_bsize }
blocks, { total data block in file system } blocks, { total data block in file system }
bfree : cuint64; { blocks free in fs } bfree : cuint64; { free blocks in fs }
bavail : cint64; { block available for non-superuser } bavail : cint64; { free blocks avail to non-superuser }
files, { total file nodes in file system } files, { total file nodes in file system }
ffree : cuint64; { free files nodes in fs } ffree : cuint64; { free files nodes in fs }
favail : cint64; { free file nodes avail to non-root } favail : cint64; { free file nodes avail to non-root }
fsyncwrites, { count of sync writes since mount } fsyncwrites, { count of sync writes since mount }
fasyncwrites, { count of async writes since mount }
fsyncreads, { count of sync reads since mount } fsyncreads, { count of sync reads since mount }
fasyncwrites, { count of async writes since mount }
fasyncreads : cuint64; { count of async reads since mount } fasyncreads : cuint64; { count of async reads since mount }
fsid : fsid_t; { file system id } fsid : fsid_t; { file system id }
namemax : cint; { maximum fileystem length } namemax : cuint32; { maximum filename length }
fowner : tuid; { user that mounted the fileystem } owner : tuid; { user that mounted the fileystem }
ctime : cint; { last mount [-u] time } ctime : cuint64; { last mount [-u] time }
fspare3 : array[0..2] of cint; { spare for later }
fstypename : array[0..MFSNamLen-1] of char; { fs type name } fstypename : array[0..MFSNAMELEN-1] of char; { fs type name }
mountpoint : array[0..MNAMLEN-1] of char; { directory on which mounted} mntonname : array[0..MNAMELEN-1] of char; { directory on which mounted }
mnfromname : array[0..MNAMLEN-1] of char; { mounted file system } 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 } mount_info: mountinfo; { per-filesystem mount options }
end; end;
PStatFS=^TStatFS; PStatFS=^TStatFS;