AminetAminet
Search:
84563 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/mkfile.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Create an empty file of desired size
Author:Fredrik Wikstrom
Uploader:Fredrik Wikstrom <fredrik a500 org>
Type:util/cli
Version:1.1
Architecture:m68k-amigaos; ppc-amigaos
Date:2010-08-29
Download:http://aminet.net/util/cli/mkfile.lha - View contents
Readme:http://aminet.net/util/cli/mkfile.readme
Downloads:1042

The program just allocates the space needed (it doesn't initialise it in any
way) which means that it is extremely fast, and useful for creating large files
like hardfiles or other disk image files for use in emulators (like E-UAE
f.e.).

Usage:

mkfile FILE/A,SIZE/M,SIUNITS/S

To create a 1 byte file called test:
mkfile test 1

To create an ADF file:
mkfile empty.adf 880kb

To create an 8 GB hardfile:
mkfile empty.hdf 8gb

To create a 1199571022 byte file:
mkfile blah 1gb 120mb 78b

To create a 1120000078 byte file:
mkfile blah 1gb 120mb 78b siunits

supported units (the 'b' can be optionally left out):
b, kb, mb, gb, tb

Changes:

(29-Aug-2010)
 - Added OS3.x version (uses Joerg Strohmayer's libdos64)

1.1 (2-Nov-2009)
 - Added version string
 - Now supports entering numbers > 2147483647
 - It's now possible to use more than one unit when specifying a file size
 - Added SIUNITS switch (1KB = 1000 bytes instead of 1024 bytes)

1.0 (24-Nov-2008)
 - First released version


Contents of util/cli/mkfile.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  197     284  69.4% -lh5- 413e Aug 29 23:06 Makefile
[generic]                  207     298  69.5% -lh5- 5988 Aug 29 23:26 Makefile.m68k
[generic]                 2821    6392  44.1% -lh5- 5547 Aug 29 23:07 mkfile
[generic]                 1518    3335  45.5% -lh5- 9e34 Aug 29 23:14 mkfile.c
[generic]                 2290    3868  59.2% -lh5- 7e0a Aug 29 23:26 mkfile.os3
[generic]                  680    1200  56.7% -lh5- 4b74 Aug 29 23:28 mkfile.readme
[generic]                  108     187  57.8% -lh5- 9829 Nov  2  2009 mkfile_rev.h
[generic]                  121     233  51.9% -lh5- 15f7 Nov  2  2009 mkfile_rev.i
[generic]                    2       2 100.0% -lh0- 9795 Nov  2  2009 mkfile_rev.rev
[generic]                  126     246  51.2% -lh5- 627c Nov  2  2009 mkfile_rev.s
[generic]                 1198    2959  40.5% -lh5- 1b50 Aug 29 23:25 newdosfuncs.c
[generic]                  835    1668  50.1% -lh5- 60c8 Aug 29 23:25 newdosfuncs.h
[generic]                  875    1774  49.3% -lh5- 1c96 Aug 29 23:02 types.h
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        13 files   10978   22446  48.9%            Aug 29 20:11

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>