OSDN Git Service

xfs: remove all-but-probe FS-related code
authorJim Meyering <meyering@redhat.com>
Mon, 16 May 2011 13:47:02 +0000 (15:47 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 27 May 2011 15:07:46 +0000 (17:07 +0200)
libparted/fs/xfs/Makefile.am
libparted/fs/xfs/xfs.c

index d5559c2..8e55052 100644 (file)
@@ -1,3 +1,4 @@
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 partedincludedir       = -I$(top_srcdir)/include
 
 noinst_LTLIBRARIES     = libxfs.la
index 21a0c03..9b9edc1 100644 (file)
@@ -69,17 +69,6 @@ xfs_probe (PedGeometry* geom)
        return NULL;
 }
 
-#ifndef DISCOVER_ONLY
-static int
-xfs_clobber (PedGeometry* geom)
-{
-       char    buf[512];
-
-       memset (buf, 0, 512);
-       return ped_geometry_write (geom, buf, XFS_SB_DADDR, 1);
-}
-#endif /* !DISCOVER_ONLY */
-
 static PedFileSystemOps xfs_ops = {
        probe:          xfs_probe,
 };