Skip to content

Commit ff74bdd

Browse files
authored
Dump only POL usr folder
1 parent 8192de3 commit ff74bdd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/pfs2tar.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ static int do_wrapped_ftw(path_info_t *pi, char *path, wrapped_ftw_callback fn)
5757
}
5858
path[j] = '/';
5959
strcpy(path + j + 1, de.name);
60+
printf("path: %s\n", path);
61+
if (strncmp(path, "pfs0:/usr", 9))
62+
continue;
6063
printf("\r\033[K %s", path);
6164
fflush(stdout);
6265
if ((r = do_wrapped_ftw(pi, path, fn))) {
@@ -352,7 +355,7 @@ static int tar_part(const char *arg)
352355
int result;
353356
iox_dirent_t de;
354357
while ((result = iomanX_dread(dh, &de)) && result != -1) {
355-
if (de.stat.mode == 0x0100 && de.stat.attr != 1) {
358+
if (!strcmp(de.name, "PP.SLPS-20200.1000.POLVIEWER") || !strcmp(de.name, "PP.SCUS-97269.1000.POLVIEWER") || !strcmp(de.name, "PP.SLPM-62134.1000.POLVIEWER") || !strcmp(de.name, "PP.SCUS-97272.1000.POLVIEWER")) {
356359
printf("%s%s\n", "hdd0:", de.name);
357360
if (arg == NULL || !strcmp(de.name, arg)) {
358361
char mount_point[256];

0 commit comments

Comments
 (0)