mount 관련 질문입니다.

MythRab의 이미지

C 프로그램상에서 device가 mount 된 상태인지 아닌지 알 수 있는 명령어는 없나요.
찾는데 잘 안찾아지네요... ㅡㅡ
부탁합니다.

세벌의 이미지

Necromancer의 이미지

/proc/mounts 파일을 read()하면 될겁니다.

Written By the Black Knight of Destruction

MythRab의 이미지

감사합니다.
매번 도움만 얻어가네요...
저도 언젠가는 ^^

Heading, heading again, again, ... ㅜㅜ 피난다