public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Jaeger <aj@suse.de>
To: Richard Henderson <rth@twiddle.net>
Cc: libc-hacker@sourceware.org
Subject: Re: Patch to handle cgroup and btrfs filesystems
Date: Fri, 01 Oct 2010 19:49:00 -0000	[thread overview]
Message-ID: <201010012149.16162.aj@suse.de> (raw)
In-Reply-To: <4CA5FDA4.2060705@twiddle.net>

On Friday 01 October 2010 17:26:28 Richard Henderson wrote:
> On 09/30/2010 09:32 PM, Andreas Jaeger wrote:
> >  /* Constant that identifies the `bfs' filesystem.  */
> >  #define BFS_MAGIC		0x1BADFACE
> > 
> > +/* Constant that identifies the `btrfs' filesystem.  */
> > +#define BTRFS_SUPER_MAGIC	0x1BADFACE
> > +
> > +/* Constant that identifies the `cgroup' filesystem.  */
> > +#define CGROUP_SUPER_MAGIC	0x1BADFACE
> 
> 3 identical magic's can't be put into the same switch
> statements.  How did this compile for you?

I tested the wrong tree, not sure how emacs tricked me, I copied the values ;-(

thanks for noticing, here's the fix.  This time tested with the right tree,
Andreas

2010-10-01  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Fix value.
	(CGROUP_SUPER_MAGIC): Likewise.

diff --git a/sysdeps/unix/sysv/linux/linux_fsinfo.h b/sysdeps/unix/sysv/linux/linux_fsinfo.h
index 8efbdea..b671d2c 100644
--- a/sysdeps/unix/sysv/linux/linux_fsinfo.h
+++ b/sysdeps/unix/sysv/linux/linux_fsinfo.h
@@ -38,10 +38,10 @@
 #define BFS_MAGIC		0x1BADFACE
 
 /* Constant that identifies the `btrfs' filesystem.  */
-#define BTRFS_SUPER_MAGIC	0x1BADFACE
+#define BTRFS_SUPER_MAGIC	0x9123683E
 
 /* Constant that identifies the `cgroup' filesystem.  */
-#define CGROUP_SUPER_MAGIC	0x1BADFACE
+#define CGROUP_SUPER_MAGIC	0x27e0eb
 
 /* Constant that identifies the `coda' filesystem.  */
 #define CODA_SUPER_MAGIC	0x73757245


-- 
 Andreas Jaeger, Program Manager openSUSE,  aj@{novell.com,opensuse.org}
  Twitter: jaegerandi | Identica: jaegerandi
   SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
    Maxfeldstr. 5, 90409 Nürnberg, Germany
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

      reply	other threads:[~2010-10-01 19:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01  4:33 Andreas Jaeger
2010-10-01 15:26 ` Richard Henderson
2010-10-01 19:49   ` Andreas Jaeger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201010012149.16162.aj@suse.de \
    --to=aj@suse.de \
    --cc=libc-hacker@sourceware.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).