61 struct Vnode *node = NULL;
63 const CHAR *str =
"/dev";
66 if ((argc != 1) || (strncmp(argv[0], str, strlen(str)) != 0)) {
68 PRINTK(
" partinfo <dev_vnodename>\n");
69 PRINTK(
" dev_vnodename : the name of dev\n");
71 PRINTK(
" partinfo /dev/sdap0 \n");
79 PRINT_ERR(
"no part found\n");
VOID show_part(los_part *part)
Print partition information.
los_part * los_part_find(struct Vnode *blkDriver)
Find disk partition.
vnode并不包含文件名,因为 vnode和文件名是 1:N 的关系
int VnodeHold(void)
拿锁,封装互斥量
int VnodeLookup(const char *path, struct Vnode **vnode, uint32_t flags)
通过路径查询vnode节点