Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. fprintf(stderr,"-->Mounting file system from base image...");
  2. if(mount("/mnt", mount_dir, NULL, MS_SHARED , NULL)){
  3. fprintf(stderr, "%s Failed..%mn",mount_dir);
  4. return -1;
  5. }else{
  6. fprintf(stderr,"Successn");
  7. }
  8. fprintf(stderr,"-->Remounting mount point as MS_PRIVATE...");
  9. if(mount(NULL, mount_dir, NULL, MS_REMOUNT | MS_PRIVATE, NULL)){
  10. fprintf(stderr,"Failed..%mn");
  11. return -1;
  12. }else{
  13. fprintf(stderr, "Success.n");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement