05-05-2009
33,
0
Join Date: Oct 2008
Last Activity: 21 August 2009, 2:27 AM EDT
Posts: 33
Thanks Given: 0
Thanked 0 Times in 0 Posts
Comparison doubt..
Hi,
/etc/fstab file contains:
==================
cluster_root#root / advfs rw 0 1
cluster_usr#usr /usr advfs rw 0 2
cluster_var#var /var advfs rw 0 2
/proc /proc procfs rw 0 0
t_d#t_f /t_m advfs rw 0 2
/dev/disk/dsk1c /ufs_mnt ufs rw,userquota=/advfs_mnt/quota.user 1 2
test#test /advfs_mnt advfs rw,userquota=/ufs_mnt/quota.advfs 0 2
Need to check whether quota file(say quota.user and quota.group) is within the same fileset or not.
Second argument of /etc/fstab file is nothing but fileset location and 4th argument of /etc/fstab file is also fileset location.So need to compare 2nd and 4th argument of /etc/fstab file.If both locations are same then we can confirm that quota files are in same fileset).
Consider below situation say,
1./dev/disk/dsk1c /ufs_mnt ufs rw,userquota=/advfs_mnt/quota.user 1 2
2.test#test /advfs_mnt advfs rw,userquota=/ufs_mnt/quota.advfs 0 2
Second argument of Line1 is /ufs_mnt and 4th argument is rw,userquota=/advfs_mnt/quota.user.In this case both locations are different i.e (/ufs_mnt and /advfs_mnt).
Could you please let me know how to compare 2nd and 4th argument in /etc/fstab file.
Thanks,
Mansa