[daip] OBIT
Bill Cotton
bcotton at nrao.edu
Mon Aug 27 15:20:50 EDT 2012
Eric,
I've made the changes which I think will fix these problems and a
simple test looks OK. However, such changes have ways of biting you
in unexpected ways. If all goes well, the new version should be there
tomorrow AM.
-Bill
"EG" == Eric Greisen <egreisen at nrao.edu> writes:
EG> I have encountered 2 issues with OBIT:
EG> 1. The file sizes are exact in UV data files. Thus they are not an
EG> integer times 1 kilobyte as assumed in all of AIPS. I ran the task
EG> MOVE to copy a data set - it uses the file size as returned by ZEXIST
EG> and it failed to copy 832 bytes. When I ran UVCOP instead it made a
EG> file 5120 bytes larger than the one made by MOVE or 4288 than the one
EG> made by OBIT. It would be convenient if OBIT rounded file sizes up to N
EG> * 1024 bytes.
EG> 2. The permissions on the files written by OBIT are still
EG> -rw-r--r--
EG> which makes it hard for me to read a user's files. I have looked at the
EG> AIPS file permissions things. AIPS sets umask 002 which means that
EG> "other" will not have write permission. In ZCREA2 we do
EG> if ((fd = open
EG> (pathname, O_CREAT | O_EXCL | O_WRONLY, PMODE)) == -1) {
EG> and
EG> #define PMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
EG> which would put on rw for everybody (except umask stops the other write).
EG> Point 2 affects me mostly and so is not so urgent but you might wish to
EG> consider it. Point 1 could be bad for users although it is not likely
EG> to be.
EG> Thanks
EG> Eric
More information about the Daip
mailing list