[OpenAFS] Why does 'fs rmm' not resolve symlinks?
Arne Wiebalck
arne.wiebalck@cern.ch
Wed, 21 Apr 2010 15:41:01 +0200
--------------ms050608010207020204030108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Dear list,
recently I noticed
$ mkdir a
$ mkdir a/b
$ ln -s a/b l
$ fs mkm a/b/m volume
$ fs lsm a/b/m
'a/b/m' is a mount point for volume '#volume'
$ fs lsm l/m
'l/m' is a mount point for volume '#volume'
$ fs rmm l/m
fs:'l/m': Not a directory
$ fs rmm a/b/m
$
Looking into the code of fs I see that 'lsm' resolves
symlinks before the stat pioctl, while 'rmm' does not.
Is there any particular reason for this?
TIA,
Arne
--------------ms050608010207020204030108
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIVbDCC
Bi4wggUWoAMCAQICCmEPqkwAAAAAAAMwDQYJKoZIhvcNAQEFBQAwQTESMBAGCgmSJomT8ixk
ARkWAmNoMRQwEgYKCZImiZPyLGQBGRYEY2VybjEVMBMGA1UEAxMMQ0VSTiBSb290IENBMB4X
DTA2MTAwMzA5MzYxM1oXDTE2MTAwMzA5NDYxM1owWTESMBAGCgmSJomT8ixkARkWAmNoMRQw
EgYKCZImiZPyLGQBGRYEY2VybjEtMCsGA1UEAxMkQ0VSTiBUcnVzdGVkIENlcnRpZmljYXRp
b24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwdFGqthhWlgU
OSZ6C6hReNEVGzbjf2IQgxo7/rOfOQHZH3krQPQ37fqFroEr46PrruymZ/U+QAzmESZQ4Z+n
CfBhm7cEi0TIhihHd4cEPaPxawGRT9Ck7BBk9za8TUljF6c/JodnIcmIrpbazEbSAS1KE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