@@ -68,8 +68,8 @@ def __str__(self) -> str:
68
68
self ._escape ("destination" ),
69
69
self .get ("type" , "nullfs" ),
70
70
self .get ("options" , "ro" ),
71
- self .get ("dump " , "0" ),
72
- self .get ("passnum " , "0" )
71
+ str ( self .get ("freq " , 0 ) ),
72
+ str ( self .get ("passno " , 0 ) )
73
73
])
74
74
75
75
if self ["comment" ] is not None :
@@ -92,7 +92,7 @@ def __setitem__(
92
92
dict .__setitem__ (self , key , FstabFsSpec (value ))
93
93
elif key == "destination" :
94
94
dict .__setitem__ (self , key , libioc .Types .AbsolutePath (value ))
95
- elif key in ["type" , "options" , "dump " , "passnum " , "comment" ]:
95
+ elif key in ["type" , "options" , "freq " , "passno " , "comment" ]:
96
96
dict .__setitem__ (self , key , value )
97
97
else :
98
98
raise KeyError (f"Invalid FstabLine key: { key } " )
@@ -299,8 +299,8 @@ def parse_lines(
299
299
"destination" : libioc .Types .AbsolutePath (destination ),
300
300
"type" : fragments [2 ],
301
301
"options" : fragments [3 ],
302
- "dump " : fragments [4 ],
303
- "passnum " : fragments [5 ],
302
+ "freq " : int ( fragments [4 ]) ,
303
+ "passno " : int ( fragments [5 ]) ,
304
304
"comment" : comment
305
305
})
306
306
@@ -354,8 +354,8 @@ def new_line(
354
354
destination : str ,
355
355
type : str = "nullfs" ,
356
356
options : str = "ro" ,
357
- dump : str = "0" ,
358
- passnum : str = "0" ,
357
+ freq : int = 0 ,
358
+ passno : int = 0 ,
359
359
comment : typing .Optional [str ]= None ,
360
360
replace : bool = False ,
361
361
auto_create_destination : bool = False ,
@@ -371,8 +371,8 @@ def new_line(
371
371
"destination" : destination ,
372
372
"type" : type ,
373
373
"options" : options ,
374
- "dump " : dump ,
375
- "passnum " : passnum ,
374
+ "freq " : freq ,
375
+ "passno " : passno ,
376
376
"comment" : comment
377
377
})
378
378
@@ -506,8 +506,8 @@ def maintenance_lines(self) -> typing.List[FstabMaintenanceLine]:
506
506
),
507
507
options = "ro" ,
508
508
type = "nullfs" ,
509
- dump = "0" ,
510
- passnum = "0" ,
509
+ freq = 0 ,
510
+ passno = 0 ,
511
511
comment = self .AUTO_COMMENT_IDENTIFIER
512
512
))]
513
513
@@ -543,8 +543,8 @@ def basejail_lines(self) -> typing.List[FstabBasejailLine]:
543
543
"destination" : destination ,
544
544
"type" : "nullfs" ,
545
545
"options" : "ro" ,
546
- "dump " : "0" ,
547
- "passnum " : "0" ,
546
+ "freq " : 0 ,
547
+ "passno " : 0 ,
548
548
"comment" : self .AUTO_COMMENT_IDENTIFIER
549
549
}))
550
550
0 commit comments