fsutils.h (92f38132) fsutils.h (422ee277)
1/***************************************************************************
2 *
3 * fsutils.h : definitions for filesystem utilities
4 *
1/***************************************************************************
2 *
3 * fsutils.h : definitions for filesystem utilities
4 *
5 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
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#pragma ident "%Z%%M% %I% %E% SMI"
13
14#ifndef FSUTILS_H
6 * Use is subject to license terms.
7 *
8 * Licensed under the Academic Free License version 2.1
9 *
10 **************************************************************************/
11
12#pragma ident "%Z%%M% %I% %E% SMI"
13
14#ifndef FSUTILS_H
15#define FSUTILS_H
15#define FSUTILS_H
16
17#include <sys/types.h>
18#include <sys/vtoc.h>
19
20boolean_t dos_to_dev(char *path, char **devpath, int *num);
16
17#include <sys/types.h>
18#include <sys/vtoc.h>
19
20boolean_t dos_to_dev(char *path, char **devpath, int *num);
21char *get_slice_name (char *devlink);
21char *get_slice_name(char *devlink);
22boolean_t is_dos_drive(uchar_t id);
23boolean_t is_dos_extended(uchar_t id);
22boolean_t is_dos_drive(uchar_t id);
23boolean_t is_dos_extended(uchar_t id);
24boolean_t find_dos_drive(int fd, int num, int *relsect, int *numsect, int *systid);
25int get_num_dos_drives(int fd);
24boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset);
25int get_num_dos_drives(int fd, uint_t);
26boolean_t vtoc_one_slice_entire_disk(struct vtoc *vtoc);
27
28#endif /* FSUTILS_H */
26boolean_t vtoc_one_slice_entire_disk(struct vtoc *vtoc);
27
28#endif /* FSUTILS_H */