Lines Matching defs:inode
86 " -i, --inode NUM Display this inode\n\n"
169 { "inode", required_argument, NULL, 'i' },
186 opts.inode = -1;
229 if (opts.inode != -1)
230 ntfs_log_error("You must specify exactly one inode.\n");
231 else if (utils_parse_size(optarg, &opts.inode, FALSE))
234 ntfs_log_error("Couldn't parse inode number.\n");
282 } else if (opts.file == NULL && opts.inode == -1) {
283 ntfs_log_error("You must specify a file or inode "
287 } else if (opts.file != NULL && opts.inode != -1) {
288 ntfs_log_error("You can't specify both a file and inode.\n");
309 * @inode: Inode of the directory to be checked
316 static int index_get_size(ntfs_inode *inode)
321 attr90 = find_first_attribute(AT_INDEX_ROOT, inode->mrec);
332 static int cat(ntfs_volume *vol, ntfs_inode *inode, ATTR_TYPES type,
346 attr = ntfs_attr_open(inode, type, name, namelen);
354 if ((inode->mft_no < 2) && (attr->type == AT_DATA))
357 block_size = index_get_size(inode);
403 ntfs_inode *inode;
421 if (opts.inode != -1)
422 inode = ntfs_inode_open(vol, opts.inode);
424 inode = ntfs_pathname_to_inode(vol, NULL, opts.file);
426 if (!inode) {
427 ntfs_log_perror("ERROR: Couldn't open inode");
435 result = cat(vol, inode, attr, opts.attr_name, opts.attr_name_len);
437 ntfs_inode_close(inode);