FreeBSD Bugzilla – Attachment 200570 Details for
Bug 234413
zfs: quotactl() returns wrong error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
C code to test the error returned by quotactl()
qtest.c (text/plain), 386 bytes, created by
Emrion
on 2018-12-28 10:35:31 UTC
(
hide
)
Description:
C code to test the error returned by quotactl()
Filename:
MIME Type:
Creator:
Emrion
Created:
2018-12-28 10:35:31 UTC
Size:
386 bytes
patch
obsolete
>#include <stdio.h> >#include <sys/types.h> >#include <ufs/ufs/quota.h> >#include <errno.h> >#include <string.h> > >int main(int argc, char* argv[]) >{ > const int nobody = 65534; > struct dqblk dummy; > int r = quotactl(".", QCMD(Q_GETQUOTA,USRQUOTA), nobody, &dummy); > > printf("Ret value = %i\n", r); > printf("Err code = %i\n", errno); > printf("%s\n", strerror(errno)); > > return 0; >} > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 234413
: 200570 |
201007