The full path is in the variable fullpath defined in the beginning of the do_mkdir
function. Also the access rights are on the variables listed in the code below
printf("New dir -> %s, ", fullpath);
printf( (bits & S_IRUSR) ? "r" : "-");
printf( (bits & S_IWUSR) ? "w" : "-");
printf( (bits & S_IXUSR) ? "x" : "-");
printf( (bits & S_IRGRP) ? "r" : "-");
printf( (bits & S_IWGRP) ? "w" : "-");
printf( (bits & S_IXGRP) ? "x" : "-");
printf( (bits & S_IROTH) ? "r" : "-");
printf( (bits & S_IWOTH) ? "w" : "-");
printf( (bits & S_IXOTH) ? "x\n" : "-\n");
Put this code in the end of the do_mkdir
just before the unlock_vnode(vp);
line and you are done!
Έχεις κάνει τα υπόλοιπα ερωτήματα??