dos.c (14321) | dos.c (15242) |
---|---|
1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated to essentially a complete rewrite. 6 * | 1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated to essentially a complete rewrite. 6 * |
7 * $Id: dos.c,v 1.8 1995/12/07 10:33:45 peter Exp $ | 7 * $Id: dos.c,v 1.9 1996/03/02 07:31:52 jkh Exp $ |
8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * Copyright (c) 1995 12 * Gary J Palmer. All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without 15 * modification, are permitted provided that the following conditions 16 * are met: 17 * 1. Redistributions of source code must retain the above copyright 18 * notice, this list of conditions and the following disclaimer, 19 * verbatim and that no modifications are made prior to this 20 * point in the file. 21 * 2. Redistributions in binary form must reproduce the above copyright 22 * notice, this list of conditions and the following disclaimer in the 23 * documentation and/or other materials provided with the distribution. | 8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * Copyright (c) 1995 12 * Gary J Palmer. All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without 15 * modification, are permitted provided that the following conditions 16 * are met: 17 * 1. Redistributions of source code must retain the above copyright 18 * notice, this list of conditions and the following disclaimer, 19 * verbatim and that no modifications are made prior to this 20 * point in the file. 21 * 2. Redistributions in binary form must reproduce the above copyright 22 * notice, this list of conditions and the following disclaimer in the 23 * documentation and/or other materials provided with the distribution. |
24 * 3. All advertising materials mentioning features or use of this software 25 * must display the following acknowledgement: 26 * This product includes software developed by Jordan Hubbard 27 * for the FreeBSD Project. 28 * 4. The name of Jordan Hubbard or the FreeBSD project may not be used to 29 * endorse or promote products derived from this software without specific 30 * prior written permission. | |
31 * 32 * THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND 33 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 34 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 35 * ARE DISCLAIMED. IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE 36 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 38 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION) --- 22 unchanged lines hidden (view full) --- 61Boolean 62mediaInitDOS(Device *dev) 63{ 64 struct msdosfs_args args; 65 66 if (!RunningAsInit || DOSMounted) 67 return TRUE; 68 | 24 * 25 * THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND 26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 * ARE DISCLAIMED. IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION) --- 22 unchanged lines hidden (view full) --- 54Boolean 55mediaInitDOS(Device *dev) 56{ 57 struct msdosfs_args args; 58 59 if (!RunningAsInit || DOSMounted) 60 return TRUE; 61 |
69 if (Mkdir("/dos", NULL) != RET_SUCCESS) | 62 if (Mkdir("/dos", NULL) != DITEM_SUCCESS) |
70 return FALSE; 71 72 memset(&args, 0, sizeof(args)); 73 args.fspec = dev->devname; 74 args.uid = args.gid = 0; 75 args.mask = 0777; 76 77 if (mount(MOUNT_MSDOS, "/dos", MNT_RDONLY, (caddr_t)&args) == -1) { --- 44 unchanged lines hidden --- | 63 return FALSE; 64 65 memset(&args, 0, sizeof(args)); 66 args.fspec = dev->devname; 67 args.uid = args.gid = 0; 68 args.mask = 0777; 69 70 if (mount(MOUNT_MSDOS, "/dos", MNT_RDONLY, (caddr_t)&args) == -1) { --- 44 unchanged lines hidden --- |