1 /* ----------------------------------------------------------------------- * 2 * 3 * Copyright 2012 Intel Corporation; All Rights Reserved 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 8 * Boston MA 02110-1301, USA; either version 2 of the License, or 9 * (at your option) any later version; incorporated herein by reference. 10 * 11 * ----------------------------------------------------------------------- */ 12 13 #ifndef SYSLINUX_MOUNTINFO_H 14 #define SYSLINUX_MOUNTINFO_H 15 16 #include <sys/types.h> 17 18 struct mountinfo { 19 struct mountinfo *next; 20 struct mountinfo *parent; 21 const char *root; 22 const char *path; 23 const char *fstype; 24 const char *devpath; 25 const char *mountopt; 26 int mountid; 27 int parentid; 28 int pathlen; 29 int hidden; 30 dev_t dev; 31 }; 32 33 const struct mountinfo *find_mount(const char *path, char **subpath); 34 35 #endif /* SYSLINUX_MOUNTINFO_H */ 36