Lines Matching defs:ptn
1270 struct part_usage_info *ptn;
1313 ptn = &install->infos[i];
1314 parts = ptn->parts;
1318 if (ptn->size == 0 || parts == NULL|| ptn->type == PT_swap)
1321 if (parts->pscheme->get_part_device(parts, ptn->cur_part_id,
1326 parts->pscheme->get_part_device(parts, ptn->cur_part_id,
1329 parts->pscheme->get_part_device(parts, ptn->cur_part_id,
1333 switch (ptn->fs_type) {
1335 if (ptn->fs_opt3 != 0)
1337 ptn->fs_opt3);
1343 if (ptn->fs_opt3 != 0)
1345 ptn->fs_opt3);
1346 if (ptn->fs_opt1 != 0) {
1348 ptn->fs_opt1);
1351 if (ptn->fs_opt2 != 0) {
1353 ptn->fs_opt2);
1357 switch (ptn->fs_version) {
1366 if (ptn->mountflags & PUIMNT_LOG)
1373 if (ptn->fs_opt1 != 0 && ptn->fs_opt2 != 0)
1375 ptn->fs_opt1 * ptn->fs_opt2);
1398 ptn->fs_version == 1 ?
1405 if ((ptn->instflags & PUIINST_NEWFS) && newfs != NULL) {
1408 } else if ((ptn->instflags & (PUIINST_MOUNT|PUIINST_BOOT))
1417 ptn->instflags &= ~PUIINST_NEWFS;
1420 if (partman_go == 0 && (ptn->instflags & PUIINST_MOUNT) &&
1422 make_target_dir(ptn->mount);
1424 ptn->mount);
1427 ptn->mount);
1498 const struct part_usage_info *ptn = &install->infos[i];
1500 if (ptn->size == 0)
1503 bool is_tmpfs = ptn->type == PT_root &&
1504 ptn->fs_type == FS_TMPFS &&
1505 (ptn->flags & PUIFLG_JUST_MOUNTPOINT);
1507 if (!is_tmpfs && ptn->type != PT_swap &&
1508 (ptn->instflags & PUIINST_MOUNT) == 0)
1512 const char *mp = ptn->mount;
1516 if (ptn->parts->pscheme->get_part_device(ptn->parts,
1517 ptn->cur_part_id, dev_buf, sizeof dev_buf, NULL,
1532 switch (ptn->fs_type) {
1560 if (ptn->size < 0)
1563 "-sram%%%" PRIu64 "\n", -ptn->size);
1567 "-s%" PRIu64 "M\n", ptn->size);
1574 PRIu64 "\n", swap_dev, ptn->size);
1578 PRIu64 "\n", ptn->size);
1592 (ptn->instflags & PUIINST_MOUNT) == 0)
1598 ptn->mountflags & PUIMNT_LOG ? ",log" : "",
1599 ptn->mountflags & PUIMNT_NOAUTO ? ",noauto" : "",
1600 ptn->mountflags & PUIMNT_ASYNC ? ",async" : "",
1601 ptn->mountflags & PUIMNT_NOATIME ? ",noatime" : "",
1602 ptn->mountflags & PUIMNT_NODEV ? ",nodev" : "",
1603 ptn->mountflags & PUIMNT_NODEVMTIME ? ",nodevmtime" : "",
1604 ptn->mountflags & PUIMNT_NOEXEC ? ",noexec" : "",
1605 ptn->mountflags & PUIMNT_NOSUID ? ",nosuid" : "",