DragonFly bugs List (threaded) for 2009-01
DragonFly BSD
DragonFly bugs List (threaded) for 2009-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1253] mount -p reports bogus errors in chroot


From: "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 31 Jan 2009 01:19:37 +0000

Stathis Kamperis <ekamperi@gmail.com> added the comment:

One could ask why mount -p needs /etc/fstab to list the *already* mounted
filesystems. This happens because device block name, mount point and mount flags
are stored inside the statfs structure (which is returned by getfsstat syscall),
but dump frequency and pass number of fsck are not. This means that mount -p
must open /etc/fstab, parse the lines and get the desired values for every
mounted filesystem.

Thats why simon you get 2 warnings for every mounted filesystem. One while
looking for freq and another one for passno.

The code path that interests us is I think the following:

for every mounted filesystem
   ---> putfsent
   --------> getfsspec
   --------------> setfsent [ opens etc/fstab, prints warning ]
   --------> getfsfile
   --------------> setfsent [ opens etc/fstab, prints warning ]

The reason that freq and passno values are printed, is that there are some
fallback values in the code.

Honestly I don't know how to fix this. The code is messy enough as it is and
adding more cornerstones would make it worse.

Regards,
Stathis

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1253>
_____________________________________________________



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]