Bug 449330
Summary: | stat() syscall on a file returns id of diapered device in st_dev | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Mark Hlawatschek <hlawatschek> | ||||
Component: | GFS-kernel | Assignee: | Robert Peterson <rpeterso> | ||||
Status: | CLOSED ERRATA | QA Contact: | GFS Bugs <gfs-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 4.6 | ||||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-05-18 21:10:12 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Mark Hlawatschek
2008-06-02 08:24:37 UTC
Created attachment 307543 [details]
Proposed patch
This patch returns the "real" device ID rather than the diapered device
for file stat operations.
Output before and after the patch: [root@trin-12 /home/bob]# mount -tgfs /dev/hda4 /mnt/gfs/ [root@trin-12 /home/bob]# ls -l /dev | grep "hda4" brw------- 1 root root 252, 0 Jun 2 18:28 diapered_hda4 brw-rw---- 1 root disk 3, 4 Jun 2 11:46 hda4 [root@trin-12 /home/bob]# ./diaperdevtest st_dev = 252 / 0 [root@trin-12 /home/bob]# umount /mnt/gfs [root@trin-12 /home/bob]# rmmod gfs [root@trin-12 /home/bob]# insmod cluster/gfs-kernel/src/gfs/gfs.ko [root@trin-12 /home/bob]# mount -tgfs /dev/hda4 /mnt/gfs/ [root@trin-12 /home/bob]# ./diaperdevtest st_dev = 3 / 4 [root@trin-12 /home/bob]# FYI: This does not affect RHEL5.x due to the fact that we're not using diapered devices there. This patch has been pushed to the RHEL4 branch of the cluster git tree for inclusion into 4.8. Changing status to Modified. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1045.html |