Deleted Added
full compact
mdmfs.c (118500) mdmfs.c (124830)
1/*
2 * Copyright (c) 2001 Dima Dorfman.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26
27/*
28 * mdmfs (md/MFS) is a wrapper around mdconfig(8),
29 * newfs(8), and mount(8) that mimics the command line option set of
30 * the deprecated mount_mfs(8).
31 */
32
33#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001 Dima Dorfman.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26
27/*
28 * mdmfs (md/MFS) is a wrapper around mdconfig(8),
29 * newfs(8), and mount(8) that mimics the command line option set of
30 * the deprecated mount_mfs(8).
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sbin/mdmfs/mdmfs.c 118500 2003-08-05 15:04:39Z yar $");
34__FBSDID("$FreeBSD: head/sbin/mdmfs/mdmfs.c 124830 2004-01-22 07:23:36Z grehan $");
35
36#include <sys/param.h>
37#include <sys/mdioctl.h>
38#include <sys/stat.h>
39#include <sys/wait.h>
40
41#include <assert.h>
42#include <err.h>

--- 43 unchanged lines hidden (view full) ---

86{
87 struct mtpt_info mi; /* Mountpoint info. */
88 char *mdconfig_arg, *newfs_arg, /* Args to helper programs. */
89 *mount_arg;
90 enum md_types mdtype; /* The type of our memory disk. */
91 bool have_mdtype;
92 bool detach, softdep, autounit;
93 char *mtpoint, *unitstr;
35
36#include <sys/param.h>
37#include <sys/mdioctl.h>
38#include <sys/stat.h>
39#include <sys/wait.h>
40
41#include <assert.h>
42#include <err.h>

--- 43 unchanged lines hidden (view full) ---

86{
87 struct mtpt_info mi; /* Mountpoint info. */
88 char *mdconfig_arg, *newfs_arg, /* Args to helper programs. */
89 *mount_arg;
90 enum md_types mdtype; /* The type of our memory disk. */
91 bool have_mdtype;
92 bool detach, softdep, autounit;
93 char *mtpoint, *unitstr;
94 char ch, *p;
94 char *p;
95 int ch;
95 void *set;
96
97 /* Misc. initialization. */
98 (void)memset(&mi, '\0', sizeof(mi));
99 detach = true;
100 softdep = true;
101 autounit = false;
102 have_mdtype = false;

--- 573 unchanged lines hidden ---
96 void *set;
97
98 /* Misc. initialization. */
99 (void)memset(&mi, '\0', sizeof(mi));
100 detach = true;
101 softdep = true;
102 autounit = false;
103 have_mdtype = false;

--- 573 unchanged lines hidden ---