mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
cephfs: remove unused Credentials argument from createSnapshot()
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
1d8cc75282
commit
7c580af412
@ -45,7 +45,7 @@ const (
|
|||||||
|
|
||||||
func createCloneFromSubvolume(ctx context.Context, volID, cloneID volumeID, volOpt, parentvolOpt *volumeOptions, cr *util.Credentials) error {
|
func createCloneFromSubvolume(ctx context.Context, volID, cloneID volumeID, volOpt, parentvolOpt *volumeOptions, cr *util.Credentials) error {
|
||||||
snapshotID := cloneID
|
snapshotID := cloneID
|
||||||
err := parentvolOpt.createSnapshot(ctx, cr, snapshotID, volID)
|
err := parentvolOpt.createSnapshot(ctx, snapshotID, volID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.ErrorLog(ctx, "failed to create snapshot %s %v", snapshotID, err)
|
util.ErrorLog(ctx, "failed to create snapshot %s %v", snapshotID, err)
|
||||||
return err
|
return err
|
||||||
|
@ -587,7 +587,7 @@ func doSnapshot(ctx context.Context, volOpt *volumeOptions, subvolumeName, snaps
|
|||||||
volID := volumeID(subvolumeName)
|
volID := volumeID(subvolumeName)
|
||||||
snapID := volumeID(snapshotName)
|
snapID := volumeID(snapshotName)
|
||||||
snap := snapshotInfo{}
|
snap := snapshotInfo{}
|
||||||
err := volOpt.createSnapshot(ctx, cr, snapID, volID)
|
err := volOpt.createSnapshot(ctx, snapID, volID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.ErrorLog(ctx, "failed to create snapshot %s %v", snapID, err)
|
util.ErrorLog(ctx, "failed to create snapshot %s %v", snapID, err)
|
||||||
return snap, err
|
return snap, err
|
||||||
|
@ -45,7 +45,7 @@ type cephfsSnapshot struct {
|
|||||||
ReservedID string
|
ReservedID string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (vo *volumeOptions) createSnapshot(ctx context.Context, cr *util.Credentials, snapID, volID volumeID) error {
|
func (vo *volumeOptions) createSnapshot(ctx context.Context, snapID, volID volumeID) error {
|
||||||
fsa, err := vo.conn.GetFSAdmin()
|
fsa, err := vo.conn.GetFSAdmin()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.ErrorLog(ctx, "could not get FSAdmin: %s", err)
|
util.ErrorLog(ctx, "could not get FSAdmin: %s", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user