12912Sartem /*************************************************************************** 22912Sartem * 32912Sartem * fsutils.h : definitions for filesystem utilities 42912Sartem * 5*6395Sartem * 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 * 102912Sartem **************************************************************************/ 112912Sartem 122916Sartem #pragma ident "%Z%%M% %I% %E% SMI" 132912Sartem 142912Sartem #ifndef FSUTILS_H 15*6395Sartem #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); 21*6395Sartem char *get_slice_name(char *devlink); 222912Sartem boolean_t is_dos_drive(uchar_t id); 232912Sartem boolean_t is_dos_extended(uchar_t id); 24*6395Sartem boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset); 25*6395Sartem int get_num_dos_drives(int fd, uint_t); 262912Sartem boolean_t vtoc_one_slice_entire_disk(struct vtoc *vtoc); 272912Sartem 282912Sartem #endif /* FSUTILS_H */ 29