1*342440ecSPrasad Singamsetty /* 218c2aff7Sartem * 318c2aff7Sartem * fsutils.h : definitions for filesystem utilities 418c2aff7Sartem * 5422ee277Sartem * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 618c2aff7Sartem * Use is subject to license terms. 718c2aff7Sartem * 818c2aff7Sartem * Licensed under the Academic Free License version 2.1 918c2aff7Sartem * 10*342440ecSPrasad Singamsetty */ 1118c2aff7Sartem 1218c2aff7Sartem #ifndef FSUTILS_H 1318c2aff7Sartem #define FSUTILS_H 1418c2aff7Sartem 1518c2aff7Sartem #include <sys/types.h> 1618c2aff7Sartem #include <sys/vtoc.h> 1718c2aff7Sartem 1818c2aff7Sartem boolean_t dos_to_dev(char *path, char **devpath, int *num); 1918c2aff7Sartem char *get_slice_name(char *devlink); 2018c2aff7Sartem boolean_t is_dos_drive(uchar_t id); 2118c2aff7Sartem boolean_t is_dos_extended(uchar_t id); 22422ee277Sartem boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset); 23422ee277Sartem int get_num_dos_drives(int fd, uint_t); 24*342440ecSPrasad Singamsetty boolean_t vtoc_one_slice_entire_disk(struct extvtoc *vtoc); 2518c2aff7Sartem 2618c2aff7Sartem #endif /* FSUTILS_H */ 27