Minor fixes. (Skip test 28 LINK_MAX links generation, it takes too long.)
This commit is contained in:
parent
b42be3741b
commit
821dfb06ed
2 changed files with 6 additions and 2 deletions
|
@ -208,9 +208,11 @@ void test28b()
|
||||||
if (rmdir(ToLongPath) != -1) e(21);
|
if (rmdir(ToLongPath) != -1) e(21);
|
||||||
if (errno != ENAMETOOLONG) e(22);
|
if (errno != ENAMETOOLONG) e(22);
|
||||||
|
|
||||||
/* Test what happens if the parent link count > LINK_MAX. */
|
|
||||||
if (mkdir("foo", 0777) != 0) e(23);
|
if (mkdir("foo", 0777) != 0) e(23);
|
||||||
System("touch foo/xyzzy");
|
System("touch foo/xyzzy");
|
||||||
|
#if 0
|
||||||
|
/* Test what happens if the parent link count > LINK_MAX. */
|
||||||
|
/* This takes too long. */
|
||||||
for (nlink = 1; nlink < LINK_MAX; nlink++) { /* make all */
|
for (nlink = 1; nlink < LINK_MAX; nlink++) { /* make all */
|
||||||
sprintf(bar, "foo/bar.%d", nlink);
|
sprintf(bar, "foo/bar.%d", nlink);
|
||||||
if (link("foo/xyzzy", bar) != 0) e(24);
|
if (link("foo/xyzzy", bar) != 0) e(24);
|
||||||
|
@ -220,6 +222,7 @@ void test28b()
|
||||||
if (link("foo/xyzzy", "nono") != -1) e(27); /* no more */
|
if (link("foo/xyzzy", "nono") != -1) e(27); /* no more */
|
||||||
if (errno != EMLINK) e(28); /* entrys. */
|
if (errno != EMLINK) e(28); /* entrys. */
|
||||||
System("rm -rf foo/nono"); /* Just in case. */
|
System("rm -rf foo/nono"); /* Just in case. */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Test if rmdir removes only empty dirs */
|
/* Test if rmdir removes only empty dirs */
|
||||||
if (rmdir("foo") != -1) e(29);/* not empty */
|
if (rmdir("foo") != -1) e(29);/* not empty */
|
||||||
|
|
|
@ -165,7 +165,8 @@ cdfdboot)
|
||||||
cp -p ../boot/boot /mnt/boot/boot || exit 1
|
cp -p ../boot/boot /mnt/boot/boot || exit 1
|
||||||
umount $dev || exit 1
|
umount $dev || exit 1
|
||||||
installboot -d $dev ../boot/bootblock boot/boot || exit 1
|
installboot -d $dev ../boot/bootblock boot/boot || exit 1
|
||||||
edparams $dev 'unset bootopts; unset servers; unset image; ramimagedev=c0d2p1; unset rootdev; unset leader; leader() { echo If the system cannot find root, please hit ESC and set your\nramimagedev to the CD device, partition 1. e.g.\nramimagedev=c0d2p1 .. then boot to start.\n\nOtherwise I will boot with my defaults in 10 seconds.\n\n }; bootcd=1; main(){delay 10000;boot}; save' || exit
|
# edparams $dev 'unset bootopts; unset servers; unset image; ramimagedev=c0d2p1; unset rootdev; unset leader; leader() { echo If the system cannot find root, please hit ESC and set your\nramimagedev to the CD device, partition 1. e.g.\nramimagedev=c0d2p1 .. then boot to start.\n\nOtherwise I will boot with my defaults in 10 seconds.\n\n }; bootcd=1; main(){delay 10000;boot}; save' || exit
|
||||||
|
edparams $dev 'unset bootopts; unset servers; unset image; ramimagedev=c0d2p1; unset rootdev; unset leader; bootcd=1; main(){delay 10000;boot}; save' || exit
|
||||||
|
|
||||||
# copy image
|
# copy image
|
||||||
dd if=$dev of=cdfdimage bs=8192 count=180
|
dd if=$dev of=cdfdimage bs=8192 count=180
|
||||||
|
|
Loading…
Reference in a new issue