-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DE249] Destroying all snapshot of rebuild clone dataset once rebuild completes #199
Conversation
… completes - Changes in `zfs stats` output. ... isIOAckSenderCreated: 1 isIOReceiverCreated: 1 ... Earlier it was : ... isIOAckSenderCreated: -1 isIOReceiverCreated: -1 ... Signed-off-by: mayank <mayank.patel@cloudbyte.com>
char snapname[MAXNAMELEN]; | ||
objset_t *os = zv->zv_objset; | ||
uint64_t obj = 0, cookie = 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put a null check for zv.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Signed-off-by: mayank <mayank.patel@cloudbyte.com>
Codecov Report
@@ Coverage Diff @@
## zfs-0.7-release #199 +/- ##
===================================================
+ Coverage 52.74% 52.77% +0.02%
===================================================
Files 240 240
Lines 78218 78201 -17
===================================================
+ Hits 41258 41268 +10
+ Misses 36960 36933 -27 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
break; | ||
} | ||
|
||
if (!(strcmp(snapname, REBUILD_SNAPSHOT_SNAPNAME) == 0) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use internal_snapshot() here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal_snapshot
is from libzrepl. So, we cannot use it here unless we link libzpool with libzrepl.
* on a dataset | ||
*/ | ||
int | ||
uzfs_destroy_internal_all_snap(zvol_state_t *zv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name change to 'uzfs_destroy_all_internal_snapshots'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes are good.. just minor comments
This need to be cherry-picked as well @mynktl |
… dataset once rebuild completes (mayadata-io#199) Two changes in the `zfs stats` output format Signed-off-by: mayank <mayank.patel@cloudbyte.com>
* [DE249]fix(zrepl): destroying all internal snapshots of rebuild clone dataset once rebuild completes (#199) * [TC57] fix(stale clone): delete stale volume in timer fn and its test cases (#200) * fix(memleak): freeing string in error case in uzfs_zinfo_destroy_stale_clone (#201) Signed-off-by: mayank <mayank.patel@cloudbyte.com>
Changes:
[DE249] Destroying all snapshot of rebuild clone dataset once rebuild completes
Changes in
zfs stats
output....
isIOAckSenderCreated: 1
isIOReceiverCreated: 1
...
Earlier it was :
...
isIOAckSenderCreated: -1
isIOReceiverCreated: -1
...
Signed-off-by: mayank mayank.patel@cloudbyte.com