Coverage for libs/sm/core/mpath_null.py: 73%

11 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2026-07-10 07:59 +0000

1# Copyright (C) Citrix Systems Inc. 

2# 

3# This program is free software; you can redistribute it and/or modify 

4# it under the terms of the GNU Lesser General Public License as published 

5# by the Free Software Foundation; version 2.1 only. 

6# 

7# This program is distributed in the hope that it will be useful, 

8# but WITHOUT ANY WARRANTY; without even the implied warranty of 

9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

10# GNU Lesser General Public License for more details. 

11# 

12# You should have received a copy of the GNU Lesser General Public License 

13# along with this program; if not, write to the Free Software Foundation, Inc., 

14# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 

15 

16DEVBYIDPATH = "/dev/disk/by-id" 

17 

18 

19def refresh(sid, npaths): 

20 return 

21 

22 

23def reset(sid, explicit_unmap=False): 

24 return 

25 

26 

27def activate(): 

28 return 

29 

30 

31def deactivate(): 

32 return 

33 

34 

35def path(SCSIid): 

36 return DEVBYIDPATH + "/scsi-" + SCSIid