OSDN Git Service

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

index e913c2d..c63e8d2 100644 (file)
@@ -1,3 +1,4 @@
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 partedincludedir       = -I$(top_srcdir)/include
 
 noinst_LTLIBRARIES     = libufs.la
index d082b1d..3dc198e 100644 (file)
@@ -242,21 +242,6 @@ ufs_probe_hp (PedGeometry* geom)
        return NULL;
 }
 
-#ifndef DISCOVER_ONLY
-static int
-ufs_clobber (PedGeometry* geom)
-{
-       char    buf[1536];
-
-       if (!ped_geometry_read (geom, buf, 16, 3))
-               return 0;
-
-       memset (buf, 0, sizeof(struct ufs_super_block));
-
-       return ped_geometry_write (geom, buf, 16, 3);
-}
-#endif /* !DISCOVER_ONLY */
-
 static PedFileSystemOps ufs_ops_sun = {
        probe:          ufs_probe_sun,
 };