bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 11/17] xfs: remove all-but-probe FS-related code


From: Jim Meyering
Subject: [PATCH 11/17] xfs: remove all-but-probe FS-related code
Date: Fri, 27 May 2011 17:15:30 +0200

From: Jim Meyering <address@hidden>

---
 libparted/fs/xfs/Makefile.am |    1 +
 libparted/fs/xfs/xfs.c       |   11 -----------
 2 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/libparted/fs/xfs/Makefile.am b/libparted/fs/xfs/Makefile.am
index d5559c2..8e55052 100644
--- a/libparted/fs/xfs/Makefile.am
+++ b/libparted/fs/xfs/Makefile.am
@@ -1,3 +1,4 @@
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 partedincludedir       = -I$(top_srcdir)/include

 noinst_LTLIBRARIES     = libxfs.la
diff --git a/libparted/fs/xfs/xfs.c b/libparted/fs/xfs/xfs.c
index 21a0c03..9b9edc1 100644
--- a/libparted/fs/xfs/xfs.c
+++ b/libparted/fs/xfs/xfs.c
@@ -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,
 };
-- 
1.7.5.2.660.g9f46c




reply via email to

[Prev in Thread] Current Thread [Next in Thread]