Ticket #5235 (new defect)

Opened 4 years ago

Last modified 3 years ago

Detect when Sage is build on AFS and issue a warning

Reported by: mabshoff Owned by: mabshoff
Priority: major Milestone: sage-5.10
Component: build Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

From  http://groups.google.com/group/sage-devel/t/894d29e0bde4550c

> Yes, afs is a strange filessystem and might be the root cause of your 
> trouble, but that is far from certain at this point. 


No longer far from certain. The build completed without ANY problems, 
including getting past gnutls without error. This is not unprecedented 
but somewhat surprising nevertheless. Running make test now. 

Gedaliah 

AFS seems to be commonly used with RHEL 4 in some instituations. It has come up twice now.

Cheers,

Michael

Change History

comment:1 Changed 4 years ago by mabshoff

  • Status changed from new to assigned

comment:2 Changed 4 years ago by mabshoff

Gedaliah responded to my question:

> In case you have a shell code snipped that identifies that the current 
> working directory is on an AFS mount I would be happy to integrate it. 


This will work unless somebody very foolishly changed the afs mount 
point to something other that /afs. 
[[ $(pwd | cut -d'/' -f2) = 'afs' ]] && echo "we are in afs" 

Cheers,

Michael

comment:3 Changed 3 years ago by wjp

  • Report Upstream set to N/A

Should anyone want to do this, Sun's struct stat has a st_fstype field which gives the filesystem type of a file, so from C this might be easy to check.

Note: See TracTickets for help on using tickets.