Date: Mon, 1 May 2017 07:49:42 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r317639 - user/pho/stress2/misc Message-ID: <201705010749.v417ngui030132@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Mon May 1 07:49:41 2017 New Revision: 317639 URL: https://svnweb.freebsd.org/changeset/base/317639 Log: Style and prepare for ino64. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/namecache.sh user/pho/stress2/misc/trim5.sh Modified: user/pho/stress2/misc/namecache.sh ============================================================================== --- user/pho/stress2/misc/namecache.sh Mon May 1 07:44:34 2017 (r317638) +++ user/pho/stress2/misc/namecache.sh Mon May 1 07:49:41 2017 (r317639) @@ -86,13 +86,13 @@ for i in `jot 30`; do [ $((`date '+%s'` - start)) -gt 1800 ] && break done -if ls -l ${dir}/file.0* 2>&1 | egrep "file.0[0-9]" | grep -q "No such file"; then +if ls -l $dir/file.0* 2>&1 | egrep "file.0[0-9]" | grep -q "No such file"; then echo FAIL - echo "ls -l ${dir}/file.0*" - ls -l ${dir}/file.0* + echo "ls -l $dir/file.0*" + ls -l $dir/file.0* fi -rm -f /tmp/namecache # /${dir}/file.0* +rm -f /tmp/namecache # /$dir/file.0* exit EOF /* Test scenario for possible name cache problem */ @@ -144,9 +144,10 @@ pm(void) if (stat(dp->d_name, &statb) == -1) { warn("stat(%s)", dp->d_name); - printf("name: %-10s, inode %7d, type %2d, namelen %d, d_reclen %d\n", - dp->d_name, dp->d_fileno, dp->d_type, dp->d_namlen, - dp->d_reclen); + printf("name: %-10s, inode %7lu, " + "type %2d, namelen %d, d_reclen %d\n", + dp->d_name, (unsigned long)dp->d_fileno, dp->d_type, + dp->d_namlen, dp->d_reclen); fflush(stdout); } else { printf("stat(%s) succeeded!\n", path); Modified: user/pho/stress2/misc/trim5.sh ============================================================================== --- user/pho/stress2/misc/trim5.sh Mon May 1 07:44:34 2017 (r317638) +++ user/pho/stress2/misc/trim5.sh Mon May 1 07:49:41 2017 (r317639) @@ -43,7 +43,7 @@ bsdlabel -w md$mdstart auto newfs -U -t md${mdstart}$part > /dev/null mount /dev/md${mdstart}$part $mntpoint -mksnap_ffs $mntpoint ${mntpoint}/.snap/snap +mksnap_ffs $mntpoint $mntpoint/.snap/snap while mount | grep -q $mntpoint; do umount $mntpoint || sleep 1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705010749.v417ngui030132>