UFS close-to-open consistency

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Sun, 06 May 2007 16:40:44 +0200
I had a very strange experience today involving typeahead and a slow
ssh connection.  Apparently, the second 'make' command below saw the
old version of if_rum.c instead of the new one I checked out from
repoman between the two builds.

des_at_dma ~% cd /sys/modules/rum
des_at_dma /sys/modules/rum% make DEBUG_FLAGS=-DUSB_DEBUG
Warning: Object directory not changed from original /usr/src/sys/modules/rum
_at_ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
:> opt_usb.h
awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
awk -f _at_/tools/usbdevs2h.awk _at_/dev/usb/usbdevs -h
cc -O -pipe -march=nocona -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I-   -I. -I_at_ -I_at_/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -DUSB_DEBUG -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -fformat-extensions -c /usr/src/sys/modules/rum/../../dev/usb/if_rum.c
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c: In function `rum_tx_mgt':
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c:1194: warning: unsigned int format, different type arg (arg 2)
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c: In function `rum_tx_data':
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c:1356: warning: unsigned int format, different type arg (arg 2)
*** Error code 1

Stop in /usr/src/sys/modules/rum.
des_at_dma /sys/modules/rum% cd /sys/dev/usb 
des_at_dma /sys/dev/usb% fncvs up
cd -
P if_rum.c
!ma
des_at_dma /sys/dev/usb% cd -
/sys/modules/rum
des_at_dma /sys/modules/rum% !ma
make DEBUG_FLAGS=-DUSB_DEBUG
Warning: Object directory not changed from original /usr/src/sys/modules/rum
cc -O -pipe -march=nocona -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I-   -I. -I_at_ -I_at_/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -DUSB_DEBUG -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -fformat-extensions -c /usr/src/sys/modules/rum/../../dev/usb/if_rum.c
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c: In function `rum_tx_mgt':
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c:1194: warning: int format, different type arg (arg 2)
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c: In function `rum_tx_data':
/usr/src/sys/modules/rum/../../dev/usb/if_rum.c:1356: warning: int format, different type arg (arg 2)
*** Error code 1

Stop in /usr/src/sys/modules/rum.
des_at_dma /sys/modules/rum% cd -
/sys/dev/usb
des_at_dma /sys/dev/usb% fncvs up
des_at_dma /sys/dev/usb% cd -
/sys/modules/rum
des_at_dma /sys/modules/rum% make
Warning: Object directory not changed from original /usr/src/sys/modules/rum
cc -O -pipe -march=nocona -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I-   -I. -I_at_ -I_at_/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -fformat-extensions -c /usr/src/sys/modules/rum/../../dev/usb/if_rum.c
ld  -d -warn-common -r -d -o if_rum.ko.debug if_rum.o
:> export_syms
awk -f /usr/src/sys/modules/rum/../../conf/kmod_syms.awk if_rum.ko.debug  export_syms | xargs -J% objcopy % if_rum.ko.debug
objcopy --only-keep-debug if_rum.ko.debug if_rum.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=if_rum.ko.symbols if_rum.ko.debug if_rum.ko
des_at_dma /sys/modules/rum% make clean
rm -f export_syms if_rum.ko if_rum.kld if_rum.o if_rum.ko.debug if_rum.ko.symbols opt_usb.h bus_if.h device_if.h usbdevs.h
des_at_dma /sys/modules/rum% make
Warning: Object directory not changed from original /usr/src/sys/modules/rum
:> opt_usb.h
awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
awk -f _at_/tools/usbdevs2h.awk _at_/dev/usb/usbdevs -h
cc -O -pipe -march=nocona -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I-   -I. -I_at_ -I_at_/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -fformat-extensions -c /usr/src/sys/modules/rum/../../dev/usb/if_rum.c
ld  -d -warn-common -r -d -o if_rum.ko.debug if_rum.o
:> export_syms
awk -f /usr/src/sys/modules/rum/../../conf/kmod_syms.awk if_rum.ko.debug  export_syms | xargs -J% objcopy % if_rum.ko.debug
objcopy --only-keep-debug if_rum.ko.debug if_rum.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=if_rum.ko.symbols if_rum.ko.debug if_rum.ko
des_at_dma /sys/modules/rum% df .
Filesystem  1K-blocks    Used    Avail Capacity  Mounted on
/dev/ar0s1f  64995338 8443858 51351854    14%    /usr
des_at_dma /sys/modules/rum% cd -
/sys/dev/usb
des_at_dma /sys/dev/usb% df .
Filesystem  1K-blocks    Used    Avail Capacity  Mounted on
/dev/ar0s1f  64995338 8443858 51351854    14%    /usr
des_at_dma /sys/dev/usb% mount -tufs
/dev/ar0s1a on / (ufs, local, soft-updates)
/dev/ar0s1d on /tmp (ufs, local, soft-updates)
/dev/ar0s1e on /var (ufs, local, soft-updates)
/dev/ar0s1f on /usr (ufs, local, soft-updates)
/dev/ar0s1g on /imap (ufs, local, soft-updates)
/dev/ar0s1h on /home (ufs, local, soft-updates)

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Sun May 06 2007 - 12:40:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:09 UTC