]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - repair/da_util.c
xfs_scrub: reduce fsmap activity for media errors
[thirdparty/xfsprogs-dev.git] / repair / da_util.c
index 1450767fba08931771141f15db5fca5412ff14db..8c818ea1a9e77b243f742e735816f2ec0033d5dd 100644 (file)
 #include "bmap.h"
 #include "da_util.h"
 
-/*
- * takes a name and length (name need not be null-terminated)
- * and returns 1 if the name contains a '/' or a \0, returns 0
- * otherwise
- */
-int
-namecheck(char *name, int length)
-{
-       char *c;
-       int i;
-
-       ASSERT(length < MAXNAMELEN);
-
-       for (c = name, i = 0; i < length; i++, c++) {
-               if (*c == '/' || *c == '\0')
-                       return 1;
-       }
-
-       return 0;
-}
-
 /*
  * the cursor gets passed up and down the da btree processing
  * routines.  The interior block processing routines use the