/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License version 2 for more details (a copy is included * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License * version 2 along with this program; If not, see * http://www.gnu.org/licenses/gpl-2.0.html * * GPL HEADER END */ /* * Copyright (C) 2013, Trustees of Indiana University * Author: Joshua Walgenbach */ #ifndef _NODEMAP_INTERNAL_H #define _NODEMAP_INTERNAL_H #include #define MODULE_STRING "nodemap" /* Default nobody uid and gid values */ #define NODEMAP_NOBODY_UID 99 #define NODEMAP_NOBODY_GID 99 struct lprocfs_static_vars; /* nodemap root proc directory under fs/lustre */ extern struct proc_dir_entry *proc_lustre_nodemap_root; /* flag if nodemap is active */ extern bool nodemap_idmap_active; int nodemap_procfs_init(void); int lprocfs_nodemap_register(const char *name, bool is_default_nodemap, struct lu_nodemap *nodemap); int nodemap_cleanup_nodemaps(void); #endif /* _NODEMAP_INTERNAL_H */