Can anyone help me with this?
This is the code:
ret = mount(DEVICE_FILE, MOUNT_DIR, "vfat", MS_MGC_VAL, NULL);
I have all of the values figured out except MS_MGC_VAL. It is an unsigned long int passed to the mount function and is used for a read/write flag.
This is the error:
[Error] Can not Open conftest
[Error] Testing all
/dev/ram0 on / type ext2 (rw)
/proc on /proc type proc (rw)
none on /dev/pts type devpts (rw)
/dev/hda1 on /flash type vfat (rw)
As you can see the drive does get mounted in the code. I can read and write to it after the program has exited. The drive was not mounted before executing the program.
I can't figure out what this value should be set at or if this is the problem.
Thanks for any help,