/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998,2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "dump.h"
#include <ftw.h>
#include <ulimit.h>
static int partial;
#ifdef __STDC__
static int lf_mark_root(dev_t, char *);
static int lf_ftw_mark(const char *, const struct stat64 *, int);
#else
static dev_t devfromopts();
static int lf_mark_root();
static int lf_ftw_mark();
static void markino();
#endif
void
#ifdef __STDC__
partial_check(void)
#else
#endif
{
return;
setmnttab();
continue;
if (disk_dynamic) {
/* LINTED: disk is not NULL */
}
partial = 1;
incno = '0';
uflag = 0;
return;
}
}
dumpabort();
/*NOTREACHED*/
}
/*
* The device id for the mount should be available in
* the mount option string as "dev=%04x". If it's there
* extract the device id and avoid having to stat.
*/
static dev_t
{
char *str;
return (NODEV);
}
int
int argc;
char **argv;
{
char *path;
if (partial == 0)
return (1);
while (--argc >= 0) {
dumpabort();
/*NOTREACHED*/
}
"Cannot find filesystem mount point for `%s'\n"),
path);
dumpabort();
/*NOTREACHED*/
}
/* LINTED this ulimit will always be < INT_MAX */
< 0) {
dumpabort();
/*NOTREACHED*/
}
}
return (0);
}
/* mark directories between target and root */
static int
char *path;
{
char *slash;
return (1);
return (1);
/* if target is a regular file, find directory */
/* "/file" -> "/" */
slash[1] = 0;
else
slash[0] = 0;
else
/* "file" -> "." */
/* keep marking parent until we hit mount point */
do {
return (1);
return (1);
return (0);
}
/*ARGSUSED*/
static int
#ifdef __STDC__
const char *name;
#else
char *name;
#endif
int flag;
{
/* LINTED ufs only uses the lower 32 bits */
}
return (0);
}
static void
markino(i)
ino_t i;
{
}