view usr/src/cmd/hal/utils/fsutils.h @ 4:1a15d5aaf794

synchronized with onnv_86 (6202) in onnv-gate
author Koji Uno <koji.uno@sun.com>
date Mon, 31 Aug 2009 14:38:03 +0900
parents c9caec207d52
children
line wrap: on
line source

/***************************************************************************
 *
 * fsutils.h : definitions for filesystem utilities
 *
 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 *
 * Licensed under the Academic Free License version 2.1
 *
 **************************************************************************/

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#ifndef FSUTILS_H
#define FSUTILS_H

#include <sys/types.h>
#include <sys/vtoc.h>

boolean_t dos_to_dev(char *path, char **devpath, int *num);
char *get_slice_name (char *devlink);
boolean_t is_dos_drive(uchar_t id);
boolean_t is_dos_extended(uchar_t id);
boolean_t find_dos_drive(int fd, int num, int *relsect, int *numsect, int *systid);
int get_num_dos_drives(int fd);
boolean_t vtoc_one_slice_entire_disk(struct vtoc *vtoc);

#endif /* FSUTILS_H */