1 /******************************************************************************
4 * Copyright (c) 2020, longpanda <admin@ventoy.net>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 3 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 #include "biso_list.h"
23 #include "biso_util.h"
24 #include "biso_9660.h"
25 #include "biso_eltorito.h"
26 #include "biso_rockridge.h"
27 #include "biso_joliet.h"
28 #include "biso_dump.h"
31 VOID BISO_DUMP_ShowFileTree
34 IN CONST BISO_DIR_TREE_S
*pstDirTree
39 if (NULL
== pstDirTree
)
44 for (i
= 0; i
+ 1 < uiDepth
; i
++)
49 if (BOOL_TRUE
== BISO_DIR_TREE_IS_SYMLINK(pstDirTree
))
51 BISO_DUMP("|-- %s --> %s", pstDirTree
->szName
, pstDirTree
->pstPosixInfo
->pcLinkSrc
);
55 BISO_DUMP("|-- %s", pstDirTree
->szName
);
58 BISO_DUMP(" %u %u\n", pstDirTree
->uiExtent
, pstDirTree
->uiSize
);
62 if (NULL
!= pstDirTree
->pstDirStat
)
64 BISO_DUMP(" ([%u %u %u] [%u %u %u]\n",
65 pstDirTree
->pstDirStat
->uiCurDirNum
,
66 pstDirTree
->pstDirStat
->uiCurFileNum
,
67 pstDirTree
->pstDirStat
->uiCurLinkNum
,
68 pstDirTree
->pstDirStat
->uiTotDirNum
,
69 pstDirTree
->pstDirStat
->uiTotFileNum
,
70 pstDirTree
->pstDirStat
->uiTotLinkNum
);
79 BISO_DUMP_ShowFileTree(uiDepth
+ 1, pstDirTree
->pstChild
);
82 BISO_DUMP_ShowFileTree(uiDepth
+ 1, pstDirTree
->pstFileList
);
85 BISO_DUMP_ShowFileTree(uiDepth
, pstDirTree
->pstNext
);