Bug 1166060
| Summary: | nfs: mount command the mount of symlink dir as with original dir. | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Saurabh <saujain> |
| Component: | gluster-nfs | Assignee: | Niels de Vos <ndevos> |
| Status: | CLOSED NOTABUG | QA Contact: | storage-qa-internal <storage-qa-internal> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.0 | CC: | jthottan, mzywusko, skoduri |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-29 12:17:11 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Saurabh
2014-11-20 10:56:06 UTC
The mount command will show the contents in /etc/mtab which is a symlink to /proc/mounts so it can't be updated by user space utilities and what you see is constructed from the kernel VFS mount data structures when /proc/mounts is accessed. That means when listing it's contents you see things that are actually mounted. And, when mounting, the kernel will attempt to resolve the paths to a directory (or device file, depending on parameter) as that's what's required for mounting. Those resolved paths is what the kernel will report when /proc/mounts accessed. In fact, this works fine for me: # mount -t nfs -o vers=3 vm100-004:/one-brick/symlink.lnk /mnt # mount ... vm100-004:/one-brick/symlink.lnk on /mnt type nfs (rw,vers=3,addr=172.31.100.4) # df -P /mnt Filesystem 1024-blocks Used Available Capacity Mounted on vm100-004:/one-brick/symlink.lnk 499712 133120 329728 29% /mnt # umount /mnt # mount -t glusterfs vm100-004:/one-brick /mnt # ls -l /mnt/ ... drwxr-xr-x. 2 root root 4096 Dec 17 19:40 subdir.d lrwxrwxrwx. 1 root root 8 Dec 17 19:40 symlink.lnk -> subdir.d ... Would this issue be a duplicate of Bug 1166051? As mentioned in the comment#2, this is expected behaviour. Closing the bug. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |