Commit 86a988b
committed
CP-10986: Return read caching status on VDI.attach
Returning the status of read caching during VDI Attach is a bit tricky.
This is because the SM only works out whether or not O_DIRECT should be
used during VDI Activate (which happens after attach). This is determined by a
number of elements: licensing, override parameters or VDI Type, etc.
This patch isolates this check in a separate (private) method and
caches it. Both VDI attach and activate use this method to work out whether
tapdisk will be enabling read caching or not.
We also add this information to the return struct in VDI.attach as
requested by the ticket.
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Acked-by: Felipe Franciosi <felipe@paradoxo.org>
Github: closes #242 on xapi-project/sm1 parent 38c9a0e commit 86a988b
1 file changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
| 980 | + | |
980 | 981 | | |
981 | 982 | | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
982 | 1003 | | |
983 | 1004 | | |
984 | 1005 | | |
| |||
1469 | 1490 | | |
1470 | 1491 | | |
1471 | 1492 | | |
| 1493 | + | |
1472 | 1494 | | |
1473 | 1495 | | |
1474 | 1496 | | |
| |||
1562 | 1584 | | |
1563 | 1585 | | |
1564 | 1586 | | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
| 1587 | + | |
1571 | 1588 | | |
1572 | 1589 | | |
1573 | 1590 | | |
| |||
0 commit comments