Lines Matching defs:opts
53 static struct options opts;
186 opts.inode = -1;
187 opts.attr = cpu_to_le32(-1);
188 opts.attr_name = NULL;
189 opts.attr_name_len = 0;
194 if (!opts.device) {
195 opts.device = argv[optind - 1];
196 } else if (!opts.file) {
197 opts.file = argv[optind - 1];
205 if (opts.attr != cpu_to_le32(-1)) {
209 opts.attr = attr;
217 opts.force++;
229 if (opts.inode != -1)
231 else if (utils_parse_size(optarg, &opts.inode, FALSE))
239 opts.attr_name_len = ntfs_mbstoucs(optarg,
240 &opts.attr_name, 0);
241 if (opts.attr_name_len < 0) {
248 opts.quiet++;
255 opts.verbose++;
259 opts.raw = TRUE;
271 opts.verbose++;
273 opts.quiet++;
276 opts.quiet = 0;
278 if (opts.device == NULL) {
282 } else if (opts.file == NULL && opts.inode == -1) {
287 } else if (opts.file != NULL && opts.inode != -1) {
292 if (opts.quiet && opts.verbose) {
363 if (!opts.raw && block_size > 0) {
414 vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY |
415 (opts.force ? NTFS_MNT_FORCE : 0));
421 if (opts.inode != -1)
422 inode = ntfs_inode_open(vol, opts.inode);
424 inode = ntfs_pathname_to_inode(vol, NULL, opts.file);
432 if (opts.attr != cpu_to_le32(-1))
433 attr = opts.attr;
435 result = cat(vol, inode, attr, opts.attr_name, opts.attr_name_len);