From Jim.Pirzyk@disney.com  Fri Oct  6 13:25:11 2000
Return-Path: <Jim.Pirzyk@disney.com>
Received: from mail.disney.com (mail.disney.com [204.128.192.15])
	by hub.freebsd.org (Postfix) with ESMTP id 9BF4837B503
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Oct 2000 13:25:07 -0700 (PDT)
Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100])
	by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id e96KP6R28280
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 6 Oct 2000 13:25:07 -0700 (PDT)
Received: from louie.fa.disney.com by pain.corp.disney.com with ESMTP for FreeBSD-gnats-submit@freebsd.org; Fri, 6 Oct 2000 13:25:37 -0700
Received: from plio.fan.fa.disney.com (plio.fan.fa.disney.com [153.7.118.2])
	by louie.fa.disney.com (8.9.2/8.9.2) with ESMTP id NAA22672
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 6 Oct 2000 13:25:03 -0700 (PDT)
	(envelope-from pirzyk@fa.disney.com)
Received: from snoopy.fan.fa.disney.com (snoopy.fan.fa.disney.com [172.30.228.110])
	by plio.fan.fa.disney.com (8.9.2/8.9.2) with ESMTP id NAA29961
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 6 Oct 2000 13:25:03 -0700 (PDT)
	(envelope-from pirzyk@fa.disney.com)
Received: (from pirzyk@localhost)
	by snoopy.fan.fa.disney.com (8.9.3/8.9.3) id NAA09270;
	Fri, 6 Oct 2000 13:25:03 -0700 (PDT)
	(envelope-from pirzyk@fa.disney.com)
Message-Id: <200010062025.NAA09270@snoopy.fan.fa.disney.com>
Date: Fri, 6 Oct 2000 13:25:03 -0700 (PDT)
From: Jim.Pirzyk@disney.com
Reply-To: Jim.Pirzyk@disney.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: no mkfile command
X-Send-Pr-Version: 3.2

>Number:         21789
>Category:       bin
>Synopsis:       no mkfile command
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 06 13:30:01 PDT 2000
>Closed-Date:    Sun Feb 25 11:39:01 PST 2001
>Last-Modified:  Wed Nov  7 07:40:01 PST 2001
>Originator:     Jim Pirzyk
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
>Environment:

	FreeBSD any version up to 4.1

>Description:

	mkfile does not exist


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
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 

From: Jim Pirzyk <Jim.Pirzyk@disney.com>
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--
 

From: Peter Pentchev <roam@orbitel.bg>
To: Jim Pirzyk <Jim.Pirzyk@disney.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/21789: no mkfile command
Date: Mon, 9 Oct 2000 18:40:49 +0300

 On Mon, Oct 09, 2000 at 08:30:05AM -0700, Jim Pirzyk wrote:
 > The following reply was made to PR bin/21789; it has been noted by GNATS.
 > 
 > From: Jim Pirzyk <Jim.Pirzyk@disney.com>
 > 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
 
 Hmm except for the 'sticky bit' part, this sounds like /bin/dd to me..
 or am I missing something here?
 
 G'luck,
 Peter
 
 -- 
 This sentence contains exactly threee erors.
 

From: Johan Karlsson <k@numeri.campus.luth.se>
To: Jim Pirzyk <Jim.Pirzyk@disney.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: Fwd: Re: bin/21789: no mkfile command 
Date: Mon, 09 Oct 2000 23:01:19 +0200

 At Mon, 09 Oct 2000 08:30:05 PDT, Jim Pirzyk wrote:
 >
 >  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
 >  
 
 This functionality is provided by the truncate(1) command.
 Okey I know it is not exatly the same but I think its close enough.
 
 /Johan K
 
 truncate(1)             FreeBSD General Commands Manual            truncate(1)
 
 NAME
      truncate - truncate or extend a file to a specified length
 
 SYNOPSIS
      truncate [-h] [-m mode] size file ...
 
 DESCRIPTION
      The command truncate causes the file file to be truncated or extended to
      length bytes in size. If the file was larger than this size, the extra
      data is lost. If the file was smaller than this size, it will be extended
      as if by writing bytes with the value zero.  If the file doesn't exist,
      it is created, either with mode 0644 or the given mode mode.
 
 RETURN VALUES
      truncate returns 0 on success, an error value as specified in errno(7)
      otherwise.
 
 SEE ALSO
      truncate(2)
 
 AUTHOR
      truncate has been written by Alexander Langer. This manpage is based on
      the truncate(2) manual page.
 
 BSD                              May 25, 2000                                1
 
 
 

