Lines Matching +full:emc +full:- +full:tables
4 # SPDX-License-Identifier: BSD-2-Clause
7 # Copyright (c) 2019 Dell EMC Isilon
38 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
45 mycc -o mountu -Wall -Wextra -O2 mountu.c || exit 1
46 rm -f mountu.c
50 pid=`ps ax | grep -v grep | grep /tmp/mountu | awk '{print $1}'`
51 [ -n "$pid" ] && procstat -v $pid
55 if mount | grep $mntpoint | grep -q "read-only"; then
56 if pstat $!| awk "\$2 == \"$map\"" | grep -q " rw-"; then
74 mount | grep -q "$mntpoint " && umount $mntpoint
75 mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart
76 mdconfig -a -t swap -s 100m -u $mdstart
77 gpart create -s bsd md$mdstart > /dev/null
78 gpart add -t freebsd-ufs md$mdstart > /dev/null
89 map=`cat $mapfile`; rm $mapfile; exec 5>&-
92 mount -u -o ro $mntpoint 2>/dev/null || mount -fu -o ro $mntpoint
94 mount -u -o rw $mntpoint
95 rm -f $file
98 [ $s -ne 139 ] && { echo "UFS exit status is $s"; status=1; }
99 while mount | grep -q "$mntpoint "; do
102 mdconfig -d -u $mdstart
105 if ping -c 2 `echo $nfs_export | sed 's/:.*//'` > /dev/null 2>&1; then
106 mount -t nfs -o tcp -o retrycnt=3 -o intr,soft -o rw $nfs_export \
109 rm -f $file
115 mount -u -o ro $mntpoint 2>/dev/null ||
116 mount -fu -o ro $mntpoint 2>/dev/null
120 [ $s -ne 139 ] && { echo "NFS exit status is $s"; status=1; }
122 mount -u -o rw $mntpoint 2>/dev/null
124 [ -f $file ] && rm -f $file
129 if [ -x /sbin/mount_msdosfs ]; then
130 mdconfig -a -t swap -s 100m -u $mdstart
131 gpart create -s bsd md$mdstart > /dev/null
132 gpart add -t freebsd-ufs md$mdstart > /dev/null
134 newfs_msdos -F 16 -b 8192 /dev/md${mdstart}$part > /dev/null 2>&1
135 mount_msdosfs -m 777 /dev/md${mdstart}$part $mntpoint
141 mount -u -o ro $mntpoint 2>/dev/null || mount -fu -o ro $mntpoint
145 [ $s -ne 139 ] && { echo "MSDOS exit status is $s"; status=1; }
146 mount -u -o rw $mntpoint
147 rm -f $file
149 while mount | grep -q "$mntpoint "; do
152 mdconfig -d -u $mdstart
156 mount -t tmpfs null $mntpoint
164 mount -u -o ro $mntpoint 2>/dev/null || mount -fu -o ro $mntpoint
167 mount -u -o rw $mntpoint
168 rm -f $file
171 [ $s -ne 139 ] && { echo "TMPFS exit status is $s"; status=1; }
172 while mount | grep -q "$mntpoint "; do
176 rm -f /tmp/mountu
180 UFS/NFS/msdosfs reclaim vnode on rw->ro forced remount, and
182 the pages on the object queue and installed in the page tables.
185 to already mapped pages (if ro->rw remount happen later), and
213 printf("SIG%s at %p, addr %p\n", sys_signame[signo], si->si_addr,
215 (void *)uc->uc_mcontext.mc_eip);
217 (void *)uc->uc_mcontext.mc_rip);
236 if (sigaction(SIGSEGV, &sa, NULL) == -1)
238 if (sigaction(SIGBUS, &sa, NULL) == -1)
244 if (setgroups(1, &pw->pw_gid) ||
245 setegid(pw->pw_gid) || setgid(pw->pw_gid) ||
246 seteuid(pw->pw_uid) || setuid(pw->pw_uid))
255 if ((fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0622)) == -1)
257 if (ftruncate(fd, len) == -1)