xref: /onnv-gate/usr/src/cmd/hal/utils/fsutils.h (revision 2916:ba92c662e4ef)
12912Sartem /***************************************************************************
22912Sartem  *
32912Sartem  * fsutils.h : definitions for filesystem utilities
42912Sartem  *
52912Sartem  * Copyright 2006 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  *
102912Sartem  **************************************************************************/
112912Sartem 
12*2916Sartem #pragma ident	"%Z%%M%	%I%	%E% SMI"
132912Sartem 
142912Sartem #ifndef FSUTILS_H
152912Sartem #define FSUTILS_H
162912Sartem 
172912Sartem #include <sys/types.h>
182912Sartem #include <sys/vtoc.h>
192912Sartem 
202912Sartem boolean_t dos_to_dev(char *path, char **devpath, int *num);
212912Sartem char *get_slice_name (char *devlink);
222912Sartem boolean_t is_dos_drive(uchar_t id);
232912Sartem boolean_t is_dos_extended(uchar_t id);
242912Sartem boolean_t find_dos_drive(int fd, int num, int *relsect, int *numsect, int *systid);
252912Sartem int get_num_dos_drives(int fd);
262912Sartem boolean_t vtoc_one_slice_entire_disk(struct vtoc *vtoc);
272912Sartem 
282912Sartem #endif /* FSUTILS_H */
29