From: Johan Karlsson <k@numeri.campus.luth.se>
To: Cc: Jim Pirzyk <Jim.Pirzyk@disney.com>,
	FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: Fwd: Re: bin/21789: no mkfile command 
Date: Tue, 10 Oct 2000 17:18:10 +0200

 At Mon, 09 Oct 2000 23:01:19 +0200, Johan Karlsson wrote:
 > This functionality is provided by the truncate(1) command.
 > Okey I know it is not exatly the same but I think its close enough.
 > 
 
 I just managed to send an old version of the man page, it should 
 be this on.
 
 Does this command solve your task that you need mkfile for?
 
 
 TRUNCATE(1)             FreeBSD General Commands Manual            TRUNCATE(1)
 
 NAME
      truncate - truncate or extend the length of files
 
 SYNOPSIS
      truncate [-c] -s [+|-]size[K|M|G] file ...
      truncate [-c] -r rfile file ...
 
 DESCRIPTION
      The truncate utility adjusts the length of each regular file given on the
      command-line.
 
      The following options are available:
 
      -c      Do not create files if they do not exist.  The truncate utility
              does not treat this as an error.  No error messages are displayed
              and the exit value is not affected.
 
      -r rfile
              Truncate files to the length of the file rfile.
 
      -s [+|-]size[K|M|G]
              If the size argument is preceded by a plus sign (`+'), files will
              be extended by this number of bytes.  If the size argument is
              preceded by a dash (`-'), file lengths will be reduced by no more
              than this number of bytes, to a minimum length of zero bytes.
              Otherwise, the size argument specifies an absolute length to
              which all files should be extended or reduced as appropriate.
 
              The size argument may be suffixed with one of `K', `M', `G' to
              indicate a multiple of Kilobytes, Megabytes or Gigabytes respec-
              tively.
 
      Exactly one of the -r and -s options must be specified.
 
      If a file is made smaller, its extra data is lost.  If a file is made
      larger, it will be extended as if by writing bytes with the value zero.
      If the file does not exist, it is created unless the -c option is speci-
      fied.
 
      Note that, while truncating a file causes space on disk to be freed, ex-
      tending a file does not cause space to be allocated.  To extend a file
      and actually allocate the space, it is necessary to explicitly write data
      to it, using (for example) the shell's `>>' redirection syntax, or dd(1).
 
 DIAGNOSTICS
      The truncate utility exits 0 on success, and >0 if an error occurs.  If
      the operation fails for an argument, truncate will issue a diagnostic and
      continue processing the remaining arguments.
 
 SEE ALSO
      dd(1),  touch(1),  truncate(2)
 
 STANDARDS
      The truncate utility conforms to no known standards.
 
 HISTORY
      The truncate utility first appeared in FreeBSD 4.2.
 
 AUTHORS
      The truncate utility and this manual page were written by Sheldon Hearn
      <sheldonh@uunet.co.za>.
 
 
 

From: Jim Pirzyk <Jim.Pirzyk@disney.com>
To: freebsd-gnats-submit@FreeBSD.org, Jim.Pirzyk@disney.com
Cc:  
Subject: Re: bin/21789: no mkfile command
Date: Tue, 24 Oct 2000 08:37:22 -0700

 --------------D20F585E61DC7AD51A190323
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Seems tnat truncate is not in the FreeBSD 4.1-RELEASE.  Is it in -STABLE
 or -CURRENT?
 
 I would like to try it out, the man page seems to make it a viable
 option.
 
 - JimP
 
 --
 --- @(#) $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
 (*)/ (*)
 
 
 
 --------------D20F585E61DC7AD51A190323
 Content-Type: text/html; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
 <html>
 Seems tnat truncate is not in the FreeBSD 4.1-RELEASE.&nbsp; Is it in -STABLE
 or -CURRENT?
 <p>I would like to try it out, the man page seems to make it a viable option.
 <p>- JimP
 <pre>--&nbsp;
 --- @(#) $Id: dot.signature,v 1.9 2000/07/10 16:43:05 pirzyk Exp $
 &nbsp;&nbsp;&nbsp; __o&nbsp;&nbsp; Jim.Pirzyk@disney.com -------------------------------------
 &nbsp;_'\&lt;,_&nbsp;&nbsp; Senior Systems Engineer, Walt Disney Feature Animation&nbsp;
 (*)/ (*)</pre>
 &nbsp;</html>
 
 --------------D20F585E61DC7AD51A190323--
 
 

From: Johan Karlsson <k@numeri.campus.luth.se>
To: Jim Pirzyk <Jim.Pirzyk@disney.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/21789: no mkfile command 
Date: Tue, 24 Oct 2000 19:20:35 +0200

 At Tue, 24 Oct 2000 08:40:03 PDT, Jim Pirzyk wrote:
 > The following reply was made to PR bin/21789; it has been noted by GNATS.
 > 
 > From: Jim Pirzyk <Jim.Pirzyk@disney.com>
 > To: freebsd-gnats-submit@FreeBSD.org, Jim.Pirzyk@disney.com
 > Cc:  
 > Subject: Re: bin/21789: no mkfile command
 > Date: Tue, 24 Oct 2000 08:37:22 -0700
 > 
 >  Seems tnat truncate is not in the FreeBSD 4.1-RELEASE.  Is it in -STABLE
 >  or -CURRENT?
 >  
 >  I would like to try it out, the man page seems to make it a viable
 >  option.
 > 
  
 Hi 
 
 truncate was MFC:ed to 4-Stable in august, hence it is in 4.1.1-RELEASE.
 
 /Johan K
 
 

From: Johan Karlsson <k@numeri.campus.luth.se>
To: Cc: Jim Pirzyk <Jim.Pirzyk@disney.com>,
	freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/21789: no mkfile command 
Date: Sun, 25 Feb 2001 12:24:23 +0100

 At Tue, 24 Oct 2000 19:20:35 +0200, Johan Karlsson wrote:
 > At Tue, 24 Oct 2000 08:40:03 PDT, Jim Pirzyk wrote:
 > >  Seems tnat truncate is not in the FreeBSD 4.1-RELEASE.  Is it in -STABLE
 > >  or -CURRENT?
 > >  
 > >  I would like to try it out, the man page seems to make it a viable
 > >  option.
 > > 
 >  
 > Hi 
 > 
 > truncate was MFC:ed to 4-Stable in august, hence it is in 4.1.1-RELEASE.
 
 Hi Jim,
 
 did truncate(1) solve your problem?
 
 Is it ok to close this PR?
 
 /Johan K
 

From: Jim.Pirzyk@disney.com
To: Johan Karlsson <k@numeri.campus.luth.se>
Cc: Jim Pirzyk <Jim.Pirzyk@disney.com>,
	freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/21789: no mkfile command
Date: Sun, 25 Feb 2001 11:24:47 -0800

 > At Tue, 24 Oct 2000 19:20:35 +0200, Johan Karlsson wrote:
 > > At Tue, 24 Oct 2000 08:40:03 PDT, Jim Pirzyk wrote:
 > > >  Seems tnat truncate is not in the FreeBSD 4.1-RELEASE.  Is it in -STABLE
 > > >  or -CURRENT?
 > > >  
 > > >  I would like to try it out, the man page seems to make it a viable
 > > >  option.
 > > > 
 > >  
 > > Hi 
 > > 
 > > truncate was MFC:ed to 4-Stable in august, hence it is in 4.1.1-RELEASE.
 > 
 > Hi Jim,
 > 
 > did truncate(1) solve your problem?
 > 
 > Is it ok to close this PR?
 
 Yes.
 
 Thanks
 
 - JimP
 > 
 > /Johan K
 > 
State-Changed-From-To: feedback->closed 
State-Changed-By: johan 
State-Changed-When: Sun Feb 25 11:39:01 PST 2001 
State-Changed-Why:  
truncate(1) solved the problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21789 

From: HATANOU Tomomi <hatanou@infolab.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org, Jim.Pirzyk@disney.com
Cc: hatanou@infolab.ne.jp
Subject: Re: bin/21789: no mkfile command
Date: Thu, 08 Nov 2001 00:30:56 +0900

 Dear FreeBSD staff,
 
     I wrote mkfile(8) for FreeBSD.  Here it is:
 
 	http://www.infolab.ne.jp/~hatanou/freebsd/mkfile/mkfile.tar.gz
 
 It acts just like SunOS 4.1's mkfile(8).
 Could you please consider including it into FreeBSD?
 
 ----
 HATANOU Tomomi.
>Unformatted:
