/* * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights * Reserved. This file contains Original Code and/or Modifications of * Original Code as defined in and that are subject to the Apple Public * Source License Version 1.0 (the 'License'). You may not use this file * except in compliance with the License. Please obtain a copy of the * License at http://www.apple.com/publicsource and read it before using * this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License." * * @APPLE_LICENSE_HEADER_END@ */ /* * Copyright (c) 1997 Apple Computer, Inc. All Rights Reserved * */ #include #include #include #include #include #include #include #include "mount_volfs.h" #define PROCESS_OPTIONS 0 #if PROCESS_OPTIONS #include "mntopts.h" struct mntopt mopts[] = { MOPT_STDOPTS, MOPT_UPDATE, { NULL } }; #endif #define DEFAULT_ROOTUID -2 #define DEFAULT_ANON_UID -2 #if DEBUG #define DEBUG_MSGS 1 #else #define DEBUG_MSGS 0 #endif void usage __P((void)); int main(argc, argv) int argc; char **argv; { struct volfs_args args; int ch, mntflags, opts; char *dir; int mountStatus, i; mntflags = opts = 0; mntflags |= MNT_RDONLY; /* *PWD* For now, just assume all disks are read-only... */ #if DEBUG_MSGS printf("mount_volfs: calling mount with %d auguments\n", argc); for (i=0;i