xref: /illumos-gate/usr/src/cmd/hal/utils/fsutils.h (revision 342440ec)
1 /*
2  *
3  * fsutils.h : definitions for filesystem utilities
4  *
5  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
6  * Use is subject to license terms.
7  *
8  * Licensed under the Academic Free License version 2.1
9  *
10  */
11 
12 #ifndef FSUTILS_H
13 #define	FSUTILS_H
14 
15 #include <sys/types.h>
16 #include <sys/vtoc.h>
17 
18 boolean_t dos_to_dev(char *path, char **devpath, int *num);
19 char *get_slice_name(char *devlink);
20 boolean_t is_dos_drive(uchar_t id);
21 boolean_t is_dos_extended(uchar_t id);
22 boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset);
23 int get_num_dos_drives(int fd, uint_t);
24 boolean_t vtoc_one_slice_entire_disk(struct extvtoc *vtoc);
25 
26 #endif /* FSUTILS_H */
27