Re: mdsl source & another metadata question
Re: mdsl source & another metadata question
- Subject: Re: mdsl source & another metadata question
- From: Anton Altaparmakov <email@hidden>
- Date: Mon, 14 Aug 2006 22:08:34 +0100 (BST)
On Mon, 14 Aug 2006, Jeffrey Ellis wrote:
> on 8/14/06 12:03 PM, Steve Checkoway <email@hidden> wrote:
> >> Also, is there a command line tool to get the symlink owner (Have I
> >> asked
> >> this before...? Maybe I'm getting punchy <g>)
> >
> > I'm not sure which you want but try this:
> >
> > $ ln -s /bin/ls .
> > $ stat ls
> > File: `ls' -> `/bin/ls'
> > Size: 7 Blocks: 8 IO Block: 4096 symbolic
> > link
> > Device: e000009h/234881033d Inode: 16988726 Links: 1
> > Access: (0755/lrwxr-xr-x) Uid: ( 1000/ steve) Gid: ( 100/ steve)
> > Access: 2006-08-13 19:51:06.000000000 -0700
> > Modify: 2006-08-13 19:51:06.000000000 -0700
> > Change: 2006-08-13 19:51:06.000000000 -0700
> > $ stat -L ls
> > File: `ls'
> > Size: 32460 Blocks: 64 IO Block: 4096 regular
> > file
> > Device: e000009h/234881033d Inode: 7415919 Links: 1
> > Access: (0555/-r-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ wheel)
> > Access: 2006-08-13 05:23:58.000000000 -0700
> > Modify: 2005-03-21 14:49:19.000000000 -0800
> > Change: 2005-05-10 03:35:30.000000000 -0700
> >
> > --
> > Steve Checkoway
>
> Hi, Steve--
>
> My output from stat looks very different from yours. Here's what I'm
> getting:
His output looks like Linux output. You can get something simillar in OSX
using the -x switch, i.e. "stat -x ls" and "stat -xL ls". Note you still
only see "ls" and never "/bin/ls" in OSX but you are told different inode
numbers and the file type is "Regular File" and "Symbolic Link" in the
other.
Best regards,
Anton
> $ ln -s /bin/ls .
> $ stat ls
> 234881059 923574 lrwxr-xr-x 1 jeffrey jeffrey 0 7 "Aug 14 13:52:58 2006"
> "Aug 14 13:52:58 2006" "Aug 14 13:52:58 2006" 4096 8 0 ls
> $ stat -L ls
> 234881059 612750 -r-xr-xr-x 1 root wheel 0 32460 "Aug 10 14:57:01 2006" "Mar
> 21 14:49:19 2005" "Jun 26 03:33:30 2006" 4096 64 0 ls
>
> What am I doing wrong?
>
> All My Best,
> Jeffrey
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden