mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
populate: create block devices when pre-populating filesystems
I just noticed that the fs population helper creates a chardev file "S_IFBLK" on the scratch filesystem. This seems bogus (particularly since we actually also create a chardev named S_IFCHR) so fix up the mknod calls. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
d65111a674
commit
404d9f2b50
+2
-2
@@ -230,7 +230,7 @@ _scratch_xfs_populate() {
|
||||
# Char & block
|
||||
echo "+ special"
|
||||
mknod "${SCRATCH_MNT}/S_IFCHR" c 1 1
|
||||
mknod "${SCRATCH_MNT}/S_IFBLK" c 1 1
|
||||
mknod "${SCRATCH_MNT}/S_IFBLK" b 1 1
|
||||
|
||||
# special file with an xattr
|
||||
setfacl -P -m u:nobody:r ${SCRATCH_MNT}/S_IFCHR
|
||||
@@ -402,7 +402,7 @@ _scratch_ext4_populate() {
|
||||
# Char & block
|
||||
echo "+ special"
|
||||
mknod "${SCRATCH_MNT}/S_IFCHR" c 1 1
|
||||
mknod "${SCRATCH_MNT}/S_IFBLK" c 1 1
|
||||
mknod "${SCRATCH_MNT}/S_IFBLK" b 1 1
|
||||
|
||||
# special file with an xattr
|
||||
setfacl -P -m u:nobody:r ${SCRATCH_MNT}/S_IFCHR
|
||||
|
||||
Reference in New Issue
Block a user