I changed the filename to "passwd2" because I wasn't sure what impact this would have on my /etc/passwd file.
The dtrace script has hopefully no impact in the target file.
Quote:
Was I supposed to run fake_inode.d from within /etc?
From anywhere you like.
Quote:
I created fake_inode.d and passwd2 inside /data, and ran the script from there. It has been saying this for a while:
This is the expected output. You should leave the script running for the inode renumbering hack to persist.
As Bartus11 already stated, just use another terminal to experiment with you program expecting a large inode number.
Hi,
If inodes need to be 3-4 times greater than fd.file-max. Can you modify the current inode in the filesystem? Can you modify it on the fly? Or only in the creation of FS.
I'm using redhat ent 4.
Thank you for any comment you may add. (1 Reply)
At risk of twisting the rules to nearly the point of breaking (if you think this goes too far mods, I apologise and accept that this should be deleted), I'm hoping someone might be able to cast a little light on the following problem regarding hard links to files.
... (6 Replies)
Hello, I am using tcsh on AIX.
I would like to write a script that does the following:
1. given an inode, how do I find exactly the name of the file?
I know I could do this using ls -i | grep <inode>
but it returns: <inode> <filename>. I need some string manipulation or something to... (1 Reply)
Hi all,
I am struggling to change the content of a file without changing the inode number. The exact issue is as below.
I have a file name test.bak which has 100 lines of text.
I am trying to to delete the first 90 lines of the text in the file.
I know that using sed/awk/head/tail I can... (3 Replies)
i have a requirement where i needed to change variable values in a properties file(first file) whenever there is change to Release details file(second file). My question is do i have to create a daemon process that always checks the modified time/inode change of the second file and then change the... (1 Reply)
Hi,
I have created a file abc.log in Redhat Linux.
Inode number for a file get changes every time i update the file using vi editor.
Is there any setting that can be made , such that inode number never gets changed?
Or if we cannot restrict from inode number getting changed , is... (9 Replies)
Hello all,
I am on hpux itanium 11.31...and we run a oracle DB on it. I am testing some backup and restore situation.... first i select some data from the DB.....now i remove some files from the DB where my data is being selected from.....now i select the same data from the DB but i still get... (5 Replies)
Hi,
I have created a file a.txt in Redhat Linux.
Inode number for a file changes every time i update the file using vi editor , gedit etc.
Is there any setting that can be made , such that inode number never changes as that is supposed to be the expected behavior?
Or if we cannot... (13 Replies)
Discussion started by: srirammanohar
13 Replies
LEARN ABOUT DEBIAN
xfmtype
XFMTYPE(1) XFM XFMTYPE(1)NAME
xfmtype - xfm file type tester
SYNOPSIS
xfmtype -m magic_file [-f] filename ...
DESCRIPTION
The xfmtype program reads a magic configuration file and tests each file in its command line to tell its type according to the configura-
tion file.
The format of the configuration file is the similar to magic(5) with the differences described in 0
OPTIONS -f file
Consider the following argument as a file, even if it begins with `-'.
-m file
Specifies a configuration file. You can specify more than one configuration file with several -m flags. They are read in the order in
which they are found. Configuration files do not have effect until they are encountered in the command line. So, files to test in the
command line before that switch will not be affected by it.
BUILT IN TYPES
If no rule matches a specified field or the type cannot be determined because of other reasons, one of the following built in types is
returned:
inode/x-unreadable The file could not be read.
inode/x-empty File size is zero.
text/plain The file looks like ACSII.
xfm will look into xfm_mime.type(5) for more guessing.
application/octet-stream Other regular file.
xfm will look into xfm_mime.type(5) for more guessing.
inode/directory A directory.
inode/chardevice A character device.
inode/blockdevice A block device.
inode/pipe A names pipe (fifo).
inode/socket A socket.
inode/default None of the above.
BUGS
Bad configuration lines cause undefined behavior. In general they are silently ignored, but that is not guaranteed.
There are no warning or error message except for the regular expression syntax.
There should be a syntax checking mode.
All of the above apply to xfm too.
SEE ALSO xfm(1), xfm_magic(5), file(1), magic(5).
COPYRIGHT
Copyright (c) 1995 CNM-US
Copyright (c) 1995 Juan D. Martin
AUTHOR
Juan D. Martin (juando@cnm.us.es)
(but modified heavily by Bernhard R. Link)
xfm 20 April, 2006 XFMTYPE(1)