4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the GNU Lesser General Public License
8 * (LGPL) version 2.1 or (at your discretion) any later version.
9 * (LGPL) version 2.1 accompanies this distribution, and is available at
10 * http://www.gnu.org/licenses/lgpl-2.1.html
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
20 * Copyright (C) 2013, Trustees of Indiana University
21 * Author: Joshua Walgenbach <jjw@iu.edu>
27 #include <liblustre.h>
28 #include <lustre/lustreapi.h>
29 #include "lustreapi_internal.h"
31 int llapi_nodemap_exists(const char *nodemap)
33 char mapname[PATH_MAX + 1];
35 snprintf(mapname, sizeof(mapname), "nodemap/%s", nodemap);
37 return get_param(mapname, NULL, 0);