On Thu, Aug 08, 2002 at 09:59:19PM -0700, Karthik M wrote: > hi everyone, > > I was kind of wondering if we could change the inode > number of a file in it's inode structure. Is it > possible to do. > > What i would like to do is : > > file 1 has inode: 12345 > file 2 has inode: 67890 > > I run a program within which I change the file 2 inode > to be 12345 and the file 1 inode to be 67890 . Then > maybe before the program ends i can change back > everything to normal. > > Is this possible to do so ?? Inode numbers are physical addresses of files for many filesystems. They cannot be changed from userland (thay are supposed to uniquely identify the file so they must not be) and playing with them in kernel would most probably lead to very bad things happening. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/