Commit d569264
libzfs: dynamically report auto-assigned drive letter as temporary property
When a pool is imported with driveletter=- (auto-assign), zfs_prop_get()
now checks the live mount table via libzfs_mnttab_find() each time the
driveletter property is queried. If the dataset is mounted on a letter
that differs from the stored value (or the stored value is "-"), the
actual letter is returned with source=ZPROP_SRC_TEMPORARY so it appears
as "temporary" in "zfs get driveletter" output without permanently
writing the letter back to the property.
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 36e0492 commit d569264
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3027 | 3027 | | |
3028 | 3028 | | |
3029 | 3029 | | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
3030 | 3067 | | |
3031 | 3068 | | |
3032 | 3069 | | |
| |||
0 commit comments