Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
put bdrv below main SFS
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jan 16, 2022
1 parent ef3c9c4 commit 62e6efa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frugalify.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,15 @@ static int sfscmp(const void *a, const void *b)
else
bbase = bs;

m = strncmp(abase, "bdrv_", sizeof("bdrv_") - 1);
n = strncmp(bbase, "bdrv_", sizeof("bdrv_") - 1);

if ((m == 0) && (n != 0))
return 1;

if ((m != 0) && (n == 0))
return -1;

m = strncmp(abase, "puppy_", sizeof("puppy_") - 1);
n = strncmp(bbase, "puppy_", sizeof("puppy_") - 1);

Expand Down

0 comments on commit 62e6efa

Please sign in to comment.