Check that both the kernel and mount_tmpfs handle extremely big numbers in

correctly in the max size parameter.
This commit is contained in:
jmmv 2005-09-26 09:50:53 +00:00
parent 90260ab291
commit 7f4f9fe044
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: t_mount,v 1.3 2005/09/25 16:28:43 jmmv Exp $
# $NetBSD: t_mount,v 1.4 2005/09/26 09:50:53 jmmv Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@ -69,6 +69,14 @@ test_run() {
test_name "Negative values are correctly handled"
test_mount -o "-s -10"
test_unmount
test_name "Extremely large values are correctly handled"
test_mount -o -s9223372036854775808
test_unmount
mkdir -p ${Work_Dir}
mount -t tmpfs -o -s9223372036854775808g tmpfs ${Work_Dir} \
2>/dev/null && die
rmdir ${Work_Dir}
}
. ./h_funcs.subr