[cs631apue] whiteout question

zwang34 zwang34 at stevens.edu
Sun Sep 23 18:20:41 EDT 2012


Hello professor,

In the -F option, we should identify whiteout, but it seems there is no 
such option in stat function in Linux.
I did this:
#define S_IFWHT 160000 (this value is in stat(2))
if (file.st_mode & S_IFWHT)
//do something here..

It still doesn't work. What can I do?

-zeyang


More information about the cs631apue mailing list