@@ -68,8 +68,8 @@ def __str__(self) -> str:
6868 self ._escape ("destination" ),
6969 self .get ("type" , "nullfs" ),
7070 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 ) )
7373 ])
7474
7575 if self ["comment" ] is not None :
@@ -92,7 +92,7 @@ def __setitem__(
9292 dict .__setitem__ (self , key , FstabFsSpec (value ))
9393 elif key == "destination" :
9494 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" ]:
9696 dict .__setitem__ (self , key , value )
9797 else :
9898 raise KeyError (f"Invalid FstabLine key: { key } " )
@@ -299,8 +299,8 @@ def parse_lines(
299299 "destination" : libioc .Types .AbsolutePath (destination ),
300300 "type" : fragments [2 ],
301301 "options" : fragments [3 ],
302- "dump " : fragments [4 ],
303- "passnum " : fragments [5 ],
302+ "freq " : int ( fragments [4 ]) ,
303+ "passno " : int ( fragments [5 ]) ,
304304 "comment" : comment
305305 })
306306
@@ -354,8 +354,8 @@ def new_line(
354354 destination : str ,
355355 type : str = "nullfs" ,
356356 options : str = "ro" ,
357- dump : str = "0" ,
358- passnum : str = "0" ,
357+ freq : int = 0 ,
358+ passno : int = 0 ,
359359 comment : typing .Optional [str ]= None ,
360360 replace : bool = False ,
361361 auto_create_destination : bool = False ,
@@ -371,8 +371,8 @@ def new_line(
371371 "destination" : destination ,
372372 "type" : type ,
373373 "options" : options ,
374- "dump " : dump ,
375- "passnum " : passnum ,
374+ "freq " : freq ,
375+ "passno " : passno ,
376376 "comment" : comment
377377 })
378378
@@ -506,8 +506,8 @@ def maintenance_lines(self) -> typing.List[FstabMaintenanceLine]:
506506 ),
507507 options = "ro" ,
508508 type = "nullfs" ,
509- dump = "0" ,
510- passnum = "0" ,
509+ freq = 0 ,
510+ passno = 0 ,
511511 comment = self .AUTO_COMMENT_IDENTIFIER
512512 ))]
513513
@@ -543,8 +543,8 @@ def basejail_lines(self) -> typing.List[FstabBasejailLine]:
543543 "destination" : destination ,
544544 "type" : "nullfs" ,
545545 "options" : "ro" ,
546- "dump " : "0" ,
547- "passnum " : "0" ,
546+ "freq " : 0 ,
547+ "passno " : 0 ,
548548 "comment" : self .AUTO_COMMENT_IDENTIFIER
549549 }))
550550
0 commit comments