.\" $OpenBSD: makeinodes.1,v 1.1 2016/07/30 10:56:13 schwarze Exp $ .\" .\" Copyright (c) 2016 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate: July 30 2016 $ .Dt MAKEINODES 1 .Os .Sh NAME .Nm makeinodes .Nd create files such that inode numbers hash in a defined order .Sh SYNOPSIS .Nm makeinodes .Sh DESCRIPTION The .Nm utility creates a directory .Pa man/man1/ and two empty files .Pa man/man1/1 and .Pa man/man1/2 such that the lowest six bits of the inode number of file 1 are smaller than the lowest six bits of the inode number of file 2. .Pp This is useful to test the behaviour of the .Xr makewhatis 8 program which hashes files with .Xr ohash 3 according to their inode numbers, such that fully testing all the code paths requires test files hashing in a well-defined order. .Pp Once the files have been created with .Nm , their content can be provided with .Xr cat 1 and they can be renamed as desired with .Xr mv 1 . .Sh EXIT STATUS .Ex -std It may fail when creation of a directory or file, lookup of an inode number, or renaming of a file fails. .Sh AUTHORS .An Ingo Schwarze Aq Mt schwarze@openbsd.org