From 173fc51539683030178a8f833281c787b1933ffd Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 14 Jun 2005 06:37:57 +0000 Subject: Add device files created with --auto to list of known device files. Signed-off-by: Neil Brown --- mdadm.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mdadm.h') diff --git a/mdadm.h b/mdadm.h index 41e6702..bb12477 100644 --- a/mdadm.h +++ b/mdadm.h @@ -200,6 +200,19 @@ struct supertype { extern struct supertype *super_by_version(int vers, int minor); extern struct supertype *guess_super(int fd); +#ifdef UCLIBC + struct FTW {}; +# define FTW_PHYS 1 +#else +# define __USE_XOPEN_EXTENDED +# include +# ifdef __dietlibc__ +# define FTW_PHYS 1 +# endif +#endif + +extern int add_dev(const char *name, const struct stat *stb, int flag, struct FTW *s); + extern int Manage_ro(char *devname, int fd, int readonly); extern int Manage_runstop(char *devname, int fd, int runstop, int quiet); -- cgit