Skip to content
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

Merged
merged 4 commits into from
Feb 14, 2019

Conversation

mynktl
Copy link
Member

@mynktl mynktl commented Feb 13, 2019

Changes:

  1. [DE249] Destroying all snapshot of rebuild clone dataset once rebuild completes

  2. Changes in zfs stats output.

    ...
    isIOAckSenderCreated: 1
    isIOReceiverCreated: 1
    ...
    Earlier it was :
    ...
    isIOAckSenderCreated: -1
    isIOReceiverCreated: -1
    ...

Signed-off-by: mayank mayank.patel@cloudbyte.com

mayank and others added 2 commits February 13, 2019 17:03
… 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;

Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

mayank added 2 commits February 13, 2019 19:52
@codecov-io
Copy link

Codecov Report

Merging #199 into zfs-0.7-release will increase coverage by 0.02%.
The diff coverage is 95.23%.

Impacted file tree graph

@@                 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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14b6742...7b1fd3f. Read the comment docs.

Copy link
Member

@pawanpraka1 pawanpraka1 left a 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) &&

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?

Copy link
Member Author

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)

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'?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link

@vishnuitta vishnuitta left a 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

@vishnuitta
Copy link

This need to be cherry-picked as well @mynktl

mynktl added a commit to mynktl/cstor that referenced this pull request Feb 19, 2019
… dataset once rebuild completes (mayadata-io#199)

Two changes in the `zfs stats` output format

Signed-off-by: mayank <mayank.patel@cloudbyte.com>
vishnuitta pushed a commit that referenced this pull request Feb 19, 2019
* [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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants