daily CVS update output
Updating src tree: P src/sbin/ping/ping.c P src/sbin/ping6/ping6.c P src/share/man/man4/man4.sparc/tslot.4 P src/sys/arch/arm/rockchip/rk_tsadc.c P src/sys/arch/sparc/dev/ts102.c P src/sys/dev/ic/an.c P src/sys/kern/kern_exec.c P src/sys/kern/kern_module.c P src/usr.bin/make/cond.c P src/usr.bin/make/unit-tests/varmod-ifelse.exp P src/usr.bin/make/unit-tests/varmod-ifelse.mk Updating xsrc tree: Killing core files: Updating tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat: collecting... replacing... done src/crypto: collecting... replacing... done src/dist: collecting... replacing... done src/distrib: collecting... replacing... done src/doc: collecting... replacing... done src/etc: collecting... replacing... done src/external: collecting... replacing... done src/extsrc: collecting... replacing... done src/games: collecting... replacing... done src/gnu: collecting...pax: Unable to access src/gnu (No such file or directory) pax: WARNING! These file names were not selected: src/gnu done src/include: collecting... replacing... done src/lib: collecting... replacing... done src/libexec: collecting... replacing... done src/regress: collecting... replacing... done src/rescue: collecting... replacing... done src/sbin: collecting... replacing... done src/share: collecting... replacing... done src/sys: collecting... replacing... done src/tests: collecting... replacing... done src/tools: collecting... replacing... done src/usr.bin: collecting... replacing... done src/usr.sbin: collecting... replacing... done src/config: collecting... replacing... done src: collecting... replacing... done xsrc/top-level: collecting... replacing... done xsrc/external: collecting... replacing... done xsrc/local: collecting... replacing... done xsrc: collecting... replacing... done Updating release-8 src tree (netbsd-8): Updating release-8 xsrc tree (netbsd-8): Updating release-8 tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat: collecting... replacing... done src/crypto: collecting... replacing... done src/dist: collecting... replacing... done src/distrib: collecting... replacing... done src/doc: collecting... replacing... done src/etc: collecting... replacing... done src/external: collecting... replacing... done src/extsrc: collecting... replacing... done src/games: collecting... replacing... done src/gnu: collecting...pax: Unable to access src/gnu (No such file or directory) pax: WARNING! These file names were not selected: src/gnu done src/include: collecting... replacing... done src/lib: collecting... replacing... done src/libexec: collecting... replacing... done src/regress: collecting... replacing... done src/rescue: collecting... replacing... done src/sbin: collecting... replacing... done src/share: collecting... replacing... done src/sys: collecting... replacing... done src/tests: collecting... replacing... done src/tools: collecting... replacing... done src/usr.bin: collecting... replacing... done src/usr.sbin: collecting... replacing... done src/config: collecting... replacing... done src/x11: collecting...pax: Unable to access src/x11 (No such file or directory) pax: WARNING! These file names were not selected: src/x11 done src: collecting... replacing... done xsrc/top-level: collecting... replacing... done xsrc/external: collecting... replacing... done xsrc/local: collecting... replacing... done xsrc/xfree: collecting...pax: Unable to access xsrc/xfree (No such file or directory) pax: WARNING! These file names were not selected: xsrc/xfree done xsrc: collecting... replacing... done Updating release-9 src tree (netbsd-9): U doc/CHANGES-9.3 P external/bsd/libpcap/bin/Makefile Updating release-9 xsrc tree (netbsd-9): Updating release-9 tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat: collecting... replacing... done src/crypto: collecting... replacing... done src/dist: collecting... replacing... done src/distrib: collecting... replacing... done src/doc: collecting... replacing... done src/etc: collecting... replacing... done src/external: collecting... replacing... done src/extsrc: collecting... replacing... done src/games: collecting... replacing... done src/include: collecting... replacing... done src/lib: collecting... replacing... done src/libexec: collecting... replacing... done src/regress: collecting... replacing... done src/rescue: collecting... replacing... done src/sbin: collecting... replacing... done src/share: collecting... replacing... done src/sys: collecting... replacing... done src/tests: collecting... replacing... done src/tools: collecting... replacing... done src/usr.bin: collecting... replacing... done src/usr.sbin: collecting... replacing... done src/config: collecting...
Re: st.c update has broken dump multi-tape support
On Fri, Jun 11, 2021 at 07:10:16PM -, Michael van Elst wrote: > bl...@internode.on.net (Brett Lymn) writes: > > >Here is the patch that makes multi-tape dumps work for me: > > I'm currently testing > > http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/st.diff > That looks good to me. > It's a bit cumbersome to do multi-tape dumps if your disk has 11GB > data and the tape fits 40GB uncompressed. > Yes, that would be tedious. Perhaps you could create a test tape with a few backups on it and use mt to position to the end of them and dump to /dev/nrst? I will give the patch a go on my system, my data hoard at the moment spans 3 lto2 tapes. -- Brett Lymn -- Sent from my NetBSD device. "We are were wolves", "You mean werewolves?", "No we were wolves, now we are something else entirely", "Oh"
Re: st.c update has broken dump multi-tape support
mlel...@serpens.de (Michael van Elst) writes: >I'm currently testing >http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/st.diff Works for me: DUMP: Found /dev/rdk0 on / in /etc/fstab DUMP: Date of this level 0 dump: Sat Jun 12 00:24:45 2021 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rdk0 (/) to /dev/nrst0 DUMP: Label: none DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 11948298 tape blocks. DUMP: Volume 1 started at: Sat Jun 12 00:24:54 2021 DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: 18.18% done, finished in 0:22 DUMP: 39.37% done, finished in 0:15 DUMP: 56.67% done, finished in 0:11 DUMP: End of tape detected DUMP: Closing /dev/nrst0 DUMP: Volume 1 completed at: Sat Jun 12 00:44:21 2021 DUMP: Volume 1 took 0:19:27 DUMP: Volume 1 transfer rate: 7380 KB/s DUMP: Change Volumes: Mount volume #2 DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") yes DUMP: Volume 2 started at: Sat Jun 12 00:45:06 2021 DUMP: Volume 2 begins with blocks from inode 1448282 DUMP: 72.08% done, finished in 0:07 DUMP: 87.50% done, finished in 0:03 DUMP: 11948472 tape blocks on 2 volumes DUMP: Volume 2 completed at: Sat Jun 12 00:54:40 2021 DUMP: Volume 2 took 0:09:34 DUMP: Volume 2 transfer rate: 5812 KB/s DUMP: Date of this level 0 dump: Sat Jun 12 00:24:45 2021 DUMP: Date this dump completed: Sat Jun 12 00:54:40 2021 DUMP: Average transfer rate: 6596 KB/s DUMP: level 0 dump on Sat Jun 12 00:24:45 2021 DUMP: Closing /dev/nrst0 DUMP: DUMP IS DONE Can you please verify?
Re: st.c update has broken dump multi-tape support
bl...@internode.on.net (Brett Lymn) writes: >Here is the patch that makes multi-tape dumps work for me: I'm currently testing http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/st.diff It's a bit cumbersome to do multi-tape dumps if your disk has 11GB data and the tape fits 40GB uncompressed.
Re: st.c update has broken dump multi-tape support
On Fri, Jun 11, 2021 at 09:00:50AM +0200, Frank Kardel wrote: > Hi ! > > ST_EOM_PENDING is set in st_interpret_sense() > > - always for fixed block mode on EOM condition > > - if EWARN enabled and EOM condition for variable block size > yes indeed. Here is the patch that makes multi-tape dumps work for me: Index: st.c === RCS file: /cvsroot/src/sys/dev/scsipi/st.c,v retrieving revision 1.240 diff -u -r1.240 st.c --- st.c27 Dec 2019 09:41:51 - 1.240 +++ st.c11 Jun 2021 11:23:10 - @@ -1338,7 +1338,12 @@ mutex_exit(>sc_iolock); if (error != 0) { - bp->b_error = error; + /* if ststart1 returns EIO, don't return that if +* an EOM is pending otherwise multi-tape dumps +* will error instead of triggering a tape change. +*/ + if (!((error == EIO) && (st->flags & ST_EOM_PENDING))) + bp->b_error = error; bp->b_resid = bp->b_bcount; biodone(bp); } -- Brett Lymn -- Sent from my NetBSD device. "We are were wolves", "You mean werewolves?", "No we were wolves, now we are something else entirely", "Oh"
Re: st.c update has broken dump multi-tape support
Hi ! ST_EOM_PENDING is set in st_interpret_sense() - always for fixed block mode on EOM condition - if EWARN enabled and EOM condition for variable block size Frank. On 06/10/21 23:59, Brett Lymn wrote: On Thu, Jun 10, 2021 at 05:38:34PM +0200, Michael van Elst wrote: Sorry, it doesn't fix the EOM handling, just the biodone. mea culpa... I should take more time before replying... I still have to understand the EOM logic :) I will post up a diff later that appears to work for me. From what the code used to do and the description Frank posted EOM is indicated by a 0 length write with no error iff the early warning flag is set. I haven't checked but I ASSuME that ST_EOM_PENDING will only be set if the early warning flag is on.