site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=uZkq+bfGBGZiUipdkEpGixh64okbh4c6VnpzcdCOjjM=; b=JGas1V+Chp3ucLt734Gy3p1HNz8jXdnD3aXa0vL2X8XDV8tPf08h62KKF2cefroAYp Ea9W1VlBxWz60O9Pxz4DRwd5/mMBdHBeHQBRpw/LeIsuQdKMzUqUeEsBV+joFkhSRiKw nn0U+EK8NYSJaMXoUONT+TW0O8Q404om038RM= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=c94vBciDIJ9yezw5r8+LccmCoWzspSvfdUg5qiMDVUOnZFQKfXuaNj50XQGGMvMsXr plwyO/zvtZm4uyKxkJF2P0LlDdUNw6sCj1i4ayOx4qRQHKCwsN/5GQPKnLQWrYhd0gLU zH0jS6N7yb5DzwCl7EiuqRjn0amKroCT1Sn3o= 2009/1/9 John Michael Zorko <jmzorko@mac.com>:
Hello, all ...
I suspect that there is a way to programmatically determine using POSIX APIs whether a volume is local to the machine or a mount of a remote disk.
Local volumes should have MNT_LOCAL set in the f_flags field returned from statfs(8).
Can anyone illuminate me as to how, and will the same code work under Linux?
No, Linux struct statfs doesn't appear to have a f_flags field. -- James Peach | jorgar@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com