LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting with MS_MANDLOCK flag (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-with-ms_mandlock-flag-614511/)

davidbatelu 01-18-2008 07:23 AM

Mounting with MS_MANDLOCK flag
 
Hi,
ive read all the current posts and i dont think this thread exists... or even if it does it passed my notice....
ive been trying for a while to mount the root filesystem with the MS_MANDLOCK flag set(for mandatory). ive already tried a function to do so, namely

#include <sys/mount.h>

mount("/dev/hdb", "/cdrom", ext2, MS_MANDLOCK | MS_REMOUNT, "");


but im not too sure this works. is there anyway of testing the superblock for these flags, or any other method to mount the system with mandatory locks. also is there anyway of modifyind the fstab to always mount the root fs with manlocks?


All times are GMT -5. The time now is 01:28 AM.