mdmfs.c (225534) | mdmfs.c (229778) |
---|---|
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 225534 2011-09-13 20:16:11Z kib $"); | 34__FBSDID("$FreeBSD: head/sbin/mdmfs/mdmfs.c 229778 2012-01-07 16:09:33Z uqs $"); |
35 36#include <sys/param.h> 37#include <sys/mdioctl.h> 38#include <sys/mount.h> 39#include <sys/stat.h> 40#include <sys/wait.h> 41 42#include <assert.h> --- 584 unchanged lines hidden (view full) --- 627 * We can't, but should, use debugprintf here. First, 628 * it appends a trailing newline to the output, and 629 * second it prepends "DEBUG: " to the output. The 630 * former is a problem for this would-be first call, 631 * and the latter for the would-be call inside the 632 * loop. 633 */ 634 (void)fprintf(stderr, "DEBUG: running:"); | 35 36#include <sys/param.h> 37#include <sys/mdioctl.h> 38#include <sys/mount.h> 39#include <sys/stat.h> 40#include <sys/wait.h> 41 42#include <assert.h> --- 584 unchanged lines hidden (view full) --- 627 * We can't, but should, use debugprintf here. First, 628 * it appends a trailing newline to the output, and 629 * second it prepends "DEBUG: " to the output. The 630 * former is a problem for this would-be first call, 631 * and the latter for the would-be call inside the 632 * loop. 633 */ 634 (void)fprintf(stderr, "DEBUG: running:"); |
635 /* Should be equivilent to 'cmd' (before strsep, of course). */ | 635 /* Should be equivalent to 'cmd' (before strsep, of course). */ |
636 for (i = 0; argv[i] != NULL; i++) 637 (void)fprintf(stderr, " %s", argv[i]); 638 (void)fprintf(stderr, "\n"); 639 } 640 641 /* Create a pipe if necessary and fork the helper program. */ 642 if (ofd != NULL) { 643 if (pipe(&pfd[0]) == -1) --- 53 unchanged lines hidden --- | 636 for (i = 0; argv[i] != NULL; i++) 637 (void)fprintf(stderr, " %s", argv[i]); 638 (void)fprintf(stderr, "\n"); 639 } 640 641 /* Create a pipe if necessary and fork the helper program. */ 642 if (ofd != NULL) { 643 if (pipe(&pfd[0]) == -1) --- 53 unchanged lines hidden --- |