Home | History | Annotate | Download | only in debugfs

Lines Matching full:argv

142 void do_dump(int argc, char **argv)
151 while ((c = getopt (argc, argv, "p")) != EOF) {
158 com_err(argv[0], 0, "Usage: dump_inode [-p] "
166 if (check_fs_open(argv[0]))
169 in_fn = argv[optind];
170 out_fn = argv[optind+1];
178 com_err(argv[0], errno, "while opening %s for dump_inode",
183 dump_file(argv[0], inode, fd, preserve, out_fn);
314 void do_rdump(int argc, char **argv)
322 if (common_args_process(argc, argv, 3, 3, "rdump",
326 ino = string_to_inode(argv[1]);
330 /* Ensure ARGV[2] is a directory. */
331 i = stat(argv[2], &st);
333 com_err("rdump", errno, "while statting %s", argv[2]);
337 com_err("rdump", 0, "%s is not a directory", argv[2]);
341 if (debugfs_read_inode(ino, &inode, argv[1]))
344 p = strrchr(argv[1], '/');
348 p = argv[1];
350 rdump_inode(ino, &inode, p, argv[2]);
353 void do_cat(int argc, char **argv)
357 if (common_inode_args_process(argc, argv, &inode, 0))
362 dump_file(argv[0], inode, 1, 0, argv[2]);