mount_clnt.c (6d59b8d599d594bc314026c6856424fe49df5513) mount_clnt.c (a613fa168afc19179a7547fbba45644c5b6912bf)
1/*
2 * In-kernel MOUNT protocol client
3 *
4 * Copyright (C) 1997, Olaf Kirch <okir@monad.swb.de>
5 */
6
7#include <linux/types.h>
8#include <linux/socket.h>

--- 53 unchanged lines hidden (view full) ---

62 MOUNTPROC3_NULL = 0,
63 MOUNTPROC3_MNT = 1,
64 MOUNTPROC3_DUMP = 2,
65 MOUNTPROC3_UMNT = 3,
66 MOUNTPROC3_UMNTALL = 4,
67 MOUNTPROC3_EXPORT = 5,
68};
69
1/*
2 * In-kernel MOUNT protocol client
3 *
4 * Copyright (C) 1997, Olaf Kirch <okir@monad.swb.de>
5 */
6
7#include <linux/types.h>
8#include <linux/socket.h>

--- 53 unchanged lines hidden (view full) ---

62 MOUNTPROC3_NULL = 0,
63 MOUNTPROC3_MNT = 1,
64 MOUNTPROC3_DUMP = 2,
65 MOUNTPROC3_UMNT = 3,
66 MOUNTPROC3_UMNTALL = 4,
67 MOUNTPROC3_EXPORT = 5,
68};
69
70static struct rpc_program mnt_program;
70static const struct rpc_program mnt_program;
71
72/*
73 * Defined by OpenGroup XNFS Version 3W, chapter 8
74 */
75enum mountstat {
76 MNT_OK = 0,
77 MNT_EPERM = 1,
78 MNT_ENOENT = 2,

--- 404 unchanged lines hidden (view full) ---

483 .p_encode = (kxdreproc_t)mnt_xdr_enc_dirpath,
484 .p_arglen = MNT_enc_dirpath_sz,
485 .p_statidx = MOUNTPROC3_UMNT,
486 .p_name = "UMOUNT",
487 },
488};
489
490
71
72/*
73 * Defined by OpenGroup XNFS Version 3W, chapter 8
74 */
75enum mountstat {
76 MNT_OK = 0,
77 MNT_EPERM = 1,
78 MNT_ENOENT = 2,

--- 404 unchanged lines hidden (view full) ---

483 .p_encode = (kxdreproc_t)mnt_xdr_enc_dirpath,
484 .p_arglen = MNT_enc_dirpath_sz,
485 .p_statidx = MOUNTPROC3_UMNT,
486 .p_name = "UMOUNT",
487 },
488};
489
490
491static struct rpc_version mnt_version1 = {
491static const struct rpc_version mnt_version1 = {
492 .number = 1,
493 .nrprocs = ARRAY_SIZE(mnt_procedures),
494 .procs = mnt_procedures,
495};
496
492 .number = 1,
493 .nrprocs = ARRAY_SIZE(mnt_procedures),
494 .procs = mnt_procedures,
495};
496
497static struct rpc_version mnt_version3 = {
497static const struct rpc_version mnt_version3 = {
498 .number = 3,
499 .nrprocs = ARRAY_SIZE(mnt3_procedures),
500 .procs = mnt3_procedures,
501};
502
498 .number = 3,
499 .nrprocs = ARRAY_SIZE(mnt3_procedures),
500 .procs = mnt3_procedures,
501};
502
503static struct rpc_version *mnt_version[] = {
503static const struct rpc_version *mnt_version[] = {
504 NULL,
505 &mnt_version1,
506 NULL,
507 &mnt_version3,
508};
509
510static struct rpc_stat mnt_stats;
511
504 NULL,
505 &mnt_version1,
506 NULL,
507 &mnt_version3,
508};
509
510static struct rpc_stat mnt_stats;
511
512static struct rpc_program mnt_program = {
512static const struct rpc_program mnt_program = {
513 .name = "mount",
514 .number = NFS_MNT_PROGRAM,
515 .nrvers = ARRAY_SIZE(mnt_version),
516 .version = mnt_version,
517 .stats = &mnt_stats,
518};
513 .name = "mount",
514 .number = NFS_MNT_PROGRAM,
515 .nrvers = ARRAY_SIZE(mnt_version),
516 .version = mnt_version,
517 .stats = &mnt_stats,
518};