{"issue":{"created_at":"2011-09-08T08:43:08Z","state":"open","updated_at":"2011-12-08T09:50:15Z","comments":2,"user":{"gravatar_id":"42782c00eb2139ac70696d1845cbd395","id":1035237,"url":"https://api.github.com/users/eitanb","avatar_url":"https://secure.gravatar.com/avatar/42782c00eb2139ac70696d1845cbd395?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eitanb"},"body":"on our system, i'd like the NFS service to startup (especially after installation) with no exports at all. the storage admin can later on configure shares/exports through the GUI.\r\nis there any reason why this is not possible or is it just a forgotten TODO?\r\nlooking at ReadExports() through the initialization sequence, it seems to be checked & reported so its not a forgotten use case. for non FUSE FS, its causing the NFS service to terminate.\r\nNote that removing this check reveals more issues (e.g.:an empty export list is scanned crashing the serevr, ...)\r\nwhat do you think ?\r\n\r\nThanks\r\nEitan\r\n\r\np.s.\r\n-----------\r\nhere is the code excerpt:\r\n\r\n  rc = ReadExports(config_struct, &nfs_param.pexportlist);\r\n  if(rc < 0)\r\n    {\r\n      LogCrit(COMPONENT_INIT,\r\n              \"Error while parsing export entries\");\r\n      return -1;\r\n    }\r\n  else if(rc == 0)\r\n    {\r\n      LogCrit(COMPONENT_INIT,\r\n              \"No export entries found in configuration file !!!\");\r\n#ifndef _USE_FUSE\r\n      return -1;\r\n#endif\r\n    }","assignee":null,"id":1596661,"labels":[],"number":11,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"NFS-Ganehsa refuses to take a configuration with no exports","html_url":"https://github.com/phdeniel/nfs-ganesha/issues/11","closed_at":null,"url":"https://api.github.com/repos/phdeniel/nfs-ganesha/issues/11","milestone":null},"action":"created","comment":{"created_at":"2011-12-08T09:50:15Z","updated_at":"2011-12-08T09:50:15Z","user":{"gravatar_id":"42782c00eb2139ac70696d1845cbd395","id":1035237,"url":"https://api.github.com/users/eitanb","avatar_url":"https://secure.gravatar.com/avatar/42782c00eb2139ac70696d1845cbd395?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eitanb"},"body":"Here's a simple example\n\nyou install a new machine with Ganesha. it will start upo with no export & \neven with no file-systems that can be exported.\nyou then use a GUI or CLI to \n        create a volume\n        create a filesystem on that volume\n        export a filesystem using NFS/SMB/9p/FTP/HTTP/.....\nor in other words, we cannot allow our NFS to break just bcz someone \naccidentally removed the last NFS export.\nalso remember that our environment is a corporate data center & some \nsystems may be installed with only some of the services being tested \n(e.g.: one tests SMB first so no NFS is used in the beginning).\nBTW, back when i sent this, Jim (Panasas) also thought this was the way to \ngo.\n\nwhat do you think ?\n\np.s.\n1) if i'm the only one interested in this now then i'll be happy to take \nthis issue on me - i guess its best after the FSAL re-factoring is \ncompleted but i might be wrong.\n2) i'm not actively developing because we dont have the manpower to commit \nto this effort & i wouldnt want partial work on Ganesha. so if this is on \nme, it'll wait a bit.\n\nEitan\n\n\n\nFrom:\nPhilippe DENIEL \n<reply@reply.github.com>\nTo:\nEitan Ben-Amos/Israel/IBM@IBMIL\nDate:\n08/12/2011 10:25 AM\nSubject:\nRe: [nfs-ganesha] NFS-Ganehsa refuses to take a configuration with no \nexports (#11)\n\n\n\nDoes a NFS server with no export configured really have a meaning ? From \nmy point of view, this makes no sens. \nI\n\n--- \nReply to this email directly or view it on GitHub:\nhttps://github.com/phdeniel/nfs-ganesha/issues/11#issuecomment-3059256","id":3059974,"url":"https://api.github.com/repos/phdeniel/nfs-ganesha/issues/comments/3059974"}}