Lines Matching refs:inode

19 We assume that the user reached here using the dir command of the inode type and not by using settype dir, so
22 type_data is not changed! It still contains the inode of the file - We handle the directory in our own
23 variables, so that settype ext2_inode will "go back" to the inode of this directory.
44 This function is called by the inode of the directory when the user issues the dir command from the inode.
45 It is used to gather information about the inode and to reset some variables which we need in order to handle
53 ptr=&type_data.u.t_ext2_inode; /* type_data contains the inode */
56 info_ptr->inode_offset=device_offset; /* device offset contains the inode's offset */
196 5. If the required entry is found, we dispatch a remember command to insert the current inode (remember that
197 type_data is still intact and contains the inode of the current directory) into the object memory.
198 This is required to easily support symbolic links - If we find later that the inode pointed by the entry is
199 actually a symbolic link, we'll need to return to this point, and the above inode doesn't have (and can't have,
202 6. We then dispatch a followinode command to reach the inode pointed by the required entry. This command will
203 automatically change the type to ext2_inode - We are now at an inode, and all the inode commands are available.
205 7. We check the inode's type to see if it is a directory. If it is, we dispatch a dir command to "enter the directory",
209 8. If the inode's type is a symbolic link (only fast symbolic link were meanwhile implemented. I guess this is
210 typically the case.), we note the path it is pointing at, the saved inode is recalled, we dispatch dir to
213 9. In any other case, we just stop at the resulting inode.
264 dispatch ("remember internal_variable"); /* Move the inode into the objects memory */
266 dispatch ("followinode"); /* Go to the inode pointed by this directory entry */
281 dispatch ("recall internal_variable"); /* Return to the original inode */
290 if (S_ISDIR (type_data.u.t_ext2_inode.i_mode)) { /* Is it an inode of a directory ? */
303 wprintw (command_win,"Can\'t continue - Stopping at last inode\n");refresh_command_win ();
392 Here we pass to the inode pointed by the current entry.
393 It involves computing the device offset of the inode and using directly the setoffset and settype commands.
405 inode_offset=inode_num_to_inode_offset (dir_entry_ptr->inode); /* Compute the inode's offset */
407 sprintf (buffer,"settype ext2_inode");dispatch (buffer); /* and set the type to an inode */
414 Returns to the parent inode of the current directory.
415 This is trivial, as we type_data is still intact and contains the parent inode !
465 wprintw (show_pad,"inode = %-8lu rec_len = %-4lu name_len = %-3lu name = %s\n", /* Display the various fields */
466 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp);
532 wprintw (show_win,"File inode %ld. Indirection level %ld.\n",inode_num,file_info.level);
542 inode of the current directory.
613 if (strcasecmp ("inode",variable)==0) {
615 dir_entry_ptr->inode=atol (value);
616 wprintw (command_win,"Variable %s set to %lu\n",variable,dir_entry_ptr->inode);refresh_command_win ();
650 wprintw (show_pad,"inode = %-8lu rec_len = %-4lu name_len = %-3lu name = %s\n",
651 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp);