xref: /onnv-gate/usr/src/cmd/hal/utils/fsutils.h (revision 7563:84ec90ffc3f7)
1*7563SPrasad.Singamsetty@Sun.COM /*
22912Sartem  *
32912Sartem  * fsutils.h : definitions for filesystem utilities
42912Sartem  *
56395Sartem  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
62912Sartem  * Use is subject to license terms.
72912Sartem  *
82912Sartem  * Licensed under the Academic Free License version 2.1
92912Sartem  *
10*7563SPrasad.Singamsetty@Sun.COM  */
112912Sartem 
122912Sartem #ifndef FSUTILS_H
136395Sartem #define	FSUTILS_H
142912Sartem 
152912Sartem #include <sys/types.h>
162912Sartem #include <sys/vtoc.h>
172912Sartem 
182912Sartem boolean_t dos_to_dev(char *path, char **devpath, int *num);
196395Sartem char *get_slice_name(char *devlink);
202912Sartem boolean_t is_dos_drive(uchar_t id);
212912Sartem boolean_t is_dos_extended(uchar_t id);
226395Sartem boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset);
236395Sartem int get_num_dos_drives(int fd, uint_t);
24*7563SPrasad.Singamsetty@Sun.COM boolean_t vtoc_one_slice_entire_disk(struct extvtoc *vtoc);
252912Sartem 
262912Sartem #endif /* FSUTILS_H */
27