diff --git a/lib/utilities.c b/lib/utilities.c index e22f616a..d59dd2f0 100644 --- a/lib/utilities.c +++ b/lib/utilities.c @@ -588,7 +588,7 @@ static bool fs_supports_reflinks(char *fstype, char *mountpoint) { } if(strcmp(fstype, "xfs")==0) { /* xfs *might* support reflinks...*/ - char *cmd = g_strdup_printf("xfs_info '%s' | grep -q 'reflink=1'", mountpoint); + char *cmd = g_strdup_printf("xfs_info '%s' 2>/dev/null | grep -q 'reflink=1'", mountpoint); int res = system(cmd); g_free(cmd); return(res==0);