case 'R':{
const char *dst = cmdlineSplitStrByColon(optarg);
dst = dst ? dst : optarg;
- if (!mountAddMountPtTail(nsjconf, /* src= */ optarg, dst,
- /* fs_type= */ "", /* options= */ "",
- MS_BIND | MS_REC | MS_RDONLY, /* isDir= */
- NS_DIR_MAYBE,
- /* mandatory= */ true, NULL, NULL, NULL, 0,
- /* is_symlink= */ false)) {
+ if (!mountAddMountPtTail
+ (nsjconf, /* src= */ optarg, dst, /* fs_type= */ "",
+ /* options= */ "", MS_BIND | MS_REC | MS_RDONLY, /* isDir= */
+ NS_DIR_MAYBE, /* mandatory= */ true, NULL, NULL, NULL, 0,
+ /* is_symlink= */ false)) {
return false;
}
};
case 'B':{
const char *dst = cmdlineSplitStrByColon(optarg);
dst = dst ? dst : optarg;
- if (!mountAddMountPtTail(nsjconf, /* src= */ optarg, dst,
- /* fs_type= */ "", /* options= */ "",
- MS_BIND | MS_REC, /* isDir= */
- NS_DIR_MAYBE,
- /* mandatory= */ true, NULL, NULL, NULL, 0,
- /* is_symlink= */ false)) {
+ if (!mountAddMountPtTail
+ (nsjconf, /* src= */ optarg, dst, /* fs_type= */ "",
+ /* options= */ "", MS_BIND | MS_REC, /* isDir= */ NS_DIR_MAYBE,
+ /* mandatory= */ true, NULL, NULL, NULL, 0, /* is_symlink= */
+ false)) {
return false;
}
};
break;
case 'T':{
- if (!mountAddMountPtTail(nsjconf, /* src= */ NULL, optarg, "tmpfs", /* options= */ "", /* flags= */ 0, /* isDir= */
- true,
- /* mandatory= */ true, NULL, NULL, NULL, 0,
- /* is_symlink= */
- false)) {
+ if (!mountAddMountPtTail
+ (nsjconf, /* src= */ NULL, optarg, "tmpfs", /* options= */ "",
+ /* flags= */ 0, /* isDir= */ true, /* mandatory= */ true, NULL,
+ NULL, NULL, 0, /* is_symlink= */ false)) {
return false;
}
};
}
if (nsjconf->mount_proc == true) {
- if (!mountAddMountPtHead(nsjconf, /* src= */ NULL, "/proc", "proc", "",
- nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */
- true,
- /* mandatory= */ true, NULL, NULL, NULL, 0,
- /* is_symlink= */
- false)) {
+ if (!mountAddMountPtHead
+ (nsjconf, /* src= */ NULL, "/proc", "proc", "",
+ nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */ true, /* mandatory= */ true,
+ NULL, NULL, NULL, 0, /* is_symlink= */ false)) {
return false;
}
}
if (!mountAddMountPtHead
(nsjconf, nsjconf->chroot, "/", /* fs_type= */ "", /* options= */ "",
nsjconf->is_root_rw ? (MS_BIND | MS_REC) : (MS_BIND | MS_REC | MS_RDONLY),
- /* isDir= */ true,
- /* mandatory= */ true, NULL, NULL, NULL, 0, /* is_symlink= */ false)) {
+ /* isDir= */ true, /* mandatory= */ true, NULL, NULL, NULL, 0,
+ /* is_symlink= */ false)) {
return false;
}
} else {
- if (!mountAddMountPtHead(nsjconf, /* src= */ NULL, "/", "tmpfs", /* options= */ "",
- nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */
- true,
- /* mandatory= */ true, NULL, NULL, NULL, 0,
- /* is_symlink= */
- false)) {
+ if (!mountAddMountPtHead
+ (nsjconf, /* src= */ NULL, "/", "tmpfs", /* options= */ "",
+ nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */ true, /* mandatory= */ true,
+ NULL, NULL, NULL, 0, /* is_symlink= */ false)) {
return false;
}
}