File tree Expand file tree Collapse file tree 6 files changed +9
-10
lines changed Expand file tree Collapse file tree 6 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -1083,7 +1083,7 @@ struct svc_version nfs4_callback_version1 = {
1083
1083
.vs_proc = nfs4_callback_procedures1 ,
1084
1084
.vs_xdrsize = NFS4_CALLBACK_XDRSIZE ,
1085
1085
.vs_dispatch = NULL ,
1086
- .vs_hidden = 1 ,
1086
+ .vs_hidden = true ,
1087
1087
};
1088
1088
1089
1089
struct svc_version nfs4_callback_version4 = {
@@ -1092,5 +1092,5 @@ struct svc_version nfs4_callback_version4 = {
1092
1092
.vs_proc = nfs4_callback_procedures1 ,
1093
1093
.vs_xdrsize = NFS4_CALLBACK_XDRSIZE ,
1094
1094
.vs_dispatch = NULL ,
1095
- .vs_hidden = 1 ,
1095
+ .vs_hidden = true ,
1096
1096
};
Original file line number Diff line number Diff line change @@ -376,5 +376,4 @@ struct svc_version nfsd_acl_version2 = {
376
376
.vs_proc = nfsd_acl_procedures2 ,
377
377
.vs_dispatch = nfsd_dispatch ,
378
378
.vs_xdrsize = NFS3_SVC_XDRSIZE ,
379
- .vs_hidden = 0 ,
380
379
};
Original file line number Diff line number Diff line change @@ -266,6 +266,5 @@ struct svc_version nfsd_acl_version3 = {
266
266
.vs_proc = nfsd_acl_procedures3 ,
267
267
.vs_dispatch = nfsd_dispatch ,
268
268
.vs_xdrsize = NFS3_SVC_XDRSIZE ,
269
- .vs_hidden = 0 ,
270
269
};
271
270
Original file line number Diff line number Diff line change @@ -2542,7 +2542,7 @@ struct svc_version nfsd_version4 = {
2542
2542
.vs_proc = nfsd_procedures4 ,
2543
2543
.vs_dispatch = nfsd_dispatch ,
2544
2544
.vs_xdrsize = NFS4_SVC_XDRSIZE ,
2545
- .vs_rpcb_optnl = 1 ,
2545
+ .vs_rpcb_optnl = true ,
2546
2546
};
2547
2547
2548
2548
/*
Original file line number Diff line number Diff line change @@ -400,10 +400,11 @@ struct svc_version {
400
400
struct svc_procedure * vs_proc ; /* per-procedure info */
401
401
u32 vs_xdrsize ; /* xdrsize needed for this version */
402
402
403
- unsigned int vs_hidden : 1 , /* Don't register with portmapper.
404
- * Only used for nfsacl so far. */
405
- vs_rpcb_optnl :1 ;/* Don't care the result of register.
406
- * Only used for nfsv4. */
403
+ /* Don't register with rpcbind */
404
+ bool vs_hidden ;
405
+
406
+ /* Don't care if the rpcbind registration fails */
407
+ bool vs_rpcb_optnl ;
407
408
408
409
/* Override dispatch function (e.g. when caching replies).
409
410
* A return value of 0 means drop the request.
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ static int svc_uses_rpcbind(struct svc_serv *serv)
385
385
for (i = 0 ; i < progp -> pg_nvers ; i ++ ) {
386
386
if (progp -> pg_vers [i ] == NULL )
387
387
continue ;
388
- if (progp -> pg_vers [i ]-> vs_hidden == 0 )
388
+ if (! progp -> pg_vers [i ]-> vs_hidden )
389
389
return 1 ;
390
390
}
391
391
}
You can’t perform that action at this time.
0 commit comments