Lines Matching refs:inode
85 " -i, --inode NUM Display this inode\n\n"
168 { "inode", required_argument, NULL, 'i' },
185 opts.inode = -1;
222 if (opts.inode != -1)
223 ntfs_log_error("You must specify exactly one inode.\n");
224 else if (utils_parse_size(optarg, &opts.inode, FALSE))
227 ntfs_log_error("Couldn't parse inode number.\n");
283 } else if (opts.file == NULL && opts.inode == -1) {
284 ntfs_log_error("You must specify a file or inode "
288 } else if (opts.file != NULL && opts.inode != -1) {
289 ntfs_log_error("You can't specify both a file and inode.\n");
311 * @inode: Inode of the directory to be checked
318 static int index_get_size(ntfs_inode *inode)
323 attr90 = find_first_attribute(AT_INDEX_ROOT, inode->mrec);
334 static int cat(ntfs_volume *vol, ntfs_inode *inode, ATTR_TYPES type,
348 attr = ntfs_attr_open(inode, type, name, namelen);
356 if ((inode->mft_no < 2) && (attr->type == AT_DATA))
359 block_size = index_get_size(inode);
405 ntfs_inode *inode;
425 if (opts.inode != -1)
426 inode = ntfs_inode_open(vol, opts.inode);
433 inode = ntfs_pathname_to_inode(vol, NULL,
437 inode = (ntfs_inode*)NULL;
439 inode = ntfs_pathname_to_inode(vol, NULL, opts.file);
443 if (!inode) {
444 ntfs_log_perror("ERROR: Couldn't open inode");
452 result = cat(vol, inode, attr, opts.attr_name, opts.attr_name_len);
454 ntfs_inode_close(inode);