From owner-freebsd-bugs Mon Oct 9 8:30:15 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DA79437B502 for ; Mon, 9 Oct 2000 08:30:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA09075; Mon, 9 Oct 2000 08:30:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 9 Oct 2000 08:30:05 -0700 (PDT) Message-Id: <200010091530.IAA09075@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jim Pirzyk Subject: Fwd: Re: bin/21789: no mkfile command Reply-To: Jim Pirzyk Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/21789; it has been noted by GNATS. From: Jim Pirzyk To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: Fwd: Re: bin/21789: no mkfile command Date: Mon, 9 Oct 2000 08:19:42 -0700 --Boundary-=_qmZrHLajoetbkwlTZTViemHPfybp Content-Type: text/plain Content-Transfer-Encoding: 8bit The command not only creates a file, but also creates it with a certain size > 0. I have included the SunOS man page to see how it is used. - JimP ---------- Forwarded Message ---------- Subject: Re: bin/21789: no mkfile command Date: Sat, 7 Oct 2000 07:38:55 -0700 (PDT) From: johan@FreeBSD.org Synopsis: no mkfile command State-Changed-From-To: open->feedback State-Changed-By: johan State-Changed-When: Sat Oct 7 07:33:29 PDT 2000 State-Changed-Why: Hi Jim What should the mkfile command do? If the command should just create an empty file try 'touch'. If not please describe the purpose of the command. Or even better send an implementation of the command and a man page as a follow-up to this PR, by sending mail to FreeBSD-gnats-submit@freebsd.org with the subject of this mail as subject. Thanks Johan K http://www.freebsd.org/cgi/query-pr.cgi?pr=21789 ------------------------------------------------------- -- --- @(#) $Id: dot.signature,v 1.9 2000/07/10 16:43:05 pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------------------------------- _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) --Boundary-=_qmZrHLajoetbkwlTZTViemHPfybp Content-Type: text/english; name="tmp.dat" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="tmp.dat" Maintenance Commands mkfile(1M) NAME mkfile - create a file SYNOPSIS mkfile [ -nv ] _=08s_=08i_=08z_=08e [ k | b | m ] _=08f_=08i_=08= l_=08e_=08n_=08a_=08m_=08e ... DESCRIPTION mkfile creates one or more files that are suitable for use as NFS-mounted swap areas, or as local swap areas. When a root user executes mkfile(), the sticky bit is set and the file is padded with zeros by default. When non-root users execute mkfile(), they must manually set the sticky bit using chmod(1). The default size is in bytes, but it can be flagged as kilobytes, blocks, or megabytes, with the k, b, or m suffixes, respectively. OPTIONS -n Create an empty _=08f_=08i_=08l_=08e_=08n_=08a_=08m_=08e. The = size is noted, but disk blocks are not allocated until data is written to them. Files created with this option cannot be swapped over local UFS mounts. -v Verbose. Report the names and sizes of created files. USAGE See largefile(5) for the description of the behavior of mkfile when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes). ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |______________________________=08|______________________________=08| | Availability | SUNWcsu | |______________________________=08|______________________________=08| SEE ALSO chmod(1), swap(1M), attributes(5), largefile(5) SunOS 5.8 Last change: 16 Sep 1996 1 --Boundary-=_qmZrHLajoetbkwlTZTViemHPfybp-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message