Obtained from: NetBSD
commit 0a62dad69f6288b05e812c0fe293e61a37c25edd Author: christos <christos@NetBSD.org> Date: Sun Jan 27 20:05:46 2013 +0000 This works well enough to populate plain files in the root dir. creating directories fails.
Differential D39070
makefs: move brelse into bread emaste on Mar 13 2023, 9:39 PM. Authored by Tags None Referenced Files
Subscribers
Details Obtained from: NetBSD commit 0a62dad69f6288b05e812c0fe293e61a37c25edd Author: christos <christos@NetBSD.org> Date: Sun Jan 27 20:05:46 2013 +0000 This works well enough to populate plain files in the root dir. creating directories fails.
Diff Detail
Event TimelineComment Actions I think these are necessary, but not quite sufficient. this will leak, but only some metadata writes Comment Actions The use of brelse in makefs/ffs/ffs_balloc.c is inconsistent. Assuming you are consistent in having bwrite brelse in both error and non-error cases there are two places in ffs_balloc.c that need to have brelse removed. I have only checked the FFS code. All filesystem types need to have their use of brelse / bwrite checked.
Comment Actions Update based on NetBSD commit: commit 0c4125e1a19f619766092d0704164c091adac9fc Author: christos <christos@NetBSD.org> Date: Mon Mar 13 22:10:30 2023 +0000 modernize; release bpp and set it to NULL as the kernel does even if we never return here. |