Home | History | Annotate | Download | only in debugfs

Lines Matching refs:argv

142 void do_dump(int argc, char **argv)
152 while ((c = getopt (argc, argv, "p")) != EOF) {
158 com_err(argv[0], 0, dump_usage);
163 com_err(argv[0], 0, dump_usage);
167 if (check_fs_open(argv[0]))
170 in_fn = argv[optind];
171 out_fn = argv[optind+1];
179 com_err(argv[0], errno, "while opening %s for dump_inode",
184 dump_file(argv[0], inode, fd, preserve, out_fn);
315 void do_rdump(int argc, char **argv)
323 if (common_args_process(argc, argv, 3, 3, "rdump",
327 ino = string_to_inode(argv[1]);
331 /* Ensure ARGV[2] is a directory. */
332 i = stat(argv[2], &st);
334 com_err("rdump", errno, "while statting %s", argv[2]);
338 com_err("rdump", 0, "%s is not a directory", argv[2]);
342 if (debugfs_read_inode(ino, &inode, argv[1]))
345 p = strrchr(argv[1], '/');
349 p = argv[1];
351 rdump_inode(ino, &inode, p, argv[2]);
354 void do_cat(int argc, char **argv)
358 if (common_inode_args_process(argc, argv, &inode, 0))
363 dump_file(argv[0], inode, 1, 0, argv[2]);