blockd: don't flush devices list on "hotplug" call
[project/fstools.git] / probe.h
1 /*
2 * Copyright (C) 2016 Jo-Philipp Wich <jo@mein.io>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License version 2.1
6 * as published by the Free Software Foundation
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14 #ifndef _PROBE_H
15 #define _PROBE_H
16
17 #include <libubox/list.h>
18
19 struct probe_info {
20 struct list_head list;
21
22 char *type;
23 char *dev;
24 char *uuid;
25 char *label;
26 char *version;
27 };
28
29 struct probe_info * probe_path(const char *path);
30 struct probe_info * probe_path_libblkid(const char *path);
31
32 int make_devs(void);
33
34 #endif /* _PROBE_H */