From owner-svn-src-all@FreeBSD.ORG Thu Jul 14 13:16:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E275B1065672; Thu, 14 Jul 2011 13:16:10 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 689E88FC13; Thu, 14 Jul 2011 13:16:10 +0000 (UTC) Received: by yxl31 with SMTP id 31so108273yxl.13 for ; Thu, 14 Jul 2011 06:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=0mZ3k8YEc9iKwLto4dlWGcLD0oyMOELJfy9xJ7zyoW8=; b=GnEBxL9/qp5XeYAaB6N6xH9DfXnQGQYITv2I2sEvkOh6P+SxKWcas/StypKUfcMAUA humLFLWylvQFaaMVCQuPbFVKUjSnZMP11Bt7Wq7P4Yhq7+gp416IKyQeFvManxT9/o3n gKHN+VbgTpGCNu9ErXdDZwjJElaJMIRQYPMr4= Received: by 10.101.108.3 with SMTP id k3mr2128509anm.129.1310647557098; Thu, 14 Jul 2011 05:45:57 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.100.43.1 with HTTP; Thu, 14 Jul 2011 05:45:17 -0700 (PDT) In-Reply-To: <201107140806.p6E8632K019924@svn.freebsd.org> References: <201107140806.p6E8632K019924@svn.freebsd.org> From: Ivan Voras Date: Thu, 14 Jul 2011 14:45:17 +0200 X-Google-Sender-Auth: qEB449bm6oaDvNJtk1s_MR75niw Message-ID: To: Xin LI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r224004 - head/sbin/dumpfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2011 13:16:11 -0000 On 14 July 2011 10:06, Xin LI wrote: > =C2=A0int > +dumpfsid(void) > +{ > + > + =C2=A0 =C2=A0 =C2=A0 printf("/dev/ufsid/%x%x\n", afs.fs_id[0], afs.fs_i= d[1]); > + =C2=A0 =C2=A0 =C2=A0 return 0; > +} Actually, glabel generates the label as 117 snprintf(label, size, "%08x%08x", fs->fs_id[0], 118 fs->fs_id[1]); Also, there is a constant for the /dev path in paths.h...