mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
Add an option for setting the set uuid
This commit is contained in:
parent
9e6daaffa7
commit
4f88b8efe2
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
make-bcache
|
||||||
|
probe-bcache
|
||||||
|
.*
|
@ -65,7 +65,8 @@ void usage()
|
|||||||
" -b bucket size\n"
|
" -b bucket size\n"
|
||||||
" -w block size (hard sector size of SSD, often 2k)\n"
|
" -w block size (hard sector size of SSD, often 2k)\n"
|
||||||
" -j journal size, in buckets\n"
|
" -j journal size, in buckets\n"
|
||||||
" -U UUID\n");
|
" -U UUID\n"
|
||||||
|
" -S Set UUID\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,6 +106,12 @@ int main(int argc, char **argv)
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'S':
|
||||||
|
if (uuid_parse(optarg, sb.set_uuid)) {
|
||||||
|
printf("Bad uuid\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sb.block_size)
|
if (!sb.block_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user