From owner-freebsd-ports Tue May 29 18:54:22 2001 Delivered-To: freebsd-ports@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id F1B2537B422 for ; Tue, 29 May 2001 18:54:16 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id 9BE683E0B for ; Tue, 29 May 2001 18:54:16 -0700 (PDT) To: ports@freebsd.org Subject: Review of mdmfs port Date: Tue, 29 May 2001 18:54:16 -0700 From: Dima Dorfman Message-Id: <20010530015416.9BE683E0B@bazooka.unixfreak.org> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi folks, Please review the attached (short) port of mdmfs, a program with a mount_mfs(8)-like interface to md(4). It creates, labels, newfs's, and mounts a memory disk using md(4). Its purpose is primarily backwards-compatiblity with mount_mfs; it offers no new features. It passes portlint with no warnings or errors. Thanks in advance, Dima Dorfman dima@unixfreak.org # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # mdmfs # mdmfs/distinfo # mdmfs/pkg-descr # mdmfs/pkg-plist # mdmfs/pkg-comment # mdmfs/Makefile # echo c - mdmfs mkdir -p mdmfs > /dev/null 2>&1 echo x - mdmfs/distinfo sed 's/^X//' >mdmfs/distinfo << 'END-of-mdmfs/distinfo' XMD5 (mdmfs-20010529.tar.gz) = cbc3ba5ffc7ad6583f9963226a7ea628 END-of-mdmfs/distinfo echo x - mdmfs/pkg-descr sed 's/^X//' >mdmfs/pkg-descr << 'END-of-mdmfs/pkg-descr' XThe memory filesystem (MFS) no longer exists in FreeBSD-CURRENT. It Xwas deprecated in favor of the memory disk driver (md(4)), which can Xnow support swap-backed, malloc-backed, and vnode-backed disks. The Xonly downside is that the syntax for mounting an equivalent to an MFS Xusing md(4) is incompatible with the old syntax. The new syntax is Xmuch more powerful, but occasionally backwards compatibility is Xdesired. This program attempts to provide a mount_mfs(8) interface to Xmd(4) and friends. X XThe following excerpt from the manual page, mdmfs(8), sums it up: X X The mdmfs program is designed to be a work-alike and look-alike of the X deprecated mount_mfs(8). The end result is essentially the same, but is X accomplished in a completely different way. mdmfs configures an md(4) X disk using mdconfig(8), labels it using disklabel(8), puts a UFS filesys- X tem on it using newfs(8), and mounts it using mount(8). All the command X line options are passed to the appropriate program at the appropriate X stage in order to achieve the desired effect. X XThis program provides nothing in the way of new features; it is simply Xa mount_mfs(8) interface to md(4). If you don't need this backwards Xcompatibility, you probably don't want to install this. END-of-mdmfs/pkg-descr echo x - mdmfs/pkg-plist sed 's/^X//' >mdmfs/pkg-plist << 'END-of-mdmfs/pkg-plist' Xsbin/mdmfs END-of-mdmfs/pkg-plist echo x - mdmfs/pkg-comment sed 's/^X//' >mdmfs/pkg-comment << 'END-of-mdmfs/pkg-comment' XA mount_mfs-compatible wrapper around md(4) and friends END-of-mdmfs/pkg-comment echo x - mdmfs/Makefile sed 's/^X//' >mdmfs/Makefile << 'END-of-mdmfs/Makefile' X# New ports collection makefile for: mdmfs X# Date created: 29 May 2001 X# Whom: Dima Dorfman X# X# $FreeBSD$ X# X XPORTNAME= mdmfs XPORTVERSION= 20010529 XCATEGORIES= sysutils XMASTER_SITES= ${MASTER_SITE_LOCAL} \ X http://www.unixfreak.org/~dima/distfiles/ XMASTER_SITE_SUBDIR= dd X XMAINTAINER= dima@unixfreak.org X XMAN8= mdmfs.8 XMANCOMPRESSED= no X X.include X X# This isn't perfect, but probably good enough. This needs getprogname() and X# a recent md(4). X.if ${OSVERSION} < 500018 XBROKEN= "Need a recent -current" X.endif X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/mdmfs ${PREFIX}/sbin/mdmfs X @${INSTALL_MAN} ${WRKSRC}/mdmfs.8 ${PREFIX}/man/man8 X X.include END-of-mdmfs/Makefile exit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message