Date: Tue, 17 Feb 2004 08:35:17 -0800 (PST) From: Nate Lawson <nate@root.org> To: Greg Lehey <grog@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/mount Makefile mount.c Message-ID: <20040217083328.G29569@root.org> In-Reply-To: <20040217084308.152FE16A555@hub.freebsd.org> References: <20040217084308.152FE16A555@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 17 Feb 2004, Greg Lehey wrote: > FreeBSD src repository > > Modified files: > sbin/mount Makefile mount.c > Log: > Report the difference between ufs and ufs2. > > Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com> > > Revision Changes Path > 1.14 +2 -0 src/sbin/mount/Makefile > 1.64 +14 -3 src/sbin/mount/mount.c > > --- src/sbin/mount/mount.c:1.63 Mon Feb 2 20:03:19 2004 > +++ src/sbin/mount/mount.c Tue Feb 17 00:43:05 2004 > @@ -514,10 +519,16 @@ > int flags, i; > struct opt *o; > struct passwd *pw; > + struct uufsd disk; > > (void)printf("%s on %s (%s", sfp->f_mntfromname, sfp->f_mntonname, > sfp->f_fstypename); > > + if (strncmp(sfp->f_fstypename, "ufs", 3) == 0) { > + ufs_disk_fillout(&disk, sfp->f_mntonname); > + printf("%s", (disk.d_ufs == 2) ? "2" : ""); > + } > + A little less obfuscated would be: if (disk.d_ufs == 2) printf("2"); -Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040217083328.G29569>