From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e97701f41b64ba63 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-02-04 08:47:02 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mknarasimha@hotmail.com (Narasimha) Newsgroups: comp.unix.tru64 Subject: Re: ADVFS fileset information Date: 4 Feb 2002 08:47:01 -0800 Organization: http://groups.google.com/ Message-ID: References: <010220021015379536%harris@zk3.dec.com> NNTP-Posting-Host: 168.159.29.83 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1012841222 30576 127.0.0.1 (4 Feb 2002 16:47:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 Feb 2002 16:47:02 GMT Xref: archiver1.google.com comp.unix.tru64:6712 Hi Bob, Thanks for the information. Regarding the showfile on each file of the fileset: Can we determine the starting and ending offset on a device for the fileset by doing a fileshow on the files in the fileset? My intent is to get the starting offset of the fileset extents and the size of the extents. Can this be accomplished by the fcntl call(with F_GETMAP). The problem is that the fcntl call will not account for the advfs fileset as a whole and just work for the UFS directory which is the mountpoint. It would be great if you could clarify on the showfile and vbmtpg. Thanks, Narasimha. Bob Harris wrote in message news:<010220021015379536%harris@zk3.dec.com>... > In article , Narasimha > wrote: > > X Hi, > X > X I am working on the ADVFS filesystem and was interested to know if > X there is any way to get the fileset information in terms of the > X extents/disks that the fileset spans over. ...................... > > Nothing that is easy. A fileset is really nothing more than a name > space. You might as well just walk the director tree and use a > showfile -x on each file in the fileset. There are no system calls > (neither public nor private) that output that information. > > You could play with nvbmtpg (see the man page), but parsing the output > of that would be just about as much work as parsing showfile -x option > for each file, plus nvbmtpg analysis would require more reverse > engineering on your part. > > X .......................................... Also there is a shared > X library of advfs system calls libmsfs.so which has a lot of advfs > X related calls. Any leads on where to find documentation or prototypes > X for these calls would be great. Thanks in advance. > > The only ones that I know of which are documented are the ones > mentioned in the "man 4 advfs" man page, and these are APIs to aid > backup utilities. > > Plus there is fcntl(fd,F_GETMAP,arg) to fetch a file's extent map (used > to properly restore sparse holes in backed up files). I supposed you > could use F_GETMAP instead of showfile to collect extent information on > a fileset. > > Bob Harris